CBL-Mariner/SPECS/Cython/Cython.spec

80 строки
2.7 KiB
Plaintext

%{!?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: 7%{?dist}
Group: Development/Libraries
License: ASL 2.0
URL: https://cython.org
#Source0: https://github.com/cython/cython/archive/%{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
Patch0: fix_abc_tests.patch
Vendor: Microsoft Corporation
Distribution: Mariner
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}
%patch0 -p1
%build
python2 setup.py build
%install
python2 setup.py install --skip-build --root %{buildroot}
%check
# Skip lvalue_refs test which was fixed in a later release: https://github.com/cython/cython/pull/2783
echo "lvalue_refs" >> tests/bugs.txt
make %{?_smp_mflags} test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%license LICENSE.txt
%{_bindir}/*
%{python2_sitelib}/Cython-%{version}-*.egg-info
%{python2_sitelib}/Cython/*
%{python2_sitelib}/cython.py*
%{python2_sitelib}/pyximport/*
%changelog
* Mon Dec 07 2020 Andrew Phelps <anphel@microsoft.com> 0.28.5-7
- Fix check tests.
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 0.28.5-6
- Added %%license line automatically
* Wed Apr 29 2020 Emre Girgin <mrgirgin@microsoft.com> 0.28.5-5
- Renaming cython to Cython
* Thu Apr 09 2020 Joe Schmitt <joschmit@microsoft.com> 0.28.5-4
- Update URL.
- Update Source0 with valid URL.
- Update license.
- Remove sha1 macro.
- Fix changelog styling.
- License verified.
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 0.28.5-3
- Initial CBL-Mariner import from Photon (license: Apache2).
* Thu Jan 10 2019 Michelle Wang <michellew@vmware.com> 0.28.5-2
- Add fix_abc_tests.patch to fix make check test.
* Mon Sep 10 2018 Ajay Kaher <akaher@vmware.com> 0.28.5-1
- Upgraded to version 0.28.5.
* Thu Jul 13 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.25.2-2
- Build using python2 explicity.
* Mon Apr 24 2017 Bo Gan <ganb@vmware.com> 0.25.2-1
- Update to 0.25.2.
* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 0.23.4-3
- Modified %check.
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.23.4-2
- GA - Bump release of all rpms.
* Wed Oct 28 2015 Divya Thaluru <dthaluru@vmware.com> 0.23.4-1
- Initial build.