diff --git a/Cython-0.29.25.tar.gz b/Cython-0.29.25.tar.gz deleted file mode 100644 index bb7e4658aa866d48a912ae460749172471f90c73..0000000000000000000000000000000000000000 Binary files a/Cython-0.29.25.tar.gz and /dev/null differ diff --git a/Cython-0.29.32.tar.gz b/Cython-0.29.32.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..584c75b5268ad8629acc6dc6eca9adf56ea87ec1 Binary files /dev/null and b/Cython-0.29.32.tar.gz differ diff --git a/Cython.spec b/Cython.spec index 5125f36d18237f73a0851aa8e3789924fc9b7a6b..9de169727844c21ec383d4713d3591f22227b71a 100644 --- a/Cython.spec +++ b/Cython.spec @@ -1,71 +1,96 @@ -%global srcname cython +%global _empty_manifest_terminate_build 0 %bcond_with test - -Name: Cython -Version: 0.29.25 -Release: 1 -Summary: Language for writing C extensions for Python -License: Apache 2.0 -URL: https://cython.org/ -Source0: https://files.pythonhosted.org/packages/09/45/10c39337ba73c38a798165f97e4798827a532eaac71071842cbe0ee13dc5/Cython-0.29.25.tar.gz - -BuildRequires: gcc -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: hostname -BuildRequires: bc -BuildRequires: diffutils - -%if %{with test} -BuildRequires: gcc-c++ -BuildRequires: python3-coverage -BuildRequires: python3-numpy -BuildRequires: python3-jedi -%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} +Name: Cython +Version: 0.29.32 +Release: 1 +Summary: Language for writing C extensions for Python +License: Apache-2.0 +URL: https://cython.org/ +Source0: https://files.pythonhosted.org/packages/4c/76/1e41fbb365ad20b6efab2e61b0f4751518444c953b390f9b2d36cf97eea0/Cython-0.29.32.tar.gz + +%description +%{_description} + +%package -n python3-Cython +Summary: Language for writing C extensions for Python +Provides: Cython = %{version}-%{release} +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: hostname +BuildRequires: bc +BuildRequires: diffutils +%if %{with test} +BuildRequires: gcc-c++ +BuildRequires: python3-coverage +BuildRequires: python3-numpy +BuildRequires: python3-jedi +%endif +%description -n python3-Cython +%{_description} -Python 3 version. +%package help +Summary: Development documents and examples for Cython +Provides: python3-Cython-doc +%description help +%{_description} %prep -%autosetup -n %{name}-%{version} -p1 +%autosetup -n Cython-%{version} %build %py3_build %install %py3_install -rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %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}.* +%files -n Cython -f filelist.lst +%dir %{python3_sitearch}/* +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Dec 06 2022 wangjunqi - 0.29.32-1 +- Update package to version 0.29.32 + * Mon Dec 13 2021 shixuantong - 0.29.25-1 - update version to 0.29.25 @@ -80,4 +105,3 @@ rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests * Tue Nov 5 2019 shanshishi - 0.29.14-1 - Init package -