]> git.pld-linux.org Git - packages/python-Cython.git/blobdiff - python-Cython.spec
- use rpm python macros
[packages/python-Cython.git] / python-Cython.spec
index e141590ba6cb9fd8e3f5f01b4117e116a58ab675..c6862d3f8eb314b307be02627271d4431bc72a89 100644 (file)
@@ -8,13 +8,14 @@
 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.23.1
-Release:       1
+Version:       0.23.4
+Release:       3
 License:       Apache v2.0
 Group:         Libraries/Python
 Source0:       http://cython.org/release/%{module}-%{version}.tar.gz
-# Source0-md5: db3c5b365e1c3f71c7cd90e96473a3ab
+# Source0-md5: 157df1f69bcec6b56fd97e0f2e057f6e
 URL:           http://cython.org/
+BuildRequires: rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires: python >= 1:2.6
 BuildRequires: python-devel >= 1:2.6
@@ -84,17 +85,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
@@ -102,13 +97,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}
@@ -116,13 +105,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.072996 seconds and 4 git commands to generate.