forked from pool/python-setproctitle
- Simplify macro usage
- Drop buildrequires python3-2to3, it's in python3-devel now - Don't require "python(abi)", RPM does that automatically OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
e54c0e6c87
commit
ee1819b363
@@ -16,11 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define mod_name setproctitle
|
||||
|
||||
Name: python-setproctitle
|
||||
Version: 1.1.6
|
||||
Release: 0
|
||||
@@ -31,8 +26,8 @@ Url: http://pypi.python.org/pypi/setproctitle/
|
||||
Source: http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(11)")}
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -42,7 +37,7 @@ the task each process is busy with. The technique is used by PostgreSQL and
|
||||
the OpenSSH Server for example.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
%setup -q -n setproctitle-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
@@ -53,6 +48,6 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYRIGHT HISTORY.rst README.rst
|
||||
%python_sitearch/%{mod_name}*
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user