From d5a19efafe44b2af0c36e6c41c108a8a36ccbb2099d019938be2ffb04e25fb97 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Wed, 29 Feb 2012 19:08:32 +0000 Subject: [PATCH] - add rpmlintrc to mask false positives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=9 --- python-Cython-rpmlintrc | 2 ++ python-Cython.changes | 5 +++++ python-Cython.spec | 11 ++++++++--- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 python-Cython-rpmlintrc diff --git a/python-Cython-rpmlintrc b/python-Cython-rpmlintrc new file mode 100644 index 0000000..40f70c0 --- /dev/null +++ b/python-Cython-rpmlintrc @@ -0,0 +1,2 @@ +setBadness('devel-file-in-non-devel-package', 0) +addFilter('devel-file-in-non-devel-package .*/Cython/Debugger/Tests/cfuncs.c') diff --git a/python-Cython.changes b/python-Cython.changes index 7a32626..ede34a5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -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 diff --git a/python-Cython.spec b/python-Cython.spec index 3fd1c20..0eccafe 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -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