- Update to 0.93; fixes #531102 and #555284.

- Enable checks requiring network access in default config.
- Disallow kernel module packages in default config.
- Remove old X11R6 dirs from paths treated as system ones in default
    config.
- Sync Fedora license list with Wiki revision 1.64.
- Omit python-enchant and python-magic dependencies when built on EL.
This commit is contained in:
Ville Skyttä 2010-01-25 22:20:10 +00:00
parent 92915b8f21
commit 54cb46a0ce
4 changed files with 34 additions and 9 deletions

View File

@ -1 +1 @@
rpmlint-0.92.tar.bz2 rpmlint-0.93.tar.bz2

View File

@ -5,19 +5,24 @@
import os.path import os.path
import re import re
import sys
from Config import * from Config import *
import Pkg import Pkg
setOption("CompressExtension", "gz")
setOption("DefaultPythonVersion", sys.version[:3])
setOption("KernelModuleRPMsOK", False)
setOption("MaxLineLength", 80) setOption("MaxLineLength", 80)
setOption("NetworkEnabled", True)
setOption("ReleaseExtension", '\.(fc|rhe?l|el)\d+(?=\.|$)') setOption("ReleaseExtension", '\.(fc|rhe?l|el)\d+(?=\.|$)')
setOption("UseVersionInChangeLog", True)
setOption("UseBzip2", False)
setOption("UseDefaultRunlevels", False) setOption("UseDefaultRunlevels", False)
setOption("UseEpoch", False) setOption("UseEpoch", False)
setOption("UseUTF8", True) setOption("UseUTF8", True)
setOption("UseVersionInChangeLog", True)
setOption("ValidSrcPerms", (0664, 0644, )) setOption("ValidSrcPerms", (0664, 0644, ))
setOption("ValidShells", ( setOption("ValidShells", (
"<lua>", "<lua>",
"/bin/sh", "/bin/sh",
@ -35,13 +40,14 @@ setOption("DanglingSymlinkExceptions", (
setOption("ValidLicenses", ( setOption("ValidLicenses", (
# These are the short names for all of the Fedora approved licenses. # These are the short names for all of the Fedora approved licenses.
# The master list is kept here: http://fedoraproject.org/wiki/Licensing # The master list is kept here: http://fedoraproject.org/wiki/Licensing
# Last synced with revision "1.53, 8 Oct 2009" of that page. # Last synced with revision "1.64, 15 Jan 2010" of that page.
'AAL', 'AAL',
'Adobe', 'Adobe',
'ADSL', 'ADSL',
'AFL', 'AFL',
'AGPLv1', 'AGPLv1',
'AGPLv3', 'AGPLv3',
'AMDPLPA',
'AMPAS BSD', 'AMPAS BSD',
'ARL', 'ARL',
'ASL 1.0', 'ASL 1.0',
@ -58,8 +64,10 @@ setOption("ValidLicenses", (
'BitTorrent', 'BitTorrent',
'Boost', 'Boost',
'BSD', 'BSD',
'BSD Protection',
'BSD with advertising', 'BSD with advertising',
'CATOSL', 'CATOSL',
'CC0',
'CeCILL', 'CeCILL',
'CeCILL-B', 'CeCILL-B',
'CeCILL-C', 'CeCILL-C',
@ -173,6 +181,7 @@ setOption("ValidLicenses", (
'Python', 'Python',
'Qhull', 'Qhull',
'QPL', 'QPL',
'Rdisc',
'RiceBSD', 'RiceBSD',
'RPSL', 'RPSL',
'Ruby', 'Ruby',
@ -188,6 +197,7 @@ setOption("ValidLicenses", (
'TCL', 'TCL',
'Teeworlds', 'Teeworlds',
'TMate', 'TMate',
'TOSL',
'TPL', 'TPL',
'UCD', 'UCD',
'VOSTROM', 'VOSTROM',
@ -200,6 +210,7 @@ setOption("ValidLicenses", (
'wxWidgets', 'wxWidgets',
'Xerox', 'Xerox',
'xinetd', 'xinetd',
'XSkat',
'YPLv1.1', 'YPLv1.1',
'Zend', 'Zend',
'ZPLv1.0', 'ZPLv1.0',
@ -246,6 +257,8 @@ setOption("ValidLicenses", (
'Freely redistributable without restriction', 'Freely redistributable without restriction',
)) ))
setOption('SystemLibPaths', ('/lib', '/lib64', '/usr/lib', '/usr/lib64'))
# Get standard users and groups from the setup package's uidgid file # Get standard users and groups from the setup package's uidgid file
setOption('StandardUsers', []) setOption('StandardUsers', [])
setOption('StandardGroups', []) setOption('StandardGroups', [])
@ -277,7 +290,7 @@ if setup_pkg:
del setup_pkg del setup_pkg
# Output filters # Output filters
addFilter("source-or-patch-not-[bg]zipped") addFilter("source-or-patch-not-compressed")
addFilter("%mklibname") addFilter("%mklibname")
addFilter("no-dependency-on (perl|python)-base") addFilter("no-dependency-on (perl|python)-base")
addFilter("no-dependency-on locales-") addFilter("no-dependency-on locales-")

View File

@ -1,5 +1,5 @@
Name: rpmlint Name: rpmlint
Version: 0.92 Version: 0.93
Release: 1%{?dist} Release: 1%{?dist}
Summary: Tool for checking common errors in RPM packages Summary: Tool for checking common errors in RPM packages
@ -18,10 +18,13 @@ BuildRequires: rpm-python >= 4.4
BuildRequires: sed >= 3.95 BuildRequires: sed >= 3.95
Requires: rpm-python >= 4.4 Requires: rpm-python >= 4.4
Requires: python >= 2.4 Requires: python >= 2.4
%if ! 0%{?rhel}
# python-magic and python-enchant are actually optional dependencies, but # python-magic and python-enchant are actually optional dependencies, but
# they bring quite desirable features. # they bring quite desirable features. They're not available in RHEL/EPEL 5
# as of 2010-01-25 though.
Requires: python-magic Requires: python-magic
Requires: python-enchant Requires: python-enchant
%endif
Requires: cpio Requires: cpio
Requires: binutils Requires: binutils
Requires: desktop-file-utils Requires: desktop-file-utils
@ -37,6 +40,7 @@ and source packages as well as spec files can be checked.
%prep %prep
%setup -q %setup -q
sed -i -e /MenuCheck/d Config.py sed -i -e /MenuCheck/d Config.py
cp -p config config.example
install -pm 644 %{SOURCE2} CHANGES.package.old install -pm 644 %{SOURCE2} CHANGES.package.old
install -pm 644 %{SOURCE3} config install -pm 644 %{SOURCE3} config
@ -63,7 +67,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
%doc AUTHORS COPYING ChangeLog CHANGES.package.old README %doc AUTHORS COPYING ChangeLog CHANGES.package.old README config.example
%config(noreplace) %{_sysconfdir}/rpmlint/ %config(noreplace) %{_sysconfdir}/rpmlint/
%{_sysconfdir}/bash_completion.d/ %{_sysconfdir}/bash_completion.d/
%{_bindir}/rpmdiff %{_bindir}/rpmdiff
@ -74,6 +78,14 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Jan 25 2010 Ville Skyttä <ville.skytta@iki.fi> - 0.93-1
- Update to 0.93; fixes #531102 and #555284.
- Enable checks requiring network access in default config.
- Disallow kernel module packages in default config.
- Remove old X11R6 dirs from paths treated as system ones in default config.
- Sync Fedora license list with Wiki revision 1.64.
- Omit python-enchant and python-magic dependencies when built on EL.
* Mon Nov 2 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.92-1 * Mon Nov 2 2009 Ville Skyttä <ville.skytta@iki.fi> - 0.92-1
- Update to 0.92; fixes #528535, and #531102 (partially). - Update to 0.92; fixes #528535, and #531102 (partially).
- Python byte compile patch applied/superseded upstream. - Python byte compile patch applied/superseded upstream.

View File

@ -1 +1 @@
87b07adf3a93066546223a007af18169 rpmlint-0.92.tar.bz2 dcc6149ee00b9c7fdabe487686f0ec3b rpmlint-0.93.tar.bz2