14
0

- 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:
Sascha Peilicke
2013-01-14 10:16:12 +00:00
committed by Git OBS Bridge
parent e54c0e6c87
commit ee1819b363
4 changed files with 20 additions and 19 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 14 09:58:08 UTC 2013 - saschpe@suse.de
- Simplify macro usage
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 12 04:08:16 UTC 2012 - os-dev@jacraig.com Wed Sep 12 04:08:16 UTC 2012 - os-dev@jacraig.com

View File

@@ -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 Name: python-setproctitle
Version: 1.1.6 Version: 1.1.6
Release: 0 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 Source: http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
%if 0%{?suse_version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%py_requires %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(11)")}
%endif %endif
%description %description
@@ -42,7 +37,7 @@ the task each process is busy with. The technique is used by PostgreSQL and
the OpenSSH Server for example. the OpenSSH Server for example.
%prep %prep
%setup -q -n %{mod_name}-%{version} %setup -q -n setproctitle-%{version}
%build %build
CFLAGS="%{optflags}" python setup.py build CFLAGS="%{optflags}" python setup.py build
@@ -53,6 +48,6 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYRIGHT HISTORY.rst README.rst %doc COPYRIGHT HISTORY.rst README.rst
%python_sitearch/%{mod_name}* %{python_sitearch}/*
%changelog %changelog

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 14 09:58:25 UTC 2013 - saschpe@suse.de
- Drop buildrequires python3-2to3, it's in python3-devel now
- Don't require "python(abi)", RPM does that automatically
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 12 12:07:59 UTC 2013 - idonmez@suse.com Sat Jan 12 12:07:59 UTC 2013 - idonmez@suse.com

View File

@@ -16,8 +16,6 @@
# #
%define modname setproctitle
Name: python3-setproctitle Name: python3-setproctitle
Version: 1.1.6 Version: 1.1.6
Release: 0 Release: 0
@@ -26,9 +24,7 @@ License: BSD-3-Clause
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://pypi.python.org/pypi/setproctitle/ Url: http://pypi.python.org/pypi/setproctitle/
Source: http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz Source: http://pypi.python.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
BuildRequires: python3-2to3
BuildRequires: python3-devel BuildRequires: python3-devel
Requires: python3 >= %{py3_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@@ -38,18 +34,17 @@ the task each process is busy with. The technique is used by PostgreSQL and
the OpenSSH Server for example. the OpenSSH Server for example.
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n setproctitle-%{version}
%build %build
CFLAGS="%{optflags}" python3 setup.py build CFLAGS="%{optflags}" python3 setup.py build
%install %install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean %files
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYRIGHT HISTORY.rst README.rst
%{python3_sitearch}/*
%changelog %changelog