From: DongHun Kwak Date: Wed, 13 Jul 2022 06:43:43 +0000 (+0900) Subject: Bump to python3-cython 0.29.30 X-Git-Tag: accepted/tizen/7.0/unified/20221110.061549^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0_hotfix;p=platform%2Fupstream%2Fpython3-cython.git Bump to python3-cython 0.29.30 Change-Id: Ia980d5fe25540bf01709afe815f2bcc92ab55a83 --- diff --git a/packaging/python3-cython.manifest b/packaging/python3-cython.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-cython.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-cython.spec b/packaging/python3-cython.spec new file mode 100644 index 0000000..d4dd083 --- /dev/null +++ b/packaging/python3-cython.spec @@ -0,0 +1,57 @@ +Name: python3-cython +Version: 0.29.30 +Release: 0 +Url: http://www.cython.org +Summary: The Cython compiler for writing C extensions for the python3 language +License: Apache-2.0 +Group: Development/Languages/Python + +Source: %{name}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python3-devel +BuildRequires: python3-xml +BuildRequires: python-libxml2 +BuildRequires: python3-lxml +Provides: python3-cython = %{version} +Obsoletes: python3-cython < %{version} +Requires: python3-xml +Requires: python-libxml2 +Requires: python3-lxml + + +%description +The Cython language makes writing C extensions for the Python language as +easy as Python itself. Cython is a source code translator based on the +well-known Pyrex, but supports more cutting edge functionality and +optimizations. + +The Cython language is very close to the Python language (and most Python +code is also valid Cython code), but Cython additionally supports calling C +functions and declaring C types on variables and class attributes. This +allows the compiler to generate very efficient C code from Cython code. + +This makes Cython the ideal language for writing glue code for external C +libraries, and for fast C modules that speed up the execution of Python +code. + +%prep +%setup -q -n cython-%{version} + +%build +export CFLAGS="%{optflags}" +%{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes -s %{buildroot}%{python3_sitearch} %{buildroot}%{_docdir} +%remove_docs + +%files +%license LICENSE.txt +%{_bindir}/cygdb +%{_bindir}/cython +%{_bindir}/cythonize +%{python3_sitearch}/Cython* +%{python3_sitearch}/cython* +%{python3_sitearch}/pyximport/ +%{python3_sitearch}/__pycache__/cython*