forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcython3.spec
60 lines (51 loc) · 1.94 KB
/
cython3.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%{!?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 <[email protected]> 0.25.2-4
- Keeping uniformity across all spec files
* Wed Jun 07 2017 Xiaolin Li <[email protected]> 0.25.2-3
- Add python3-xml to python3 sub package Buildrequires.
* Wed Apr 26 2017 Siju Maliakkal <[email protected]> 0.25.2-2
- Updated python3 site path
* Mon Apr 24 2017 Bo Gan <[email protected]> 0.25.2-1
- Update to 0.25.2
* Fri Jan 27 2017 Dheeraj Shetty <[email protected]> 0.23.4-1
- Initial build.