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.4
+Version: 0.24.1
Release: 2
License: Apache v2.0
Group: Libraries/Python
-Source0: http://cython.org/release/%{module}-%{version}.tar.gz
-# Source0-md5: 157df1f69bcec6b56fd97e0f2e057f6e
+#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}
%build
%if %{with python2}
-%py_build \
- --build-base build-2
+%py_build
%endif
%if %{with python3}
-%py3_build \
- --build-base build-3
+%py3_build
%endif
%install
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}
%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