Hello community,
here is the log from the commit of package python-setproctitle for
openSUSE:Leap:15.2 checked in at 2020-03-02 13:22:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-setproctitle (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-setproctitle.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setproctitle"
Mon Mar 2 13:22:41 2020 rev:11 rq:777133 version:1.1.10
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-setproctitle/python-setproctitle.changes
2020-01-15 15:52:57.251581081 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-setproctitle.new.26092/python-setproctitle.changes
2020-03-02 13:22:42.718321369 +0100
@@ -1,0 +2,17 @@
+Sun Sep 15 10:35:42 UTC 2019 - John Vandenberg <[email protected]>
+
+- Replace PyPI URL with GitHub URL
+- Drop errant skip-failing-tests.patch caused by missing
+ test dependency procps
+- Add use-pkg-config.patch to build using pkg-config instead of
+ python-config, as the latter is not shipped in python3-devel
+- Add LANG in %check to fix openSUSE/SLE 15
+- Use %license
+
+-------------------------------------------------------------------
+Sun Mar 3 22:11:03 UTC 2019 - Matej Cepl <[email protected]>
+
+- Enable tests and add skip-failing-tests.patch to skip failing tests
+ (gh#dvarrazzo/py-setproctitle#60)
+
+-------------------------------------------------------------------
New:
----
use-pkg-config.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.fY6rla/_old 2020-03-02 13:22:43.226322379 +0100
+++ /var/tmp/diff_new_pack.fY6rla/_new 2020-03-02 13:22:43.226322379 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-setproctitle
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -23,13 +23,15 @@
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
Group: Development/Libraries/Python
-Url: http://pypi.python.org/pypi/setproctitle/
+URL: https://github.com/dvarrazzo/py-setproctitle/
Source:
https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Patch0: use-pkg-config.patch
BuildRequires: %{python_module devel}
+BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
+BuildRequires: procps
BuildRequires: python-rpm-macros
-
+BuildRequires: python3-tools
%python_subpackages
%description
@@ -40,6 +42,7 @@
%prep
%setup -q -n setproctitle-%{version}
+%autopatch -p1
%build
export CFLAGS="%{optflags}"
@@ -48,9 +51,15 @@
%install
%python_install
+%check
+export LANG=en_US.UTF-8
+%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
+make PYTHON=$python check
+}
+
%files %{python_files}
-%defattr(-,root,root)
-%doc COPYRIGHT HISTORY.rst README.rst
+%doc HISTORY.rst README.rst
+%license COPYRIGHT
%{python_sitearch}/*
%changelog
++++++ use-pkg-config.patch ++++++
--- 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) --libs) -L$(shell $(PYCONFIG)
python$(PYVER) --prefix)/lib
BUILD_DIR = build/lib.$(PYVER)