]> git.pld-linux.org Git - packages/python-billiard.git/blobdiff - python-billiard.spec
- python 3.6
[packages/python-billiard.git] / python-billiard.spec
index 91980c7fb9bb9d1b69309ef80838775693bf9001..86122ab364310c52621be7ab285cfc61da931865 100644 (file)
@@ -9,7 +9,7 @@
 Summary:       Multiprocessing Pool Extensions
 Name:          python-%{module}
 Version:       3.3.0.21
-Release:       1
+Release:       5
 License:       BSD
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/source/b/billiard/%{module}-%{version}.tar.gz
@@ -17,7 +17,7 @@ Source0:      https://pypi.python.org/packages/source/b/billiard/%{module}-%{version}
 Patch0:                unittest2.patch
 URL:           https://github.com/celery/billiard
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.612
+BuildRequires: rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires: python-devel >= 1:2.7
 BuildRequires: python-setuptools
@@ -63,6 +63,9 @@ fixes/improvements from python-trunk.
 Summary:       %{module} API documentation
 Summary(pl.UTF-8):     Dokumentacja API %{module}
 Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description apidocs
 API documentation for %{module}.
@@ -78,7 +81,7 @@ Dokumentacja API %{module}.
 %if %{with python2}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 
 %if %{with doc}
 cd Doc
@@ -91,28 +94,20 @@ cd ..
 %if %{with python3}
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
This page took 0.115732 seconds and 4 git commands to generate.