Accepting request 84088 from devel:languages:python
- Spec file cleanup: * BuildRequire modern python-distribute instead of python-setuptools * No need for changing executable bits for benchmarks * Use SUSE version checks around specific macros * Only require %{name} = %{version} in devel package OBS-URL: https://build.opensuse.org/request/show/84088 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-greenlet?expand=0&rev=3
This commit is contained in:
commit
8bbd668131
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 21 09:35:58 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Spec file cleanup:
|
||||||
|
* BuildRequire modern python-distribute instead of python-setuptools
|
||||||
|
* No need for changing executable bits for benchmarks
|
||||||
|
* Use SUSE version checks around specific macros
|
||||||
|
* Only require %{name} = %{version} in devel package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 26 14:44:42 UTC 2010 - seife+obs@b1-systems.com
|
Fri Nov 26 14:44:42 UTC 2010 - seife+obs@b1-systems.com
|
||||||
|
|
||||||
|
@ -1,37 +1,36 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-greenlet
|
# spec file for package python-greenlet
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
||||||
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
|
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
# upon. The license for this file, and modifications and additions to the
|
# upon. The license for this file, and modifications and additions to the
|
||||||
# file, is the same license as for the pristine package itself (unless the
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
# license for the pristine package is not an Open Source License, in which
|
# license for the pristine package is not an Open Source License, in which
|
||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "O2en Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-greenlet
|
Name: python-greenlet
|
||||||
Version: 0.3.1
|
Version: 0.3.1
|
||||||
Release: 1
|
Release: 0
|
||||||
|
URL: http://pypi.python.org/pypi/greenlet
|
||||||
Summary: Lightweight in-process concurrent programming
|
Summary: Lightweight in-process concurrent programming
|
||||||
Group: Development/Libraries/Python
|
|
||||||
License: MIT
|
License: MIT
|
||||||
Url: http://pypi.python.org/pypi/greenlet
|
Group: Development/Libraries/Python
|
||||||
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# py_requires is no longer needed since 11.3
|
BuildRequires: python-devel
|
||||||
%{py_requires}
|
BuildRequires: python-distribute
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%py_requires
|
||||||
|
%endif
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The greenlet package is a spin-off of Stackless, a version of CPython
|
The greenlet package is a spin-off of Stackless, a version of CPython
|
||||||
@ -40,10 +39,9 @@ pseudo-concurrently (typically in a single or a few OS-level threads)
|
|||||||
and are synchronized with data exchanges on "channels".
|
and are synchronized with data exchanges on "channels".
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
|
||||||
Summary: C development headers for python-greenlet
|
Summary: C development headers for python-greenlet
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains header files required for C modules development.
|
This package contains header files required for C modules development.
|
||||||
@ -52,15 +50,15 @@ This package contains header files required for C modules development.
|
|||||||
%setup -q -n greenlet-%{version}
|
%setup -q -n greenlet-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
||||||
chmod 644 benchmarks/*.py
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
grep -v greenlet/greenlet.h$ INSTALLED_FILES > INSTALLED_FILES_nodevel
|
|
||||||
|
|
||||||
%files -f INSTALLED_FILES_nodevel
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS NEWS README
|
||||||
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user