diff --git a/.gitignore b/.gitignore index fc0c0e9..6e45aca 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/setproctitle-1.1.10.tar.gz +SOURCES/py-setproctitle-version-1.3.3.tar.gz diff --git a/.python-setproctitle.metadata b/.python-setproctitle.metadata index 0a6f2ac..10e84b7 100644 --- a/.python-setproctitle.metadata +++ b/.python-setproctitle.metadata @@ -1 +1 @@ -9331e4cdd416c5d2bd2c1abccd2d9292965e613d SOURCES/setproctitle-1.1.10.tar.gz +faaf7f287b0b9c4c8a9bb92f83a94d48d6d63837 SOURCES/py-setproctitle-version-1.3.3.tar.gz diff --git a/SPECS/python-setproctitle.spec b/SPECS/python-setproctitle.spec index 30464a5..a0c7e37 100644 --- a/SPECS/python-setproctitle.spec +++ b/SPECS/python-setproctitle.spec @@ -1,52 +1,50 @@ -%global tarname setproctitle - -Name: python-setproctitle -Version: 1.1.10 -Release: 17%{?dist} +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global pypi_name setproctitle +%global forgeurl https://github.com/dvarrazzo/py-setproctitle + +Name: python-%{pypi_name} +Version: 1.3.3 +%global tag version-%{version} +%forgemeta +Release: %{autorelease} Summary: Python module to customize a process title -License: BSD -URL: http://pypi.python.org/pypi/%{tarname} -Source0: https://pypi.io/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: gcc -BuildRequires: /usr/bin/2to3 - -%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 +BuildRequires: python3-devel +# Tests +BuildRequires: procps-ng -%package -n python2-%{tarname} -Summary: Python module to customize a process title -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-nose -%description -n python2-%{tarname} +%global _description %{expand: Python module allowing a process to change its title as displayed by system tool such as ps and top. -It's useful in multi-process systems, allowing to identify tasks each forked +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. +It is based on PostgreSQL implementation which has proven to be portable.} + +%description %_description -%package -n python3-%{tarname} -Summary: Python module to customize a process title -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-nose -%description -n python3-%{tarname} +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} Python module allowing a process to change its title as displayed by system tool such as ps and top. @@ -55,41 +53,95 @@ 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. + %prep -%setup -q -n %{tarname}-%{version} +%forgesetup +# This string which is not used appears causes a crash of tox in fedora builds. +sed -i 's/pypy-3.8//' tox.ini + +%generate_buildrequires +%pyproject_buildrequires -t %build -%py2_build -%py3_build +%pyproject_wheel + %install -%py2_install -chmod 0755 %{buildroot}%{python2_sitearch}/setproctitle*.so -%py3_install -chmod 0755 %{buildroot}%{python3_sitearch}/setproctitle*.so +%pyproject_install +%pyproject_save_files %{pypi_name} + %check -PYTHON=python3 PYCONFIG=python3-config make tests/pyrun3 +%tox -%files -n python2-%{tarname} -%doc README.rst COPYRIGHT -# For arch-specific packages: sitearch -%{python2_sitearch}/%{tarname}*.so -%{python2_sitearch}/%{tarname}*.egg-info -%files -n python3-%{tarname} -%doc README.rst COPYRIGHT -# For arch-specific packages: sitearch -%{python3_sitearch}/%{tarname}*.so -%{python3_sitearch}/%{tarname}*.egg-info +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license COPYRIGHT %changelog -* Fri Jul 12 2024 Arkady L. Shane - 1.1.10-17 -- Rebuilt for MSVSphere 9.4 +* Tue Dec 17 2024 Arkady L. Shane - 1.3.3-4 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Sep 07 2024 Steve Traylen - 1.3.3-4 +- EPEL10 release rhbz#2307140 + +* Wed Sep 04 2024 Miroslav Suchý - 1.3.3-3 +- convert license to SPDX + +* Fri Jul 19 2024 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 24 2024 Steve Traylen - 1.3.3-1 +- Upstream 1.3.3 + +* Mon Jun 24 2024 Steve Traylen - 1.3.2-1 +- Update to version 1.3.2 +- Run tests with tox +- Use rpmautospec changelog +- Use forgeurl to get tox.ini file +- Use more conventional pypi_macro for name +- Use pyproject_macros +- Mark license file as license + +* Fri Jan 20 2023 Fedora Release Engineering - 1.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* 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 -* Fri Nov 15 2019 Steve Traylen - 1.1.10-17 -- Adapt to EPEL8 +* 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 @@ -195,3 +247,4 @@ PYTHON=python3 PYCONFIG=python3-config make tests/pyrun3 * Sun Jan 29 2012 Haïkel Guémar - 1.1.3-1 - initial packaging +## END: Generated by rpmautospec