From d6d703cfc6b973c63dd2050d24e0104513597bb3 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Jul 27 2022 10:24:14 +0000 Subject: Update to 1.2.3 Related-to: https://review.rdoproject.org/r/q/I1bb369b85a7038ea05b8a0fa7dbc46a65a8684ee --- diff --git a/.python-setproctitle.metadata b/.python-setproctitle.metadata index fb846c3..190e936 100644 --- a/.python-setproctitle.metadata +++ b/.python-setproctitle.metadata @@ -1 +1 @@ -b956afb826aa4155542a3a7e881ae56ab0f29466 SOURCES/setproctitle-1.1.6.tar.gz +0f5c4d8c45058219048b2f33840b3b2bfab9b508 SOURCES/setproctitle-1.2.3.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-setproctitle.spec b/SPECS/python-setproctitle.spec index 14b5db2..d820a82 100644 --- a/SPECS/python-setproctitle.spec +++ b/SPECS/python-setproctitle.spec @@ -1,49 +1,36 @@ -%if 0%{?fedora} > 12 -%global with_python3 1 -%else -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%endif - - %global tarname setproctitle Name: python-setproctitle -Version: 1.1.6 -Release: 5%{?dist} +Version: 1.2.3 +Release: 2%{?dist} Summary: Python module to customize a process title License: BSD URL: http://pypi.python.org/pypi/%{tarname} -Source0: http://pypi.python.org/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz - -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-nose -BuildRequires: python-tools -%{?filter_setup: -%filter_provides_in %{python_sitearch}/.*\.so$ -%filter_setup -} - - -%description -Python module allowing a process to change its title as displayed by -system tool such as ps and top. +Source0: https://pypi.io/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz -It's useful in multiprocess systems, allowing to identify tasks each forked -process is busy with. This technique has been used by PostgreSQL and OpenSSH. +BuildRequires: gcc -It's based on PostgreSQL implementation which has proven to be portable. +%global _description\ +Python module allowing a process to change its title as displayed by\ +system tool such as ps and top.\ +\ +It's useful in multiprocess systems, allowing to identify tasks each forked\ +process is busy with. This technique has been used by PostgreSQL and OpenSSH.\ +\ +It's based on PostgreSQL implementation which has proven to be portable.\ +\ +%description %_description -%if 0%{?with_python3} %package -n python3-%{tarname} Summary: Python module to customize a process title BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: python3-nose +# Tests +BuildRequires: python3-pytest +BuildRequires: procps-ng %description -n python3-%{tarname} Python module allowing a process to change its title as displayed by @@ -53,70 +40,150 @@ It's useful in multi-process systems, allowing to identify tasks each forked process is busy with. This technique has been used by PostgreSQL and OpenSSH. It's based on PostgreSQL implementation which has proven to be portable. -%endif %prep %setup -q -n %{tarname}-%{version} -%{?with_python3: cp -a . %{py3dir}} %build -# Remove CFLAGS=... for noarch packages (unneeded) -CFLAGS="%{optflags}" %{__python} setup.py build -%if 0%{?with_python3} -pushd %{py3dir} -CFLAGS="%{optflags}" %{__python3} setup.py build -popd -%endif +%py3_build %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} -chmod 0755 %{buildroot}%{python_sitearch}/setproctitle.so -%if 0%{?with_python3} -pushd %{py3dir} -CFLAGS="%{optflags}" %{__python3} setup.py install -O1 --skip-build --root %{buildroot} -popd +%py3_install chmod 0755 %{buildroot}%{python3_sitearch}/setproctitle*.so -%endif %check -make tests/pyrun2 -# FIXME: tests are broken with python3 -%if 0%{?with_python3} -pushd %{py3dir} -BUILD_DIR=$(%{__python3} -c "import sys; import platform; \ -print('build/lib.linux-{0}-{1}.{2}'.format(platform.machine(), \ -sys.version_info[0], sys.version_info[1]))") -# looks like tests are not 2to3'ed by setup.py -2to3 -w --no-diffs tests -gcc `pkg-config --cflags --libs python3` -o tests/pyrun3 tests/pyrun.c -PYTHONPATH=$BUILD_DIR:$PYTHONPATH ROOT_PATH=$(pwd) \ - %{__python3} tests/setproctitle_test.py -v || : -popd -%endif - - -%files -%doc README.rst COPYRIGHT -# For arch-specific packages: sitearch -%{python_sitearch}/* +%pytest + -%if 0%{?with_python3} %files -n python3-%{tarname} %doc README.rst COPYRIGHT # For arch-specific packages: sitearch -%{python3_sitearch}/* -%endif +%{python3_sitearch}/%{tarname}*.so +%{python3_sitearch}/%{tarname}*.egg-info %changelog -* Fri Jan 24 2014 Daniel Mach - 1.1.6-5 -- Mass rebuild 2014-01-24 +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Jun 26 2022 Robert Scheck - 1.2.3-1 +- Upstream 1.2.3 (bugfixes, RHBZ#2088869) +- Fix %%check by using %%pytest (and provide ps(1) to run tests) + +* Mon Jun 13 2022 Python Maint - 1.2.2-5 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.2.2-2 +- Rebuilt for Python 3.10 + +* Wed Feb 10 2021 Haïkel Guémar - 1.2.2-1 +- Upstream 1.2.2 (new API, bugfixes) + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.10-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.10-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.1.10-18 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.10-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 19 2019 Miro Hrončok - 1.1.10-16 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.10-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Jul 26 2019 Haïkel Guémar - 1.1.10-14 +- Fix RPM FTBFS with python 3.8 (RHBZ#1718363) + +* Thu Jul 11 2019 Miro Hrončok - 1.1.10-13 +- Subpackage python2-setproctitle has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 1.1.10-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.1.10-11 +- Drop explicit locale setting + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sat Jul 14 2018 Fedora Release Engineering - 1.1.10-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.1.10-9 +- Rebuilt for Python 3.7 + +* Mon Feb 12 2018 Iryna Shcherbina - 1.1.10-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 1.1.10-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Dec 07 2017 Merlin Mathesius - 1.1.10-6 +- Cleanup spec file conditionals + +* Thu Nov 16 2017 Björn Esser - 1.1.10-5 +- Revert changes for EPEL7 + +* Thu Nov 16 2017 Björn Esser - 1.1.10-5 +- Changes for EPEL7 + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.1.10-4 +- Python 2 binary package renamed to python2-setproctitle + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.1.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.1.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed May 31 2017 Haïkel Guémar - 1.1.10-1 +- Upstream 1.1.10 (RHBZ#1448910) + +* Sat Feb 11 2017 Fedora Release Engineering - 1.1.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.1.9-5 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.1.9-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.1.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 1.1.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Sat Aug 15 2015 Haïkel Guémar - 1.1.9-1 +- Upstream 1.1.9 + +* Thu Jun 18 2015 Fedora Release Engineering - 1.1.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild -* Fri Dec 27 2013 Daniel Mach - 1.1.6-4 -- Mass rebuild 2013-12-27 +* Wed May 14 2014 Bohuslav Kabrda - 1.1.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 -* Wed Aug 7 2013 Andy Grover - 1.1.6-3 -- Remove with_python3 if rhel > 6 +* Sun Aug 04 2013 Fedora Release Engineering - 1.1.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild