[packages/python3-setproctitle] Up to 1.3.2

arekm arekm at pld-linux.org
Wed Dec 21 12:23:57 CET 2022


commit 4d0a9da98c45ca0e969e2a4169e147b81211f477
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Dec 21 12:23:42 2022 +0100

    Up to 1.3.2

 python3-setproctitle.spec | 48 ++++++++++++-----------------------------------
 1 file changed, 12 insertions(+), 36 deletions(-)
---
diff --git a/python3-setproctitle.spec b/python3-setproctitle.spec
index b5947a4..e9a8761 100644
--- a/python3-setproctitle.spec
+++ b/python3-setproctitle.spec
@@ -1,14 +1,14 @@
 Summary:	Python module to customize a process title
-Name:		python-setproctitle
-Version:	1.1.10
-Release:	8
+Name:		python3-setproctitle
+Version:	1.3.2
+Release:	1
 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-md5:	2dcdd1b761700a5a13252fea3dfd1977
-BuildRequires:	python-devel
+Source0:	https://pypi.debian.net/setproctitle/setproctitle-%{version}.tar.gz
+# Source0-md5:	fa9771540422a59a8dee1331ad6fd3a9
+BuildRequires:	python3-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,42 +22,20 @@ 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
 
-%py_install \
-	--root $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
+chmod 0755 $RPM_BUILD_ROOT%{py3_sitedir}/setproctitle/*setproctitle*.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -65,11 +43,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %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
+%dir %{py3_sitedir}/setproctitle
+%{py3_sitedir}/setproctitle/__init__.py
+%{py3_sitedir}/setproctitle/__pycache__
+%{py3_sitedir}/setproctitle/py.typed
+%attr(755,root,root) %{py3_sitedir}/setproctitle/*setproctitle.*.so
 %{py3_sitedir}/setproctitle-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-setproctitle.git/commitdiff/4d0a9da98c45ca0e969e2a4169e147b81211f477



More information about the pld-cvs-commit mailing list