forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcython.spec
57 lines (48 loc) · 1.77 KB
/
cython.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
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Summary: C extensions for Python
Name: cython
Version: 0.28.5
Release: 1%{?dist}
Group: Development/Libraries
License: Apache License
URL: http://cython.org/
Source0: https://github.com/cython/cython/archive/Cython-%{version}.tar.gz
%define sha1 Cython=fc813f1cbc931ac230bbd6142b30f792af2db390
Vendor: VMware, Inc.
Distribution: Photon
BuildRequires: python2-devel
BuildRequires: python2-libs
BuildRequires: python-xml
Requires: python2
%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
python2 setup.py build
%install
python2 setup.py install --skip-build --root %{buildroot}
%check
make %{?_smp_mflags} test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{python2_sitelib}/Cython-%{version}-*.egg-info
%{python2_sitelib}/Cython/*
%{python2_sitelib}/cython.py*
%{python2_sitelib}/pyximport/*
%changelog
* Mon Sep 10 2018 Ajay Kaher <[email protected]> 0.28.5-1
- Upgraded to version 0.28.5
* Thu Jul 13 2017 Dheeraj Shetty <[email protected]> 0.25.2-2
- Build using python2 explicity
* Mon Apr 24 2017 Bo Gan <[email protected]> 0.25.2-1
- Update to 0.25.2
* Wed Oct 05 2016 ChangLee <[email protected]> 0.23.4-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 0.23.4-2
- GA - Bump release of all rpms
* Wed Oct 28 2015 Divya Thaluru <[email protected]> 0.23.4-1
- Initial build.