1 Summary: Python module to customize a process title
2 Name: python-setproctitle
6 Group: Development/Languages/Python
7 URL: http://pypi.python.org/pypi/setproctitle
8 BuildRequires: rpmbuild(macros) >= 1.710
9 Source0: https://pypi.python.org/packages/5a/0d/dc0d2234aacba6cf1a729964383e3452c52096dc695581248b548786f2b3/setproctitle-%{version}.tar.gz
10 # Source0-md5: 2dcdd1b761700a5a13252fea3dfd1977
11 BuildRequires: python-devel
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Python module allowing a process to change its title as displayed by
16 system tool such as ps and top.
18 It's useful in multiprocess systems, allowing to identify tasks each
19 forked process is busy with. This technique has been used by
20 PostgreSQL and OpenSSH.
22 It's based on PostgreSQL implementation which has proven to be
25 %package -n python3-setproctitle
26 Summary: Python module to customize a process title
27 BuildRequires: python3-devel
29 %description -n python3-setproctitle
30 Python module allowing a process to change its title as displayed by
31 system tool such as ps and top.
33 It's useful in multi-process systems, allowing to identify tasks each
34 forked process is busy with. This technique has been used by
35 PostgreSQL and OpenSSH.
37 It's based on PostgreSQL implementation which has proven to be
41 %setup -q -n setproctitle-%{version}
44 %{__python} setup.py \
46 %{__python3} setup.py \
50 rm -rf $RPM_BUILD_ROOT
53 --root $RPM_BUILD_ROOT
55 chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/setproctitle.so
58 --root $RPM_BUILD_ROOT
60 chmod 0755 $RPM_BUILD_ROOT%{py3_sitedir}/setproctitle*.so
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{py_sitedir}/setproctitle.so
69 %{py_sitedir}/setproctitle-*.egg-info
71 %files -n python3-setproctitle
72 %defattr(644,root,root,755)
74 %attr(755,root,root) %{py3_sitedir}/setproctitle.*.so
75 %{py3_sitedir}/setproctitle-*.egg-info