1
0
forked from pool/python-Cython

Accepting request 142493 from devel:languages:python

- 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/request/show/142493
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Cython?expand=0&rev=10
This commit is contained in:
Stephan Kulow 2012-11-28 13:32:53 +00:00 committed by Git OBS Bridge
commit e5ade195df
9 changed files with 55 additions and 57 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:971651fc5d3c943b0ecf7bc4df86a977bf62623d94542bf2aaa5f7223697e6fb
size 1240372

3
Cython-0.17.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea1a3147d4d952e793a1043d8802ea67747892fefe7fb7e5c0cfb8bf51883be6
size 1288282

View File

@ -1 +0,0 @@
addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c')

View File

@ -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 Fri May 25 07:47:16 UTC 2012 - toddrme2178@gmail.com

View File

@ -15,28 +15,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define modname Cython
%define binname cython Name: python-Cython
Name: python-%{modname} Version: 0.17.2
Version: 0.16
Release: 0 Release: 0
Url: http://www.cython.org Url: http://www.cython.org
Summary: The Cython compiler for writing C extensions for the Python language Summary: The Cython compiler for writing C extensions for the Python language
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
Source99: python-Cython-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-devel 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} Provides: python-cython = %{version}
Obsoletes: 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 %description
The Cython language makes writing C extensions for the Python language as 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. code.
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n Cython-%{version}
sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts 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 %build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build CFLAGS="%{optflags}" python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot} %fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir}
# 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: # Disabled testsuite as it takes a long time:
#%%check #%%check
@ -76,10 +68,10 @@ sed -i 's/\r$//' Doc/primes.c
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos %doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos
%{_bindir}/cygdb %{_bindir}/cygdb
%{_bindir}/%{binname} %{_bindir}/cython
%{python_sitearch}/%{modname}/ %{python_sitearch}/Cython/
%{python_sitearch}/%{modname}-%{version}-py%{py_ver}.egg-info %{python_sitearch}/Cython-%{version}-py%{py_ver}.egg-info
%{python_sitearch}/%{binname}.py* %{python_sitearch}/cython.py*
%{python_sitearch}/pyximport/ %{python_sitearch}/pyximport/
%changelog %changelog

View File

@ -1 +0,0 @@
addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c')

View File

@ -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 Thu Jun 14 12:24:59 UTC 2012 - toddrme2178@gmail.com

View File

@ -15,29 +15,20 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define modname Cython
%define binname cython Name: python3-Cython
Name: python3-%{modname} Version: 0.17.2
Version: 0.16
Release: 0 Release: 0
Url: http://www.cython.org Url: http://www.cython.org
Summary: The Cython compiler for writing C extensions for the Python language Summary: The Cython compiler for writing C extensions for the Python language
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/C/%{modname}/%{modname}-%{version}.tar.gz Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
Source99: python-Cython-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3 BuildRequires: python3
BuildRequires: python3-2to3 BuildRequires: python3-2to3
BuildRequires: python3-devel 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 %description
The Cython language makes writing C extensions for the Python language as 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. code.
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n Cython-%{version}
sed -i "1d" {Cython/Debugger/libpython,Cython/Debugger/Cygdb,cython}.py # Fix non-executable scripts 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 %build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build CFLAGS="%{optflags}" python3 setup.py build
%install %install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}%{python_sitearch} %{buildroot}%{_docdir}
rm -rf %{buildroot}%{python3_sitearch}/__pycache__/ rm -rf %{buildroot}%{python3_sitearch}/__pycache__/
%fdupes -s %{buildroot}
# avoid conflicts with python 2 version # avoid conflicts with python 2 version
mv %{buildroot}%{_bindir}/cygdb %{buildroot}%{_bindir}/cygdb-python3 mv %{buildroot}%{_bindir}/cygdb %{buildroot}%{_bindir}/cygdb-%{py3_ver}
mv %{buildroot}%{_bindir}/%{binname} %{buildroot}%{_bindir}/%{binname}-python3 mv %{buildroot}%{_bindir}/cython %{buildroot}%{_bindir}/cython-%{py3_ver}
# 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: # Disabled testsuite as it takes a long time:
#%%check #%%check
@ -80,11 +68,11 @@ sed -i 's/\r$//' Doc/primes.c
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos %doc COPYING.txt LICENSE.txt README.txt ToDo.txt USAGE.txt Doc Demos
%{_bindir}/cygdb-python3 %{_bindir}/cygdb-%{py3_ver}
%{_bindir}/%{binname}-python3 %{_bindir}/cython-%{py3_ver}
%{python3_sitearch}/%{modname}/ %{python3_sitearch}/Cython/
%{python3_sitearch}/%{modname}-%{version}-py%{py3_ver}.egg-info %{python3_sitearch}/Cython-%{version}-py%{py3_ver}.egg-info
%{python3_sitearch}/pyximport/ %{python3_sitearch}/pyximport/
%{python3_sitearch}/%{binname}.py* %{python3_sitearch}/cython.py*
%changelog %changelog

1
rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter('devel-file-in-non-devel-package .*/Cython/.*')