SPECS/cython3/cython3.spec
f11b4791
 %define python3_sitearch /usr/lib/python3.6/site-packages
560b5aa3
 Summary:        C extensions for Python
 Name:           cython3
8c2bd33c
 Version:        0.25.2
f11b4791
 Release:        2%{?dist}
560b5aa3
 Group:          Development/Libraries
 License:        Apache License
 URL:            http://cython.org/
 Source0:        http://cython.org/release/Cython-%{version}.tar.gz
8c2bd33c
 %define sha1 Cython=e73f5afe89792df3467cc7bccd29fc01467fc28b
560b5aa3
 Vendor:		VMware, Inc.
 Distribution:	Photon
 BuildRequires:	python3
 BuildRequires:	python3-devel
 BuildRequires:	python3-libs
 BuildRequires:  python-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
 /usr/bin/python3 setup.py build
 
 %install
 /usr/bin/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_sitearch}/*.egg-info
 %{python3_sitearch}/Cython/*
 %{python3_sitearch}/cython.py*
 %{python3_sitearch}/pyximport/*
 %{python3_sitearch}/__pycache__/*
 
 %changelog
f11b4791
 *       Wed Apr 26 2017 Siju Maliakkal <smaliakkal@vmware.com> 0.25.2-2
 -       Updated python3 site path
8c2bd33c
 *       Mon Apr 24 2017 Bo Gan <ganb@vmware.com> 0.25.2-1
 -       Update to 0.25.2
560b5aa3
 * 	Fri Jan 27 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.23.4-1
 - 	Initial build.