commit d843bf5f77da634c8c822d2151e8bb172fbeb835
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Thu Feb 21 22:47:59 2013 +0100

    - initial

 python-setproctitle.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)
---
diff --git a/python-setproctitle.spec b/python-setproctitle.spec
new file mode 100644
index 0000000..2793160
--- /dev/null
+++ b/python-setproctitle.spec
@@ -0,0 +1,80 @@
+Summary:       Python module to customize a process title
+Name:          python-setproctitle
+Version:       1.1.6
+Release:       1
+License:       BSD
+Group:         Development/Languages/Python
+URL:           http://pypi.python.org/pypi/setproctitle
+Source0:       
http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
+# Source0-md5: 1e42e43b440214b971f4b33c21eac369
+BuildRequires: python-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%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
+
+%{__python} setup.py \
+       build -b build-2 \
+       install \
+       --optimize=2 \
+       --root $RPM_BUILD_ROOT
+
+chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/setproctitle.so
+
+%{__python3} setup.py \
+       build -b build-3 \
+       install \
+       --optimize=2 \
+       --root $RPM_BUILD_ROOT
+
+chmod 0755 $RPM_BUILD_ROOT%{py3_sitedir}/setproctitle*.so
+
+%clean
+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
+%{py3_sitedir}/setproctitle-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-setproctitle.git/commitdiff/d843bf5f77da634c8c822d2151e8bb172fbeb835

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to