Add packaging files 00/230400/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix sandbox/backup/cython-0.27.3_20210104 tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.112556 accepted/tizen/6.0/unified/hotfix/20201102.232915 accepted/tizen/unified/20200413.070924 submit/tizen/20200413.012032 submit/tizen_6.0/20201029.205503 submit/tizen_6.0_hotfix/20201102.192903 submit/tizen_6.0_hotfix/20201103.115103 tizen_6.0.m2_release
authorHyunjee Kim <hj0426.kim@samsung.com>
Fri, 10 Apr 2020 00:34:57 +0000 (09:34 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Fri, 10 Apr 2020 03:48:10 +0000 (12:48 +0900)
Change-Id: I95d9f80bc5cb09d1708b9656d967da1db67d437e
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/python3-cython.manifest [new file with mode: 0644]
packaging/python3-cython.spec [new file with mode: 0644]

diff --git a/packaging/python3-cython.manifest b/packaging/python3-cython.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-cython.spec b/packaging/python3-cython.spec
new file mode 100644 (file)
index 0000000..8b7b4eb
--- /dev/null
@@ -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*