From d5a19efafe44b2af0c36e6c41c108a8a36ccbb2099d019938be2ffb04e25fb97 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Wed, 29 Feb 2012 19:08:32 +0000 Subject: [PATCH 01/11] - add rpmlintrc to mask false positives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=9 --- python-Cython-rpmlintrc | 2 ++ python-Cython.changes | 5 +++++ python-Cython.spec | 11 ++++++++--- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 python-Cython-rpmlintrc diff --git a/python-Cython-rpmlintrc b/python-Cython-rpmlintrc new file mode 100644 index 0000000..40f70c0 --- /dev/null +++ b/python-Cython-rpmlintrc @@ -0,0 +1,2 @@ +setBadness('devel-file-in-non-devel-package', 0) +addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') diff --git a/python-Cython.changes b/python-Cython.changes index 7a32626..ede34a5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 29 19:07:57 UTC 2012 - pascal.bleser@opensuse.org + +- add rpmlintrc to mask false positives + ------------------------------------------------------------------- Wed Sep 21 12:34:19 UTC 2011 - saschpe@suse.de diff --git a/python-Cython.spec b/python-Cython.spec index 3fd1c20..0eccafe 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -1,7 +1,7 @@ # # spec file for package python-Cython # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: The Cython compiler for writing C extensions for the Python lang License: Apache-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz +Source99: python-Cython-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} @@ -51,8 +52,7 @@ code. %prep %setup -q -n Cython-%{version} -sed -i "s/\r//" Demos/{callback/README.txt,callback/cheesefinder.h,embed/Makefile.unix,embed/Makefile.msc.static} Doc/primes.c # Fix EOL encoding -sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-excutable scripts +sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build @@ -60,6 +60,11 @@ CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +# fix EOL encoding +%__sed -i 's/\r$//' \ +Demos/{callback/README.txt,callback/cheesefinder.h,embed/Makefile.unix,embed/Makefile.msc.static} \ +Doc/primes.c + # Disabled testsuite as it takes a long time: #%%check #python runtests.py From 7bbff4755629c984fdb8e66adc38e434824d6c822e6500258a6eec9244694275 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 24 Apr 2012 08:43:13 +0000 Subject: [PATCH 02/11] Accepting request 115083 from home:vdziewiecki:branches:devel:languages:python -Update to 0.16: http://wiki.cython.org/ReleaseNotes-0.16 OBS-URL: https://build.opensuse.org/request/show/115083 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=10 --- Cython-0.16.tar.gz | 3 +++ python-Cython.changes | 6 ++++++ python-Cython.spec | 3 +-- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Cython-0.16.tar.gz diff --git a/Cython-0.16.tar.gz b/Cython-0.16.tar.gz new file mode 100644 index 0000000..62ddc3a --- /dev/null +++ b/Cython-0.16.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:971651fc5d3c943b0ecf7bc4df86a977bf62623d94542bf2aaa5f7223697e6fb +size 1240372 diff --git a/python-Cython.changes b/python-Cython.changes index ede34a5..bd20c7f 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 23 11:09:29 UTC 2012 - vdziewiecki@suse.com + +-Update to 0.16: + http://wiki.cython.org/ReleaseNotes-0.16 + ------------------------------------------------------------------- Wed Feb 29 19:07:57 UTC 2012 - pascal.bleser@opensuse.org diff --git a/python-Cython.spec b/python-Cython.spec index 0eccafe..89a0878 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -16,9 +16,8 @@ # - Name: python-Cython -Version: 0.15.1 +Version: 0.16 Release: 0 Url: http://www.cython.org Summary: The Cython compiler for writing C extensions for the Python language From 7df235766ee42dce0c3bcf24dbec5286a58fca88e9198be3557ec14f6d2da826 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 21 May 2012 09:21:58 +0000 Subject: [PATCH 03/11] Accepting request 121584 from home:TheBlackCat:branches:devel:languages:python Add python 3 package OBS-URL: https://build.opensuse.org/request/show/121584 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=11 --- Cython-0.15.1.tar.gz | 3 -- python-Cython.changes | 5 +++ python-Cython.spec | 31 ++++++++----- python3-Cython-rpmlintrc | 2 + python3-Cython.changes | 5 +++ python3-Cython.spec | 95 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 127 insertions(+), 14 deletions(-) delete mode 100644 Cython-0.15.1.tar.gz create mode 100644 python3-Cython-rpmlintrc create mode 100644 python3-Cython.changes create mode 100644 python3-Cython.spec diff --git a/Cython-0.15.1.tar.gz b/Cython-0.15.1.tar.gz deleted file mode 100644 index b62fade..0000000 --- a/Cython-0.15.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:248123f2f02f2701a28d9452132ac835533b396a273cda9d361cb65c26067edc -size 1796536 diff --git a/python-Cython.changes b/python-Cython.changes index bd20c7f..b0743c3 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com + +- Add python 3 package + ------------------------------------------------------------------- Mon Apr 23 11:09:29 UTC 2012 - vdziewiecki@suse.com diff --git a/python-Cython.spec b/python-Cython.spec index 89a0878..86da916 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -15,24 +15,28 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -Name: python-Cython +%define modname Cython +%define binname cython +Name: python-%{modname} Version: 0.16 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/Cython/Cython-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz Source99: python-Cython-rpmlintrc 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} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description The Cython language makes writing C extensions for the Python language as @@ -50,7 +54,7 @@ libraries, and for fast C modules that speed up the execution of Python code. %prep -%setup -q -n Cython-%{version} +%setup -q -n %{modname}-%{version} sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts %build @@ -58,11 +62,11 @@ CFLAGS="%{optflags} -fno-strict-aliasing" 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,callback/cheesefinder.h,embed/Makefile.unix,embed/Makefile.msc.static} \ -Doc/primes.c +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 # Disabled testsuite as it takes a long time: #%%check @@ -71,7 +75,12 @@ Doc/primes.c %files %defattr(-,root,root,-) %doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos -%{_bindir}/cy* -%{python_sitearch}/* +%{_bindir}/cygdb +%{_bindir}/%{binname} +%{python_sitearch}/%{modname}/ +%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info +%{python_sitearch}/%{binname}.py +%{python_sitearch}/%{binname}.pyc +%{python_sitearch}/pyximport/ %changelog diff --git a/python3-Cython-rpmlintrc b/python3-Cython-rpmlintrc new file mode 100644 index 0000000..40f70c0 --- /dev/null +++ b/python3-Cython-rpmlintrc @@ -0,0 +1,2 @@ +setBadness('devel-file-in-non-devel-package', 0) +addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') diff --git a/python3-Cython.changes b/python3-Cython.changes new file mode 100644 index 0000000..3814312 --- /dev/null +++ b/python3-Cython.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com + +- Add python 3 package + diff --git a/python3-Cython.spec b/python3-Cython.spec new file mode 100644 index 0000000..997bdd6 --- /dev/null +++ b/python3-Cython.spec @@ -0,0 +1,95 @@ +# +# spec file for package python3-Cython +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define modname Cython +%define binname cython +Name: python3-%{modname} +Version: 0.16 +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 +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 +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 %{modname}-%{version} +sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts + +%build +CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} >= 1210 +rm -r %{buildroot}%{python3_sitearch}/__pycache__/ +%endif +%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 + +# Disabled testsuite as it takes a long time: +#%%check +#python runtests.py + +%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 +%{python3_sitearch}/pyximport/ +%{python3_sitearch}/%{binname}.py +%if 0%{?suse_version} <= 1210 +%{python3_sitearch}/%{binname}.pyc +%endif + +%changelog From 78b05d04fc9d2d7b24210f6d919256b0aa18ab20dfc206e8129553a5f61f4cb6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 21 May 2012 10:19:11 +0000 Subject: [PATCH 04/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=12 --- python-Cython-rpmlintrc | 1 - 1 file changed, 1 deletion(-) diff --git a/python-Cython-rpmlintrc b/python-Cython-rpmlintrc index 40f70c0..ebe7658 100644 --- a/python-Cython-rpmlintrc +++ b/python-Cython-rpmlintrc @@ -1,2 +1 @@ -setBadness('devel-file-in-non-devel-package', 0) addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') From 58867142088dc889bdec5a643d097501650101025242416845e5e82b09273c1c Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 21 May 2012 10:19:18 +0000 Subject: [PATCH 05/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=13 --- python3-Cython-rpmlintrc | 1 - 1 file changed, 1 deletion(-) diff --git a/python3-Cython-rpmlintrc b/python3-Cython-rpmlintrc index 40f70c0..ebe7658 100644 --- a/python3-Cython-rpmlintrc +++ b/python3-Cython-rpmlintrc @@ -1,2 +1 @@ -setBadness('devel-file-in-non-devel-package', 0) addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') From 1e3e6df1c4fc5adbdfeb9982e414b340cfa78cbd1affadb96fe7eaf5edbf4b55 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 21 May 2012 10:55:42 +0000 Subject: [PATCH 06/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=14 --- python3-Cython.changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python3-Cython.changes b/python3-Cython.changes index 3814312..fd29b79 100644 --- a/python3-Cython.changes +++ b/python3-Cython.changes @@ -2,4 +2,6 @@ Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com - Add python 3 package +- Clean up spec file formatting +- Remove setbadness from rplintrc files From 8e62ae3dcaa791d05473e8832d32ee1b5e643041d0ee38e4d467b2078710dbc3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 21 May 2012 10:55:45 +0000 Subject: [PATCH 07/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=15 --- python-Cython.changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index b0743c3..d6c5614 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -2,6 +2,8 @@ Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com - Add python 3 package +- Clean up spec file formatting +- Remove setbadness from rplintrc files ------------------------------------------------------------------- Mon Apr 23 11:09:29 UTC 2012 - vdziewiecki@suse.com From 3760a92d5ebe477d5308b682adab0b559b3c00045bfeb65e1cf427a8e04e790c Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 07:47:01 +0000 Subject: [PATCH 08/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=16 --- python3-Cython.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python3-Cython.spec b/python3-Cython.spec index 997bdd6..0f3344f 100644 --- a/python3-Cython.spec +++ b/python3-Cython.spec @@ -87,9 +87,6 @@ sed -i 's/\r$//' Doc/primes.c %{python3_sitearch}/%{modname}/ %{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info %{python3_sitearch}/pyximport/ -%{python3_sitearch}/%{binname}.py -%if 0%{?suse_version} <= 1210 -%{python3_sitearch}/%{binname}.pyc -%endif +%{python3_sitearch}/%{binname}.py* %changelog From 71d069d577dcfbb0d439ee12b209280e67fd4e8676fe5236fc9363bfbb7a2aa6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 07:47:33 +0000 Subject: [PATCH 09/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=17 --- python3-Cython.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python3-Cython.changes b/python3-Cython.changes index fd29b79..1c4c9d2 100644 --- a/python3-Cython.changes +++ b/python3-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 25 07:47:16 UTC 2012 - toddrme2178@gmail.com + +- Fix .py/.pyc issues + ------------------------------------------------------------------- Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com From 5782b223e3204395abff8990eca2f8547c35a14ee07beeed599945f03c5ef55f Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 07:47:46 +0000 Subject: [PATCH 10/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=18 --- python-Cython.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-Cython.spec b/python-Cython.spec index 86da916..95a7cdc 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -79,8 +79,7 @@ sed -i 's/\r$//' Doc/primes.c %{_bindir}/%{binname} %{python_sitearch}/%{modname}/ %{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info -%{python_sitearch}/%{binname}.py -%{python_sitearch}/%{binname}.pyc +%{python_sitearch}/%{binname}.py* %{python_sitearch}/pyximport/ %changelog From 6d6909968abcb68e50870557b9fbca977d18e23400d918b610d2f4b6cdc06040 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 07:47:58 +0000 Subject: [PATCH 11/11] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=19 --- python-Cython.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index d6c5614..96d80c8 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 25 07:47:16 UTC 2012 - toddrme2178@gmail.com + +- Fix .py/.pyc issues + ------------------------------------------------------------------- Fri May 18 10:52:46 UTC 2012 - toddrme2178@gmail.com