14
0
forked from pool/python-Cython

Accepting request 248948 from home:TheBlackCat:branches:devel:languages:python

- Add Cython-fix-version-detection.patch
  This is a patch from upstream that restores version information whose removal is preventing several packages from correctly detecting Cython's presence.  It is already merged upstream and so should be in the next release.
Note that despite what upstream says, python-tables/python3-tables is NOT the only package affected by this, which is why the patch is going here instead of python-tables/python3-tables.
python-bcolz/python3-bcolz is an example of another package affected.

OBS-URL: https://build.opensuse.org/request/show/248948
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=47
This commit is contained in:
Todd R
2014-09-12 11:35:14 +00:00
committed by Git OBS Bridge
parent b4fe873312
commit c6bdb0a00f
3 changed files with 62 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ License: Apache-2.0
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
Source1: python-Cython-rpmlintrc
#PATCH-FIX-UPSTREAM Cython-fix-version-detection.patch https://github.com/cython/cython/commit/43342ab90704f5f850733544288485048160003d
Patch0: Cython-fix-version-detection.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
@@ -55,6 +57,7 @@ code.
%prep
%setup -q -n Cython-%{version}
%patch0 -p1
sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py 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
mv bin/cython bin/cython-%{py_ver}