Log: update to 0.19.2, fix spec for u_b

This commit is contained in:
symbianflo 2014-01-05 00:58:49 +01:00
parent cb9299727a
commit 1709d8afc6
2 changed files with 48 additions and 10 deletions

View file

@ -1,4 +1,5 @@
removed_sources:
Cython-0.18.tar.gz: d95026aebd2e438ee52033f8c9cef1de4e6b03f4
sources:
Cython-0.19.1.tar.gz: f8c8baa2c358a7482de71d0c744bf19caaae6621
sources:
Cython-0.19.2.tar.gz: f8b5baff885c836a264bec2ac7f2f7910b2f1a9d

View file

@ -1,8 +1,11 @@
%define tarname Cython
%define develname %mklibname -d %{name}
Summary: Language for writing C extensions to Python
Name: python-cython
Version: 0.19.1
Version: 0.19.2
Release: 1
Source0: https://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
License: Apache License
@ -11,6 +14,8 @@ Url: http://www.cython.org
BuildRequires: pkgconfig(python)
BuildRequires: pythonegg(setuptools)
BuildRequires: dos2unix
BuildRequires: emacs
%description
Cython is a language that facilitates the writing of C extensions for
@ -18,20 +23,43 @@ the Python language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.
#-------------
%package -n %{develname}
Summary: Devel files for %{name}
Group: Development/Python
Requires: %{name} = %{version}-%{release}
%description -n %{develname}
Devel files for %{name}.
%files -n %{develname}
%doc *.txt
%{py_platsitedir}/Cython/Utility/*.c
%{py_platsitedir}/Cython/Utility/*.h
%{py_platsitedir}/Cython/Utility/*.cpp
%{py_platsitedir}/Cython/Debugger/Tests/*.c
#-----------------
%prep
%setup -q -n %{tarname}-%{version}
# Fix non-executable scripts
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py
sed -i "s|^#!.*||" cython.py
# Fix EOL encoding
sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h}
sed -i "s|\r||" Demos/embed/Makefile.{unix,msc.static}
sed -i "s|\r||" Doc/primes.c
%build
python setup.py build
CFLAGS="%{optflags}" python setup.py build
%install
find -name .*DS_Store* | xargs rm -rf
python setup.py install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}%{py_platsitedir}/setuptools/tests
PYTHONDONTWRITEBYTECODE= python setup.py install --root %{buildroot}
pushd Tools
dos2unix cython-mode.el
install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
@ -39,13 +67,22 @@ install -m 644 *.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d
popd
%files
%{_sysconfdir}/emacs/site-start.d/*.el*
%doc *.txt Demos Doc Tools
%{_bindir}/cython
%{_bindir}/cygdb
%py_platsitedir/Cython*
%py_platsitedir/cython*
%py_platsitedir/pyximport*
%{py_platsitedir}/Cython
%{py_platsitedir}/cython.py*
%{py_platsitedir}/pyximport
%{py_platsitedir}/Cython*egg-info
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el*
# in devel
%exclude %{py_platsitedir}/Cython/Utility/*.c
%exclude %{py_platsitedir}/Cython/Utility/*.cpp
%exclude %{py_platsitedir}/Cython/Utility/*.h
%exclude %{py_platsitedir}/Cython/Debugger/Tests/cfuncs.c