From 91f96d359abefb2e8b50ebaa83fc4a8a60eff959 Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Mon, 30 Mar 2020 16:21:13 +0900 Subject: [PATCH] Apply python3 build Change-Id: Iff69ab23a35e3a0929679637c1571244729d45be Signed-off-by: Hyunjee Kim --- packaging/python3-cython.spec | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 packaging/python3-cython.spec diff --git a/packaging/python3-cython.spec b/packaging/python3-cython.spec new file mode 100644 index 0000000..8b7b4eb --- /dev/null +++ b/packaging/python3-cython.spec @@ -0,0 +1,57 @@ +Name: python3-cython +Version: 0.27.3 +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-0.27.x + +%build +CFLAGS="%{optflags}" %{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes -s %{buildroot}%{python3_sitearch} %{buildroot}%{_docdir} + +%files +%defattr(-,root,root,-) +%license COPYING.txt LICENSE.txt +%doc README.txt ToDo.txt USAGE.txt Doc Demos +%{_bindir}/cygdb +%{_bindir}/cython +%{_bindir}/cythonize +%{python3_sitearch}/Cython* +%{python3_sitearch}/cython* +%{python3_sitearch}/pyximport/ +%{python3_sitearch}/__pycache__/cython* -- 2.7.4