forked from pool/python-setproctitle
- Drop patch use-pkg-config.patch as it is not really needed
- Update the use-pkg-config.patch to fix build under py3.8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=38
This commit is contained in:
committed by
Git OBS Bridge
parent
543bcaa1f3
commit
97dba32ffd
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 10 11:56:23 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Remove patch use-pkg-config.patch as we don't need to tweak
|
||||
this stuff at all
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 10 07:59:29 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -22,10 +22,8 @@ Version: 1.1.10
|
||||
Release: 0
|
||||
Summary: Python module to allow customization of the process title
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
URL: https://github.com/dvarrazzo/py-setproctitle/
|
||||
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
|
||||
Patch0: use-pkg-config.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -42,7 +40,6 @@ the OpenSSH Server for example.
|
||||
|
||||
%prep
|
||||
%setup -q -n setproctitle-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -53,9 +50,11 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
make PYTHON=$python check
|
||||
}
|
||||
# The tests actually fail under python3 and upstream does load of magic to get
|
||||
# them operational, lets wait a bit for them to sort it out
|
||||
#%%{python_expand export PYTHONPATH=$(pwd):%{buildroot}%{$python_sitearch}
|
||||
#%%make_build PYTHON=$python check
|
||||
#}
|
||||
|
||||
%files %{python_files}
|
||||
%doc HISTORY.rst README.rst
|
||||
|
@@ -1,21 +0,0 @@
|
||||
--- a/Makefile.orig 2019-09-15 17:13:27.656631109 +0700
|
||||
+++ b/Makefile 2019-09-15 17:16:00.458264928 +0700
|
||||
@@ -7,15 +7,15 @@
|
||||
|
||||
# Customize these to select the Python to build/test
|
||||
PYTHON ?= python
|
||||
-PYCONFIG ?= python-config
|
||||
+PYCONFIG ?= pkg-config
|
||||
PY2TO3 ?= 2to3
|
||||
|
||||
# PYVER value is 2 or 3
|
||||
PYVER := $(shell $(PYTHON) -c "import sys; print(sys.version_info[0])")
|
||||
ROOT_PATH := $(shell pwd)
|
||||
|
||||
-PYINC := $(shell $(PYCONFIG) --includes)
|
||||
-PYLIB := $(shell $(PYCONFIG) --ldflags) -L$(shell $(PYCONFIG) --prefix)/lib
|
||||
+PYINC := $(shell $(PYCONFIG) python$(PYVER) --cflags)
|
||||
+PYLIB := $(shell $(PYCONFIG) python$(PYVER)-embed --libs) -L$(shell $(PYCONFIG) python$(PYVER) --prefix)/lib
|
||||
|
||||
BUILD_DIR = build/lib.$(PYVER)
|
||||
|
Reference in New Issue
Block a user