|
|
@ -1,52 +1,50 @@
|
|
|
|
%global tarname setproctitle
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
|
|
|
## (rpmautospec version 0.7.2)
|
|
|
|
Name: python-setproctitle
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
Version: 1.1.10
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
Release: 17%{?dist}
|
|
|
|
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
|
|
|
|
Summary: Python module to customize a process title
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
# Automatically converted from old format: BSD - review is highly recommended.
|
|
|
|
URL: http://pypi.python.org/pypi/%{tarname}
|
|
|
|
License: LicenseRef-Callaway-BSD
|
|
|
|
Source0: https://pypi.io/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz
|
|
|
|
URL: %{forgeurl}
|
|
|
|
|
|
|
|
Source0: %{forgesource}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: /usr/bin/2to3
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
# Tests
|
|
|
|
%global _description\
|
|
|
|
BuildRequires: procps-ng
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
Python module allowing a process to change its title as displayed by
|
|
|
|
system tool such as ps and top.
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
Python module allowing a process to change its title as displayed by
|
|
|
|
system tool such as ps and top.
|
|
|
|
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.
|
|
|
|
It's based on PostgreSQL implementation which has proven to be portable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%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
|
|
|
|
%build
|
|
|
|
%py2_build
|
|
|
|
%pyproject_wheel
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py2_install
|
|
|
|
%pyproject_install
|
|
|
|
chmod 0755 %{buildroot}%{python2_sitearch}/setproctitle*.so
|
|
|
|
%pyproject_save_files %{pypi_name}
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
chmod 0755 %{buildroot}%{python3_sitearch}/setproctitle*.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%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}
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%doc README.rst COPYRIGHT
|
|
|
|
%doc README.rst
|
|
|
|
# For arch-specific packages: sitearch
|
|
|
|
%license COPYRIGHT
|
|
|
|
%{python3_sitearch}/%{tarname}*.so
|
|
|
|
|
|
|
|
%{python3_sitearch}/%{tarname}*.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Jul 12 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.1.10-17
|
|
|
|
* Tue Dec 17 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.3.3-4
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
|
|
|
* Sat Sep 07 2024 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-4
|
|
|
|
|
|
|
|
- EPEL10 release rhbz#2307140
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.3.3-3
|
|
|
|
|
|
|
|
- convert license to SPDX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Steve Traylen <steve.traylen@cern.ch> - 1.3.3-1
|
|
|
|
|
|
|
|
- Upstream 1.3.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Steve Traylen <steve.traylen@cern.ch> - 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 <releng@fedoraproject.org> - 1.2.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jun 26 2022 Robert Scheck <robert@fedoraproject.org> - 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 <python-maint@redhat.com> - 1.2.2-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.2-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 10 2021 Haïkel Guémar <hguemar@fedoraproject.org> - 1.2.2-1
|
|
|
|
|
|
|
|
- Upstream 1.2.2 (new API, bugfixes)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.10-20
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.10-19
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.10-18
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Nov 15 2019 Steve Traylen <steve.traylen@cern.ch> - 1.1.10-17
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.10-17
|
|
|
|
- Adapt to EPEL8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.10-16
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.10-16
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
- 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 <hguemar@fedoraproject.org> - 1.1.3-1
|
|
|
|
* Sun Jan 29 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.3-1
|
|
|
|
- initial packaging
|
|
|
|
- initial packaging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|