%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} Summary: C extensions for Python Name: cython3 Version: 0.25.2 Release: 4%{?dist} Group: Development/Libraries License: Apache License URL: http://cython.org/ Source0: http://cython.org/release/Cython-%{version}.tar.gz %define sha1 Cython=e73f5afe89792df3467cc7bccd29fc01467fc28b Vendor: VMware, Inc. Distribution: Photon BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-libs BuildRequires: python3-xml Requires: python3 %description Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex). It makes writing C extensions for Python as easy as Python itself. %prep %setup -q -n Cython-%{version} %build python3 setup.py build %install python3 setup.py install --skip-build --root %{buildroot} mv %{buildroot}%{_bindir}/cython %{buildroot}%{_bindir}/cython3 mv %{buildroot}%{_bindir}/cythonize %{buildroot}%{_bindir}/cythonize3 mv %{buildroot}%{_bindir}/cygdb %{buildroot}%{_bindir}/cygdb3 %check make %{?_smp_mflags} test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/* %{python3_sitelib}/*.egg-info %{python3_sitelib}/Cython/* %{python3_sitelib}/cython.py* %{python3_sitelib}/pyximport/* %{python3_sitelib}/__pycache__/* %changelog * Thu Jul 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.25.2-4 - Keeping uniformity across all spec files * Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 0.25.2-3 - Add python3-xml to python3 sub package Buildrequires. * Wed Apr 26 2017 Siju Maliakkal <smaliakkal@vmware.com> 0.25.2-2 - Updated python3 site path * Mon Apr 24 2017 Bo Gan <ganb@vmware.com> 0.25.2-1 - Update to 0.25.2 * Fri Jan 27 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.23.4-1 - Initial build.