[packages/python-setproctitle] Rel 9; moved python3 variant to separate spec
arekm
arekm at pld-linux.org
Wed Dec 21 09:51:41 CET 2022
commit e018d1448e5bbfc29f9305a3e77f6f1b733406a0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Dec 21 09:51:26 2022 +0100
Rel 9; moved python3 variant to separate spec
python-setproctitle.spec | 32 ++------------------------------
1 file changed, 2 insertions(+), 30 deletions(-)
---
diff --git a/python-setproctitle.spec b/python-setproctitle.spec
index b5947a4..7aa8570 100644
--- a/python-setproctitle.spec
+++ b/python-setproctitle.spec
@@ -1,12 +1,12 @@
Summary: Python module to customize a process title
Name: python-setproctitle
Version: 1.1.10
-Release: 8
+Release: 9
License: BSD
Group: Development/Languages/Python
URL: http://pypi.python.org/pypi/setproctitle
BuildRequires: rpmbuild(macros) >= 1.710
-Source0: https://pypi.python.org/packages/5a/0d/dc0d2234aacba6cf1a729964383e3452c52096dc695581248b548786f2b3/setproctitle-%{version}.tar.gz
+Source0: https://pypi.debian.net/setproctitle/setproctitle-%{version}.tar.gz
# Source0-md5: 2dcdd1b761700a5a13252fea3dfd1977
BuildRequires: python-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,29 +22,12 @@ PostgreSQL and OpenSSH.
It's based on PostgreSQL implementation which has proven to be
portable.
-%package -n python3-setproctitle
-Summary: Python module to customize a process title
-BuildRequires: python3-devel
-
-%description -n python3-setproctitle
-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.
-
%prep
%setup -q -n setproctitle-%{version}
%build
%{__python} setup.py \
build -b build-2
-%{__python3} setup.py \
- build -b build-3
%install
rm -rf $RPM_BUILD_ROOT
@@ -54,11 +37,6 @@ rm -rf $RPM_BUILD_ROOT
chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/setproctitle.so
-%py3_install \
- --root $RPM_BUILD_ROOT
-
-chmod 0755 $RPM_BUILD_ROOT%{py3_sitedir}/setproctitle*.so
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -67,9 +45,3 @@ rm -rf $RPM_BUILD_ROOT
%doc README.rst
%attr(755,root,root) %{py_sitedir}/setproctitle.so
%{py_sitedir}/setproctitle-*.egg-info
-
-%files -n python3-setproctitle
-%defattr(644,root,root,755)
-%doc README.rst
-%attr(755,root,root) %{py3_sitedir}/setproctitle.*.so
-%{py3_sitedir}/setproctitle-*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-setproctitle.git/commitdiff/e018d1448e5bbfc29f9305a3e77f6f1b733406a0
More information about the pld-cvs-commit
mailing list