OBS User unknown 2007-05-24 22:36:44 +00:00 committed by Git OBS Bridge
parent 1ef4af702e
commit 634a8bc270
3 changed files with 49 additions and 2 deletions

35
package-rpmlintrc.diff Normal file
View File

@ -0,0 +1,35 @@
--- rpmlint.py
+++ rpmlint.py
@@ -193,7 +193,9 @@
info_error=0
# load global config files
-for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config'):
+for f in ('/opt/testing/share/rpmlint/config',
+ '/etc/rpmlint/config',
+ '/usr/src/packages/SOURCES/rpmlintrc'):
try:
execfile(f)
except IOError:
--- Config.py
+++ Config.py
@@ -71,7 +71,7 @@ def resetChecks():
# handle the list of directories to look for checks
-_dirs=["/usr/share/rpmlint"]
+_dirs=["/opt/testing/share/rpmlint"]
def addCheckDir(dir):
global _dirs
--- rpmlint.py
+++ rpmlint.py
@@ -184,7 +184,7 @@ except getopt.error:
sys.exit(1)
# process options
-checkdir='/usr/share/rpmlint'
+checkdir='/opt/testing/share/rpmlint'
verbose=0
extract_dir=None
prof=0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 24 16:45:56 CEST 2007 - dmueller@suse.de
- read $RPM_SOURCE_DIR/rpmlintrc as well to allow
package specific overrides
-------------------------------------------------------------------
Tue May 15 17:59:43 CEST 2007 - dmueller@suse.de

View File

@ -14,13 +14,14 @@ Name: rpmlint-mini
BuildRequires: rpm-python rpmlint
Summary: Rpm correctness checker
Version: 1.0
Release: 1
Release: 5
URL: http://rpmlint.zarb.org/
License: GNU General Public License (GPL)
Group: System/Packages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source100: rpmlint-deps.txt
Source101: rpmlint.wrapper
Patch1: package-rpmlintrc.diff
%description
Rpmlint is a tool to check common errors on rpm packages. Binary and
@ -51,7 +52,9 @@ done
install -D /usr/bin/python $RPM_BUILD_ROOT/opt/testing/bin/python
cp -a %_libdir/libpython%{py_ver}.so.* $RPM_BUILD_ROOT/opt/testing/%{_lib}
cp -a %{py_sitedir}/rpm $RPM_BUILD_ROOT/opt/testing/%{_lib}/python%{py_ver}/
sed -i -e "s,/usr/share/rpmlint,/opt/testing/share/rpmlint," $RPM_BUILD_ROOT/opt/testing/share/rpmlint/*.py
pushd $RPM_BUILD_ROOT/opt/testing/share/rpmlint
patch -p0 -i %PATCH1
popd
rm -f $RPM_BUILD_ROOT/opt/testing/share/rpmlint/Config.py{c,o}
rm -rf $RPM_BUILD_ROOT/{usr,etc}
rm -f $RPM_BUILD_ROOT/opt/testing/bin/rpmlint
@ -83,5 +86,8 @@ rm -rf $RPM_BUILD_ROOT
/opt/testing/bin/rpmlint
%changelog
* Thu May 24 2007 - dmueller@suse.de
- read $RPM_SOURCE_DIR/rpmlintrc as well to allow
package specific overrides
* Tue May 15 2007 - dmueller@suse.de
- Initial package