Disable python2 build

i8ce changed/i8ce/python-setproctitle-1.1.10-17.el8
Arkady L. Shane 6 months ago
parent da441bd3ef
commit 111d4b95d6
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -25,21 +25,6 @@ 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}
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
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.
%package -n python3-%{tarname}
Summary: Python module to customize a process title
BuildRequires: python3-devel
@ -60,24 +45,15 @@ It's based on PostgreSQL implementation which has proven to be portable.
%build
%py2_build
%py3_build
%install
%py2_install
chmod 0755 %{buildroot}%{python2_sitearch}/setproctitle*.so
%py3_install
chmod 0755 %{buildroot}%{python3_sitearch}/setproctitle*.so
%check
PYTHON=python3 PYCONFIG=python3-config make tests/pyrun3
%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

Loading…
Cancel
Save