From 6bdab78bea18e8de4548603efe11bcf7fe0df13d62f04745c2239b835036533e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 22 Nov 2012 15:35:09 +0000 Subject: [PATCH] - Update to version 0.17.2: + Please see http://wiki.cython.org/ReleaseNotes-0.18.2 - Drop excessive macro usage - No need for "-fno-strict-aliasing" anymore - One rpmlintrc is enough - Update to version 0.17.2: + Please see http://wiki.cython.org/ReleaseNotes-0.18.2 - Drop excessive macro usage - No need for "-fno-strict-aliasing" anymore - One rpmlintrc is enough - Python3 binary suffix should be "-%{py3_ver}" OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=23 --- Cython-0.16.tar.gz | 3 --- Cython-0.17.2.tar.gz | 3 +++ python-Cython-rpmlintrc | 1 - python-Cython.changes | 9 ++++++++ python-Cython.spec | 40 +++++++++++++++--------------------- python3-Cython-rpmlintrc | 1 - python3-Cython.changes | 10 +++++++++ python3-Cython.spec | 44 +++++++++++++++------------------------- rpmlintrc | 1 + 9 files changed, 55 insertions(+), 57 deletions(-) delete mode 100644 Cython-0.16.tar.gz create mode 100644 Cython-0.17.2.tar.gz delete mode 100644 python-Cython-rpmlintrc delete mode 100644 python3-Cython-rpmlintrc create mode 100644 rpmlintrc diff --git a/Cython-0.16.tar.gz b/Cython-0.16.tar.gz deleted file mode 100644 index 62ddc3a..0000000 --- a/Cython-0.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:971651fc5d3c943b0ecf7bc4df86a977bf62623d94542bf2aaa5f7223697e6fb -size 1240372 diff --git a/Cython-0.17.2.tar.gz b/Cython-0.17.2.tar.gz new file mode 100644 index 0000000..ffaa2fb --- /dev/null +++ b/Cython-0.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea1a3147d4d952e793a1043d8802ea67747892fefe7fb7e5c0cfb8bf51883be6 +size 1288282 diff --git a/python-Cython-rpmlintrc b/python-Cython-rpmlintrc deleted file mode 100644 index ebe7658..0000000 --- a/python-Cython-rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') diff --git a/python-Cython.changes b/python-Cython.changes index 96d80c8..fd1dc91 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Nov 22 15:32:14 UTC 2012 - saschpe@suse.de + +- Update to version 0.17.2: + + Please see http://wiki.cython.org/ReleaseNotes-0.18.2 +- Drop excessive macro usage +- No need for "-fno-strict-aliasing" anymore +- One rpmlintrc is enough + ------------------------------------------------------------------- Fri May 25 07:47:16 UTC 2012 - toddrme2178@gmail.com diff --git a/python-Cython.spec b/python-Cython.spec index 95a7cdc..ac071a1 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -15,28 +15,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define modname Cython -%define binname cython -Name: python-%{modname} -Version: 0.16 + +Name: python-Cython +Version: 0.17.2 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language License: Apache-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz -Source99: python-Cython-rpmlintrc +Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-devel -%if 0%{?suse_version} -%py_requires -%endif -%if 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif Provides: python-cython = %{version} Obsoletes: python-cython < %{version} +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif %description The Cython language makes writing C extensions for the Python language as @@ -54,19 +49,16 @@ libraries, and for fast C modules that speed up the execution of Python code. %prep -%setup -q -n %{modname}-%{version} -sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts +%setup -q -n Cython-%{version} +sed -i "s|^#!.*||" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts +sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static} Doc/primes.c # Fix EOL encoding %build -CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build +CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes -s %{buildroot} -# fix EOL encoding -sed -i 's/\r$//' Demos/callback/{README.txt,cheesefinder.h} -sed -i 's/\r$//' Demos/embed/{Makefile.unix,Makefile.msc.static} -sed -i 's/\r$//' Doc/primes.c +%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir} # Disabled testsuite as it takes a long time: #%%check @@ -76,10 +68,10 @@ sed -i 's/\r$//' Doc/primes.c %defattr(-,root,root,-) %doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos %{_bindir}/cygdb -%{_bindir}/%{binname} -%{python_sitearch}/%{modname}/ -%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info -%{python_sitearch}/%{binname}.py* +%{_bindir}/cython +%{python_sitearch}/Cython/ +%{python_sitearch}/Cython-%{version}-py%{py_ver}.egg-info +%{python_sitearch}/cython.py* %{python_sitearch}/pyximport/ %changelog diff --git a/python3-Cython-rpmlintrc b/python3-Cython-rpmlintrc deleted file mode 100644 index ebe7658..0000000 --- a/python3-Cython-rpmlintrc +++ /dev/null @@ -1 +0,0 @@ -addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') diff --git a/python3-Cython.changes b/python3-Cython.changes index 422de82..d5b69f7 100644 --- a/python3-Cython.changes +++ b/python3-Cython.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Nov 22 15:33:16 UTC 2012 - saschpe@suse.de + +- Update to version 0.17.2: + + Please see http://wiki.cython.org/ReleaseNotes-0.18.2 +- Drop excessive macro usage +- No need for "-fno-strict-aliasing" anymore +- One rpmlintrc is enough +- Python3 binary suffix should be "-%{py3_ver}" + ------------------------------------------------------------------- Thu Jun 14 12:24:59 UTC 2012 - toddrme2178@gmail.com diff --git a/python3-Cython.spec b/python3-Cython.spec index 9ff2ce8..81a9866 100644 --- a/python3-Cython.spec +++ b/python3-Cython.spec @@ -15,29 +15,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%define modname Cython -%define binname cython -Name: python3-%{modname} -Version: 0.16 + +Name: python3-Cython +Version: 0.17.2 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language License: Apache-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz -Source99: python-Cython-rpmlintrc +Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python3 BuildRequires: python3-2to3 BuildRequires: python3-devel -Requires: python3 >= %{py3_ver} -%if 0%{?suse_version} <= 1140 -%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} -%endif -Provides: python3-cython = %{version} -Obsoletes: python3-cython < %{version} %description The Cython language makes writing C extensions for the Python language as @@ -55,23 +46,20 @@ libraries, and for fast C modules that speed up the execution of Python code. %prep -%setup -q -n %{modname}-%{version} -sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts +%setup -q -n Cython-%{version} +sed -i "s|^#!.*||" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts +sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} Demos/embed/Makefile.{unix,msc.static} Doc/primes.c # Fix EOL encoding %build -CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build +CFLAGS="%{optflags}" python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir} rm -rf %{buildroot}%{python3_sitearch}/__pycache__/ -%fdupes -s %{buildroot} # avoid conflicts with python 2 version -mv %{buildroot}%{_bindir}/cygdb %{buildroot}%{_bindir}/cygdb-python3 -mv %{buildroot}%{_bindir}/%{binname} %{buildroot}%{_bindir}/%{binname}-python3 -# fix EOL encoding -sed -i 's/\r$//' Demos/callback/{README.txt,cheesefinder.h} -sed -i 's/\r$//' Demos/embed/{Makefile.unix,Makefile.msc.static} -sed -i 's/\r$//' Doc/primes.c +mv %{buildroot}%{_bindir}/cygdb %{buildroot}%{_bindir}/cygdb-%{py3_ver} +mv %{buildroot}%{_bindir}/cython %{buildroot}%{_bindir}/cython-%{py3_ver} # Disabled testsuite as it takes a long time: #%%check @@ -80,11 +68,11 @@ sed -i 's/\r$//' Doc/primes.c %files %defattr(-,root,root,-) %doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos -%{_bindir}/cygdb-python3 -%{_bindir}/%{binname}-python3 -%{python3_sitearch}/%{modname}/ -%{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info +%{_bindir}/cygdb-%{py3_ver} +%{_bindir}/cython-%{py3_ver} +%{python3_sitearch}/Cython/ +%{python3_sitearch}/Cython-%{version}-py%{py3_ver}.egg-info %{python3_sitearch}/pyximport/ -%{python3_sitearch}/%{binname}.py* +%{python3_sitearch}/cython.py* %changelog diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..6d624f0 --- /dev/null +++ b/rpmlintrc @@ -0,0 +1 @@ +addFilter('devel-file-in-non-devel-package .*/Cython/.*')