rpms/rpmlint/devel rpmlint-0.85-configs.patch, NONE, 1.1 rpmlint-etc.config, NONE, 1.1 rpmlint.config, 1.26, 1.27 rpmlint.spec, 1.53, 1.54

Ville Skyttä scop at fedoraproject.org
Thu Oct 30 22:01:39 UTC 2008


Author: scop

Update of /cvs/pkgs/rpms/rpmlint/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11459/devel

Modified Files:
	rpmlint.config rpmlint.spec 
Added Files:
	rpmlint-0.85-configs.patch rpmlint-etc.config 
Log Message:
* Thu Oct 30 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.85-2
- Apply upstream patch to load all *config from /etc/rpmlint.


rpmlint-0.85-configs.patch:

--- NEW FILE rpmlint-0.85-configs.patch ---
Index: rpmlint.py
===================================================================
--- rpmlint.py	(revision 1466)
+++ rpmlint.py	(revision 1467)
@@ -12,6 +12,7 @@
 import AbstractCheck
 import imp
 import getopt
+import glob
 import Pkg
 import Config
 import os
@@ -214,7 +215,10 @@
 info_error=0
 
 # load global config files
-for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config'):
+configs = glob.glob('/etc/rpmlint/*config')
+configs.sort()
+configs.insert(0, '/usr/share/rpmlint/config')
+for f in configs:
     try:
         execfile(f)
     except IOError:
Index: rpmlint.1
===================================================================
--- rpmlint.1	(revision 1466)
+++ rpmlint.1	(revision 1467)
@@ -55,7 +55,7 @@
 \fB/usr/share/rpmlint/config\fR
 Built-in configuration.
 .TP
-\fB/etc/rpmlint/config\fR
+\fB/etc/rpmlint/*config\fR
 System wide configuration.
 .TP
 \fB~/.rpmlintrc\fR
Index: README
===================================================================
--- README	(revision 1466)
+++ README	(revision 1467)
@@ -30,7 +30,7 @@
 	o Rpm file checks (RpmFileCheck).
 
 If you want to change configuration options or the list of checks, use
-the global configuration file /etc/rpmlint/config or in the user
+the global configuration files /etc/rpmlint/*config or the user
 configuration file ~/.rpmlintrc.
 
 Configuration files are Python source files and should begin with the


--- NEW FILE rpmlint-etc.config ---
# Add local system wide rpmlint configuration here or in other *config files
# in this directory.


Index: rpmlint.config
===================================================================
RCS file: /cvs/pkgs/rpms/rpmlint/devel/rpmlint.config,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- rpmlint.config	23 Oct 2008 20:25:52 -0000	1.26
+++ rpmlint.config	30 Oct 2008 22:01:09 -0000	1.27
@@ -28,7 +28,7 @@
 setOption("ValidLicenses", (
     # These are the short names for all of the Fedora approved licenses.
     # The master list is kept here: http://fedoraproject.org/wiki/Licensing
-    # Last synced with revision "1.19, 23 Oct 2008" of that page.
+    # Last synced with revision "1.20, 30 Oct 2008" of that page.
     'AAL',
     'Adobe',
     'ADSL',


Index: rpmlint.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rpmlint/devel/rpmlint.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- rpmlint.spec	23 Oct 2008 20:37:20 -0000	1.53
+++ rpmlint.spec	30 Oct 2008 22:01:09 -0000	1.54
@@ -1,6 +1,6 @@
 Name:           rpmlint
 Version:        0.85
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Tool for checking common errors in RPM packages
 
 Group:          Development/Tools
@@ -9,7 +9,11 @@
 Source0:        http://rpmlint.zarb.org/download/%{name}-%{version}.tar.bz2
 Source1:        %{name}.config
 Source2:        %{name}-CHANGES.package.old
+Source3:        %{name}-etc.config
+# Fedora specific, not upstreamable
 Patch0:         %{name}-0.85-compile.patch
+# From upstream svn
+Patch1:         %{name}-0.85-configs.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -31,8 +35,10 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p0
 sed -i -e /MenuCheck/d Config.py
 install -pm 644 %{SOURCE2} CHANGES.package.old
+install -pm 644 %{SOURCE3} config
 
 
 %build
@@ -44,8 +50,6 @@
 touch rpmlint.pyc rpmlint.pyo # just for the %%exclude to work everywhere
 make install DESTDIR=$RPM_BUILD_ROOT ETCDIR=%{_sysconfdir} MANDIR=%{_mandir} \
   LIBDIR=%{_datadir}/rpmlint BINDIR=%{_bindir}
-echo "# Add local system wide rpmlint configuration here." \
-  > $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/config
 install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/rpmlint/config
 
 
@@ -66,6 +70,9 @@
 
 
 %changelog
+* Thu Oct 30 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.85-2
+- Apply upstream patch to load all *config from /etc/rpmlint.
+
 * Thu Oct 23 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.85-1
 - 0.85, fixes #355861, #450011, #455371, #456843, #461421, #461423, #461434.
 - Mute some explicit-lib-dependency false positives (#458290).




More information about the scm-commits mailing list