- add rpmlintrc to mask false positives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=9
This commit is contained in:
parent
e977c66557
commit
d5a19efafe
2
python-Cython-rpmlintrc
Normal file
2
python-Cython-rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
||||
setBadness('devel-file-in-non-devel-package', 0)
|
||||
addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c')
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user