forked from pool/python-billiard
45 lines
1.1 KiB
RPMSpec
45 lines
1.1 KiB
RPMSpec
|
%define modname billiard
|
||
|
Name: python-%{modname}
|
||
|
Version: 0.2.2
|
||
|
Release: 1
|
||
|
Summary: Multiprocessing Pool Extensions
|
||
|
URL: http://github.com/ask/billiard
|
||
|
License: BSD
|
||
|
Group: Development/Libraries/Python
|
||
|
Source: %{modname}-%{version}.tar.bz2
|
||
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||
|
%{py_requires}
|
||
|
BuildRequires: fdupes python-devel python-setuptools
|
||
|
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
This package contains extensions to the multiprocessing pool.
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Ask Solem <askh@opera.com>
|
||
|
Jesper Noehr <jesper@noehr.org>
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{modname}-%{version}
|
||
|
|
||
|
%build
|
||
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||
|
python setup.py build
|
||
|
|
||
|
%install
|
||
|
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
||
|
%fdupes %buildroot
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%files -f INSTALLED_FILES
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS Changelog LICENSE README TODO docs
|
||
|
|
||
|
%changelog
|