]> git.pld-linux.org Git - packages/python-Cython.git/blobdiff - python-Cython.spec
- python 3.6
[packages/python-Cython.git] / python-Cython.spec
index f4bf240d6978e63bf64f7b298a3577de73e01ceb..b6cc2089004ebdd27f30df0bae4ce2e4626f1dbc 100644 (file)
@@ -8,23 +8,26 @@
 Summary:       Language for writing Python Extension Modules (Python 2.x version)
 Summary(pl.UTF-8):     Język służący do pisania modułów rozszerzających Pythona (wersja dla Pythona 2.x)
 Name:          python-%{module}
-Version:       0.22
+Version:       0.24.1
 Release:       2
 License:       Apache v2.0
 Group:         Libraries/Python
-Source0:       http://cython.org/release/%{module}-%{version}.tar.gz
-# Source0-md5: 1ae25add4ef7b63ee9b4af697300d6b6
+#Source0Download: https://pypi.python.org/simple/cython/
+Source0:       https://pypi.python.org/packages/c6/fe/97319581905de40f1be7015a0ea1bd336a756f6249914b148a17eefa75dc/%{module}-%{version}.tar.gz
+# Source0-md5: 890b494a12951f1d6228c416a5789554
 URL:           http://cython.org/
+BuildRequires: rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires: python >= 1:2.6
 BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-setuptools
 %endif
 %if %{with python3}
 BuildRequires: python3 >= 1:3.2
 BuildRequires: python3-2to3 >= 1:3.2
 BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-distribute
 BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
 %endif
 BuildRequires: rpm-pythonprov
 Requires:      python-devel >= 1:2.6
@@ -83,17 +86,11 @@ Pakiet zawierający przykładowe programy napisane w języku Cython.
 
 %build
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build \
-       --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build \
-       --build-base build-3
+%py3_build
 %endif
 
 %install
@@ -101,13 +98,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %if %{with python3}
-%{__python3} setup.py \
-       build \
-               --build-base build-3 \
-       install \
-               --optimize=2 \
-               --skip-build \
-               --root=$RPM_BUILD_ROOT
+%py3_install
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/cython{,3}
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/cythonize{,3}
@@ -115,13 +106,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python2}
-%{__python} setup.py \
-       build \
-               --build-base build-2 \
-       install \
-               --optimize=2 \
-               --skip-build \
-               --root=$RPM_BUILD_ROOT
+%py_install
 
 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -a ! -name 'Lexicon.py' -exec rm -f {} \;
 %endif
This page took 0.07746 seconds and 4 git commands to generate.