Cython/Cython.spec

87 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:44:41 +08:00
%global srcname cython
%bcond_with test
Name: Cython
2023-07-06 22:59:52 +08:00
Version: 0.29.36
2021-07-16 11:49:05 +08:00
Release: 1
2019-11-19 11:44:41 +08:00
Summary: Language for writing C extensions for Python
License: Apache 2.0
URL: https://cython.org/
2023-07-06 22:59:52 +08:00
Source0: https://files.pythonhosted.org/packages/38/db/df0e99d6c5fe19ee5c981d22aad557be4bdeed3ecfae25d47b84b07f0f98/Cython-0.29.36.tar.gz
2019-11-19 11:44:41 +08:00
BuildRequires: gcc
2020-10-30 10:14:31 +08:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2021-07-16 11:49:05 +08:00
BuildRequires: hostname
BuildRequires: bc
BuildRequires: diffutils
2019-11-19 11:44:41 +08:00
%if %{with test}
BuildRequires: gcc-c++
2020-10-30 10:14:31 +08:00
BuildRequires: python3-coverage
BuildRequires: python3-numpy
BuildRequires: python3-jedi
2019-11-19 11:44:41 +08:00
%endif
%global _description \
Cython is a language that makes writing C extensions\
for Python as easy as Python itself.
%description %{_description}
%package -n python3-%{name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name} %{_description}
Python 3 version.
%prep
2021-07-16 11:49:05 +08:00
%autosetup -n %{name}-%{version} -p1
2019-11-19 11:44:41 +08:00
%build
%py3_build
%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
%if %{with test}
%check
%{__python3} runtests.py -vv
%endif
%files -n python3-%{name}
%license LICENSE.txt COPYING.txt
%doc CHANGES.rst README.rst
%{_bindir}/cython
%{_bindir}/cygdb
%{_bindir}/cythonize
%{python3_sitearch}/%{name}-*.egg-info/
%{python3_sitearch}/%{name}/
%{python3_sitearch}/pyximport/
%{python3_sitearch}/%{srcname}.py
%{python3_sitearch}/__pycache__/%{srcname}.*
%changelog
2023-07-06 22:59:52 +08:00
* Mon Jul 10 2023 chenzixuan <chenzixuan@kylinos.cn> - 0.29.36-1
- update version to 0.29.36
2021-12-13 13:04:13 +08:00
* Mon Dec 13 2021 shixuantong <shixuantong@huawei.com> - 0.29.25-1
- update version to 0.29.25
2021-07-16 11:49:05 +08:00
* Fri Aug 13 2021 liksh <liks11@chinaunicom.cn> - 0.29.21-1
- update to 0.29.21
2020-10-30 10:14:31 +08:00
* Fri Oct 30 2020 zhangtao <zhangtao221@huawei.com> - 0.29.14-4
- remove python2
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 0.29.14-3
- Fix Source0
2019-11-19 11:44:41 +08:00
* Tue Nov 5 2019 shanshishi <shanshishi@huawei.com> - 0.29.14-1
- Init package
2021-07-16 11:49:05 +08:00