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:
commit
e5ade195df
@ -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
3
Cython-0.17.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ea1a3147d4d952e793a1043d8802ea67747892fefe7fb7e5c0cfb8bf51883be6
|
||||
size 1288282
|
@ -1 +0,0 @@
|
||||
addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c')
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1 +0,0 @@
|
||||
addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c')
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user