[rpmlint/el5] Revert "2014-12-18: Retired orphaned package, because it was orphaned for more than six weeks."

Till Maas till at fedoraproject.org
Sun Dec 21 19:10:40 UTC 2014


commit 6bb81e5334f0a27e2219c9df3dff45acd7f83ee4
Author: Till Maas <opensource at till.name>
Date:   Sun Dec 21 20:09:28 2014 +0100

    Revert "2014-12-18: Retired orphaned package, because it was orphaned for more than six weeks."
    
    This reverts commit 858f728be42087681e4ed68d2fa7244787e3a0a5.

 .gitignore                    |    2 +
 dead.package                  |    3 -
 rpmlint-0.94-PyCObjects.patch |   14 ++
 rpmlint-CHANGES.package.old   |  234 +++++++++++++++++++++++++
 rpmlint-etc.config            |    2 +
 rpmlint.config                |  387 +++++++++++++++++++++++++++++++++++++++++
 rpmlint.spec                  |  169 ++++++++++++++++++
 sources                       |    1 +
 8 files changed, 809 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6f1fea7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+rpmlint-0.91.tar.bz2
+/rpmlint-0.94.tar.bz2
diff --git a/rpmlint-0.94-PyCObjects.patch b/rpmlint-0.94-PyCObjects.patch
new file mode 100644
index 0000000..08d108a
--- /dev/null
+++ b/rpmlint-0.94-PyCObjects.patch
@@ -0,0 +1,14 @@
+diff -up rpmlint-0.94/rpmdiff.orig rpmlint-0.94/rpmdiff
+--- rpmlint-0.94/rpmdiff.orig	2011-02-15 20:58:19.376875001 +0200
++++ rpmlint-0.94/rpmdiff	2011-02-15 21:00:45.614079419 +0200
+@@ -36,8 +36,8 @@ class Rpmdiff:
+ 
+     # constants
+ 
+-    TAGS = ( rpm.RPMTAG_NAME, rpm.RPMTAG_SUMMARY,
+-             rpm.RPMTAG_DESCRIPTION, rpm.RPMTAG_GROUP,
++    TAGS = ( rpm.RPMTAG_NAME, 1004,
++             1005,1016,
+              rpm.RPMTAG_LICENSE, rpm.RPMTAG_URL,
+              rpm.RPMTAG_PREIN, rpm.RPMTAG_POSTIN,
+              rpm.RPMTAG_PREUN, rpm.RPMTAG_POSTUN)
diff --git a/rpmlint-CHANGES.package.old b/rpmlint-CHANGES.package.old
new file mode 100644
index 0000000..19caf16
--- /dev/null
+++ b/rpmlint-CHANGES.package.old
@@ -0,0 +1,234 @@
+* Thu Dec  6 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.82-2
+- Remove leftover "Affero GPL" from last license list sync (Todd Zullinger).
+
+* Thu Dec  6 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.82-1
+- 0.82, fixes #362441, #388881, #399871, #409941.
+- Sync Fedora license list with Revision 0.61 (Wiki rev 98).
+
+* Fri Sep 28 2007 Todd Zullinger <tmz at pobox.com>
+- Sync Fedora license list with Revision 0.55 (Wiki rev 92).
+
+* Mon Sep  3 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.81-1
+- 0.81, fixes #239611, #240840, #241471, #244835.
+- Improve Fedora license check (Todd Zullinger).
+- Sync Fedora license list with Wiki rev 87.
+
+* Wed Aug 29 2007 Ville Skyttä <ville.skytta at iki.fi>
+- Sync Fedora license list with Wiki rev 84 (Todd Zullinger).
+
+* Thu Aug 16 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.80-3
+- Sync Fedora license list with Wiki rev 68.
+- Move pre-2006 changelog entries to CHANGES.package.old.
+
+* Tue Jul 31 2007 Tom "spot" Callaway <tcallawa at redhat.com> - 0.80-2
+- new fedora licensing scheme
+
+* Thu May 31 2007 Ville Skyttä <ville.skytta at iki.fi>
+- Filter hardcoded-library-path errors for /lib/udev.
+
+* Thu Apr 12 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.80-1
+- 0.80, fixes #227389, #228645, #233795.
+- Accept "Redistributable, no modification permitted" as a valid license.
+- Filter messages about doc file dependencies on /bin/sh.
+- Add missing dependency on file.
+
+* Fri Feb  2 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.79-1
+- 0.79, fixes #211417, #212491, #214605, #218250, #219068, #220061, #221116,
+  #222585, and #226879.
+- Accept *.elX disttags in default config.
+
+* Sun Oct 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.78-2
+- Accumulated bugfixes since 0.78: #209876, #209889, #210110, 210261.
+- Filter messages about gpg-pubkeys for now.
+
+* Sun Sep 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.78-1
+- 0.78, fixes #198605, #198616, #198705, #198707, #200032, #206383.
+- /etc/profile.d/* filtering no longer needed.
+
+* Sat Sep 16 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.77-2
+- Filter false positives for /etc/profile.d/* file modes.
+- Ship *.pyc and *.pyo as usual.
+
+* Thu Jun 29 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.77-1
+- 0.77, fixes #194466, #195962, #196008, #196985.
+- Make "disttag" configurable using the DistRegex config file option.
+- Sync standard users and groups with the FC setup package.
+- Disable MenuCheck by default, it's currently Mandriva specific.
+- Use upstream default valid License tag list, fixes #191078.
+- Use upstream default valid Group tag list (dynamically retrieved from
+  the GROUPS file shipped with rpm).
+- Allow /usr/libexec, fixes #195992.
+
+* Tue Apr 11 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.76-1
+- 0.76.
+
+* Mon Mar 27 2006 Ville Skyttä <ville.skytta at iki.fi>
+- Don't pass -T to objdump for *.debug files (#185227).
+- lib64 library path fixes (#185228).
+
+* Wed Mar 15 2006 Ville Skyttä <ville.skytta at iki.fi>
+- Accept zlib License (#185501).
+
+* Tue Feb 28 2006 Ville Skyttä <ville.skytta at iki.fi>
+- Accept Ruby License (#183384) and SIL Open Font License (#176405).
+
+* Sat Feb 18 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.75-1
+- 0.75 + -devel Epoch version check patch from CVS.
+
+* Tue Jan 17 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.71-3
+- Sync with upstream CVS as of 2006-01-15, includes improved versions of
+  most of the earlier patches.
+- Add dependency on binutils.
+
+* Sun Nov 20 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.71-2
+- Take file based dependencies into account in dangling symlink checks
+  (completes the fix for #165839).
+- Skip some checks for binaries not understood by objdump (#165173).
+- Improve long descriptions of some script warnings.
+- Fix command output parsing in non-English locales.
+- Import Enrico's latest DocFilesCheck (with some local tweaks).
+- Use rm instead of %%exclude.
+
+* Wed Nov 16 2005 Ville Skyttä <ville.skytta at iki.fi>
+- Add DocFilesCheck from Enrico Scholz.
+
+* Sat Sep  3 2005 Ville Skyttä <ville.skytta at iki.fi>
+- Improve accuracy of doc, info and games path regexps.
+- Improve error message when invoked on non-rpm files.
+- Filter more Mandriva specific warnings.
+
+* Sat Aug 13 2005 Ville Skyttä <ville.skytta at iki.fi>
+- Add dangling symlink exceptions tuned for Fedora to default config
+  (partially fixes #165839).
+
+* Wed Aug 10 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.71-1
+- 0.71, confmsg patch and bits from initvars patch applied upstream.
+- Filter out Mandriva-specific errors about missing locales-* deps (#165457).
+- Patch to not warn about non-empty *.bs (in Perl packages).
+- Patch to clarify PreReq explanation, make it a warning instead of an error.
+- Patch to warn about use of BuildPreReq.
+
+* Thu Jul  7 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.70-4
+- Fix false "positives" from libtool archives confused as scripts,
+  non-executable scripts installed in docs, FE disttags, unsuccessfully
+  expanded shell variables and quotation in init scripts.
+
+* Mon Jun 20 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.70-3
+- 0.70, use sed instead of perl during build.
+- Default configuration improvements: allow Development/Debug group (for
+  debuginfo packages), filter out errors/warnings about non-indexed jars,
+  invalid LC_MESSAGES and man page dirs, and library packages containing
+  something else in addition to libraries.
+- Make info about non-config files in /etc more accurate.
+- Patch to warn about services that default to enabled after "chkconfig add",
+  not the other way around.
+
+* Thu May 26 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.69-3
+- Filter out more not-that-useful messages in the default config.
+
+* Sat Apr 16 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.69-2
+- 0.69.
+- Simplify bash-completion snippet installation, remove triggers.
+- Default configuration improvements: filter messages about missing packager,
+  Mandriva specific package naming conventions, %%ghost files without
+  %%post scriptlets, and 0664 source permissions.
+- Exclude check-install.py, it doesn't currently work with rpm >= 4.2.
+- Convert docs to UTF-8.
+- Improve summary.
+
+* Sun Mar 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-2
+- 0.68, siteperl patch applied upstream.
+- Fix "no-dependency-on" filtering in default config.
+- Add LaTeX Project Public License to default config.
+- Remove upstream-only %%changelog entries.
+
+* Sun Feb 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.67-1
+- 0.67.
+- Patch to catch more site_perl directories.
+- Default config improvements: filter Distribution and Vendor warnings,
+  use empty string instead of None for release extension (fixes -i).
+
+* Sat Jan 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.65-1
+- Update to 0.65.
+
+* Sat Jan  1 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:0.64-1
+- Update to 0.64.
+- Default config tweaks: don't mandate Epochs nor "fdr" in Release.
+
+* Tue Oct 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.61-0.fdr.2
+- Requires cpio (bug 2169).
+
+* Sun Oct  3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.61-0.fdr.1
+- Update to 0.61.
+
+* Mon Aug 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.60-0.fdr.1
+- Update to 0.60.
+
+* Mon May  3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.59-0.fdr.1
+- Update to 0.59.
+
+* Sun Feb 22 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.57.1-0.fdr.1
+- Update to 0.57.1.
+
+* Wed Feb 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.56-0.fdr.1
+- Update to 0.56.
+
+* Mon Feb  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.55-0.fdr.3
+- Correctly %%ghost %%{_sysconfdir}/rpmlint/config? (bug 1251).
+
+* Sun Feb  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.55-0.fdr.2
+- Add back %%ghost handling of not-installed compiled versions of *.py.
+
+* Fri Jan 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.55-0.fdr.1
+- Update to 0.55.
+- Spec cleanups.
+
+* Tue Dec 23 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.53-0.fdr.1
+- Update to 0.53.
+
+* Thu Oct  2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.52-0.fdr.2
+- Add list of valid shells for post'n'friends scriptlets into default config.
+
+* Sat Sep 13 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.52-0.fdr.1
+- Update to 0.52.
+
+* Thu Sep  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.51.1-0.fdr.4
+- Filter more Mdk-specific warnings in default config.
+
+* Wed Sep  3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.51.1-0.fdr.3
+- Upstream tarball reappeared, use it.
+
+* Sun Aug 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.51.1-0.fdr.2
+- Filter Mdk-specific python-related stuff in the default config.
+
+* Fri Aug 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.51.1-0.fdr.1
+- Update to 0.51.1.
+- Own %%ghost'ed *.py{c,o}, and ditto for the config file.
+- Add list of valid licenses to default config.
+- Set "Fedora Linux" as suggested distribution in default config.
+- Clean up %%doc list.
+
+* Fri May  9 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.50-0.fdr.1
+- Update to 0.50, all patches now applied upstream.
+
+* Mon May  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.2
+- %%{buildroot} -> $RPM_BUILD_ROOT.
+- Filter out mdk-specific "no-dependancy perl-base" messages in config.
+
+* Thu May  1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.1
+- Update to 0.49.
+
+* Sun Apr 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.0.1.cvs20030420
+- Add one more strict Epoch checking patch.
+- Slightly enhanced default config.
+
+* Fri Apr 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.0.1.cvs20030411
+- Patch to work with installed packages (including -a) and rpm 4.2.
+- Remove spurious rpm-devel BuildRequirement.
+
+* Tue Apr  8 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.0.1.cvs20030408
+- Patch to work with packages signed with an unknown key.
+- Save .spec in UTF-8.
+
+* Sun Mar 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.49-0.fdr.0.1.cvs20030330
+- First Fedora release, based on upstream spec.
diff --git a/rpmlint-etc.config b/rpmlint-etc.config
new file mode 100644
index 0000000..5f670ac
--- /dev/null
+++ b/rpmlint-etc.config
@@ -0,0 +1,2 @@
+# Add local system wide rpmlint configuration here or in other *config files
+# in this directory.
diff --git a/rpmlint.config b/rpmlint.config
new file mode 100644
index 0000000..620c067
--- /dev/null
+++ b/rpmlint.config
@@ -0,0 +1,387 @@
+# -*- python -*-
+
+# System wide rpmlint default configuration.  Do not modify, override/add
+# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
+
+import os.path
+import re
+import sys
+
+from Config import *
+import Pkg
+
+
+setOption("MaxLineLength", 80)
+setOption("ReleaseExtension", '\.(fc|rhe?l|el)\d+(?=\.|$)')
+setOption("UseBzip2", False)
+setOption("UseDefaultRunlevels", False)
+setOption("UseEpoch", False)
+setOption("UseUTF8", True)
+setOption("UseVersionInChangeLog", True)
+setOption("ValidSrcPerms", (0664, 0644, ))
+
+setOption("ValidShells", (
+    "<lua>",
+    "/bin/sh",
+    "/bin/bash",
+    "/sbin/ldconfig",
+    "/usr/bin/perl",
+    "/usr/bin/python",
+))
+
+setOption("DanglingSymlinkExceptions", (
+    ['consolehelper$', 'usermode'],
+    ['consolehelper-gtk$', 'usermode-gtk'],
+))
+
+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 "2.17, 31 July 2013" of that page.
+    'AAL',
+    'Abstyles',
+    'Adobe',
+    'ADSL',
+    'AFL',
+    'Afmparse',
+    'AGPLv1',
+    'AGPLv3',
+    'AGPLv3+',
+    'AGPLv3 with exceptions',
+    'AMDPLPA',
+    'AML',
+    'AMPAS BSD',
+    'APAFML',
+    'APSL 2.0',
+    'APSL 2.0+',
+    'ARL',
+    'Artistic 2.0',
+    'Artistic clarified',
+    'ASL 1.0',
+    'ASL 1.0+',
+    'ASL 1.1',
+    'ASL 1.1+',
+    'ASL 2.0',
+    'ASL 2.0+',
+    'Bahyph',
+    'Barr',
+    'Beerware',
+    'BeOpen',
+    'Bibtex',
+    'BitTorrent',
+    'Boost',
+    'Borceux',
+    'BSD',
+    'BSD Protection',
+    'BSD with advertising',
+    'BSD with attribution',
+    'CATOSL',
+    'CC0',
+    'CeCILL',
+    'CeCILL-B',
+    'CeCILL-C',
+    'CDDL',
+    'CNRI',
+    'Condor',
+    'Copyright only',
+    'CPAL',
+    'CPL',
+    'Crossword',
+    'Crystal Stacker',
+    'Cube',
+    'diffmark',
+    'DMIT',
+    'DOC',
+    'Dotseqn',
+    'DSDP',
+    'dvipdfm',
+    'ECL 1.0',
+    'ECL 2.0',
+    'eCos',
+    'EFL 2.0',
+    'EFL 2.0+',
+    'eGenix',
+    'Entessa',
+    'EPL',
+    'ERPL',
+    'EU Datagrid',
+    'EUPL 1.1',
+    'Eurosym',
+    'Fair',
+    'FSFUL',
+    'FSFULLR',
+    'FTL',
+    'Giftware',
+    'GL2PS',
+    'Glide',
+    'Glulxe',
+    'gnuplot',
+    'GPL+',
+    'GPL+ or Artistic',
+    'GPL+ with exceptions',
+    'GPLv1',
+    'GPLv2 or Artistic',
+    'GPLv2+ or Artistic',
+    'GPLv2',
+    'GPLv2 with exceptions',
+    'GPLv2+',
+    'GPLv2+ with exceptions',
+    'GPLv3',
+    'GPLv3 with exceptions',
+    'GPLv3+',
+    'GPLv3+ with exceptions',
+    'HaskellReport',
+    'IBM',
+    'IJG',
+    'ImageMagick',
+    'iMatix',
+    'Imlib2',
+    'Intel ACPI',
+    'Interbase',
+    'ISC',
+    'Jabber',
+    'JasPer',
+    'JPython',
+    'Julius',
+    'Knuth',
+    'Latex2e',
+    'LBNL BSD',
+    'Leptonica',
+    'LGPLv2',
+    'LGPLv2 with exceptions',
+    'LGPLv2+',
+    'LGPLv2+ or Artistic',
+    'LGPLv2+ with exceptions',
+    'LGPLv3',
+    'LGPLv3 with exceptions',
+    'LGPLv3+',
+    'LGPLv3+ with exceptions',
+    'Lhcyr',
+    'libtiff',
+    'LLGPL',
+    'Logica',
+    'LOSLA',
+    'LPL',
+    'LPPL',
+    'MakeIndex',
+    'mecab-ipadic',
+    'midnight',
+    'MirOS',
+    'MIT',
+    'MITNFA',
+    'MIT with advertising',
+    'mod_macro',
+    'Motosoto',
+    'MPLv1.0',
+    'MPLv1.0+',
+    'MPLv1.1',
+    'MPLv1.1+',
+    'MPLv2.0',
+    'MS-PL',
+    'MS-RL',
+    'MTLL',
+    'Mup',
+    'Naumen',
+    'NCSA',
+    'NetCDF',
+    'Netscape',
+    'Newmat',
+    'Newsletr',
+    'NGPL',
+    'NLPL',
+    'Nokia',
+    'NOSL',
+    'Noweb',
+    'OML',
+    'OpenLDAP',
+    'OpenPBS',
+    'OpenSSL',
+    'OReilly',
+    'OSL 1.0',
+    'OSL 1.0+',
+    'OSL 1.1',
+    'OSL 1.1+',
+    'OSL 2.0',
+    'OSL 2.0+',
+    'OSL 2.1',
+    'OSL 2.1+',
+    'OSL 3.0',
+    'OSL 3.0+',
+    'Par',
+    'Phorum',
+    'PHP',
+    'PlainTeX',
+    'Plexus',
+    'PostgreSQL',
+    'psfrag',
+    'psutils',
+    'Public Domain',
+    'Python',
+    'Qhull',
+    'QPL',
+    'Rdisc',
+    'RiceBSD',
+    'Romio',
+    'RPSL',
+    'Rsfs',
+    'Ruby',
+    'Saxpath',
+    'SCEA',
+    'SCRIP',
+    'Sendmail',
+    'Sleepycat',
+    'SISSL',
+    'SLIB',
+    'SNIA',
+    'softSurfer',
+    'SPL',
+    'STMPL',
+    'SWL',
+    'TCL',
+    'Teeworlds',
+    'Threeparttable',
+    'TMate',
+    'Tolua',
+    'TORQUEv1.1',
+    'TOSL',
+    'TPL',
+    'UCD',
+    'Vim',
+    'VNLSL',
+    'VOSTROM',
+    'VSL',
+    'W3C',
+    'Webmin',
+    'Wsuipa',
+    'WTFPL',
+    'wxWidgets',
+    'Xerox',
+    'xinetd',
+    'xpp',
+    'XSkat',
+    'YPLv1.1',
+    'Zed',
+    'Zend',
+    'zlib',
+    'zlib with acknowledgement',
+    'ZPLv1.0',
+    'ZPLv1.0+',
+    'ZPLv2.0',
+    'ZPLv2.0+',
+    'ZPLv2.1',
+    'ZPLv2.1+',
+    # Documentation licenses
+    'CDL',
+    'FBSDDL',
+    'GFDL',
+    'IEEE',
+    'LDPL',
+    'OFSFDL',
+    'Open Publication',
+    'Public Use',
+    'Verbatim',
+    # Content licenses
+    'CC0',
+    'CC-BY',
+    'CC-BY-ND',
+    'CC-BY-SA',
+    'DMTF',
+    'DSL',
+    'EFML',
+    'Free Art',
+    'GeoGratis',
+    'Green OpenMusic',
+    'OAL',
+    # Font licenses
+    'AMS',
+    'Arphic',
+    'Baekmuk',
+    'Bitstream Vera',
+    'Charter',
+    'DoubleStroke',
+    'Elvish',
+    'Hershey',
+    'IPA',
+    'Liberation',
+    'LPPL',
+    'Lucida',
+    'MgOpen',
+    'mplus',
+    'OFL',
+    'PTFL',
+    'STIX',
+    'Utopia',
+    'Wadalab',
+    'XANO',
+    # Others
+    'Redistributable, no modification permitted',
+    'Freely redistributable without restriction',
+))
+
+setOption('SystemLibPaths', ('/lib', '/lib64', '/usr/lib', '/usr/lib64'))
+
+# Get standard users and groups from the setup package's uidgid file
+setOption('StandardUsers', [])
+setOption('StandardGroups', [])
+setup_pkg = None
+try:
+    setup_pkg = Pkg.InstalledPkg('setup')
+except:
+    pass
+if setup_pkg:
+    uidgid_regex = re.compile('^\s*(\S+)\s+(-|\d+)\s+(-|\d+)\s')
+    for uidgid_file in [x for x in setup_pkg.files() if x.endswith('/uidgid')]:
+        if os.path.exists(uidgid_file):
+            fobj = open(uidgid_file)
+            try:
+                for line in fobj.read().strip().splitlines():
+                    res = uidgid_regex.search(line)
+                    if res:
+                        name = res.group(1)
+                        if res.group(2) != '-':
+                            getOption('StandardUsers').append(name)
+                        if res.group(3) != '-':
+                            getOption('StandardGroups').append(name)
+                    del res
+                del line
+            finally:
+                fobj.close()
+            del fobj
+    del uidgid_regex, uidgid_file
+del setup_pkg
+
+# Output filters
+addFilter("source-or-patch-not-compressed")
+addFilter("%mklibname")
+addFilter("no-dependency-on (perl|python)-base")
+addFilter("no-dependency-on locales-")
+addFilter("(python|perl5)-naming-policy-not-applied")
+addFilter("no-(packager-tag|signature)")
+addFilter("incoherent-version-in-name")
+addFilter("invalid-build-requires")
+addFilter("ghost-files-without-postin")
+addFilter("postin-without-ghost-file-creation")
+addFilter("no-major-in-name")
+addFilter("no-provides")
+addFilter("executable-in-library-package")
+addFilter("non-versioned-file-in-library-package")
+addFilter("requires-on-release")
+addFilter("jar-not-indexed")
+addFilter("invalid-(lc-messages|locale-man)-dir")
+addFilter("outside-libdir-files")
+addFilter("-debuginfo.* no-documentation")
+addFilter("-debuginfo.* /usr/lib/debug/")
+addFilter("non-standard-dir-in-usr libexec")
+addFilter("^gpg-pubkey:")
+addFilter(" doc-file-dependency .* /bin/sh$")
+addFilter("hardcoded-library-path .*/lib/udev(/|$)")
+addFilter("not-standard-release-extension")
+addFilter("explicit-lib-dependency (liberation-fonts|libertas-.*-firmware)")
+addFilter("filename-too-long-for-joliet")
+addFilter("symlink-should-be-")
+addFilter("dangling-\S*symlink /usr/share/doc/HTML/\S+/common .+/common$")
+addFilter("hidden-file-or-dir .*/man5/\.k5login\.5[^/]+$")
+# TODO: more whitelisted executables, https://bugzilla.redhat.com/496737
+addFilter("krb5-workstation.+ (setuid-binary|non-standard-executable-perm) /usr/kerberos/bin/ksu (root )?04755")
+addFilter("blender.+ (wrong-script-interpreter|non-executable-script) .+/blender/.+\.py.*BPY.*")
+
diff --git a/rpmlint.spec b/rpmlint.spec
new file mode 100644
index 0000000..eabb63c
--- /dev/null
+++ b/rpmlint.spec
@@ -0,0 +1,169 @@
+Name:           rpmlint
+Version:        0.94
+Release:        3%{?dist}
+Summary:        Tool for checking common errors in RPM packages
+
+Group:          Development/Tools
+License:        GPLv2
+URL:            http://rpmlint.zarb.org/
+Source0:        http://rpmlint.zarb.org/download/%{name}-%{version}.tar.bz2
+Source1:        %{name}.config
+Source2:        %{name}-CHANGES.package.old
+Source3:        %{name}-etc.config
+# in RHEL <=5 some RPMTAG_* constants are PyCObjects and not ints, and will never match.
+# in turn this leads to https://bugzilla.redhat.com/show_bug.cgi?id=677479
+Patch0:		%{name}-0.94-PyCObjects.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python >= 2.4
+BuildRequires:  rpm-python >= 4.4
+BuildRequires:  sed >= 3.95
+Requires:       rpm-python >= 4.4
+Requires:       python >= 2.4
+%if "0%{?dist}" != "0.el5"
+# python-magic and python-enchant are actually optional dependencies, but
+# they bring quite desirable features.  They're not available in RHEL/EPEL 5
+# as of 2011-02-15 though.
+Requires:       python-magic
+Requires:       python-enchant
+%endif
+Requires:       cpio
+Requires:       binutils
+Requires:       desktop-file-utils
+Requires:       gzip
+Requires:       bzip2
+Requires:       xz
+
+%description
+rpmlint is a tool for checking common errors in RPM packages.  Binary
+and source packages as well as spec files can be checked.
+
+
+%prep
+%setup -q
+%patch0 -p1
+sed -i -e /MenuCheck/d Config.py
+cp -p config config.example
+install -pm 644 %{SOURCE2} CHANGES.package.old
+install -pm 644 %{SOURCE3} config
+
+
+%build
+make COMPILE_PYC=1
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+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}
+install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/rpmlint/config
+
+
+%check
+make check
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,0755)
+%doc AUTHORS COPYING ChangeLog CHANGES.package.old README config.example
+%config(noreplace) %{_sysconfdir}/rpmlint/
+%{_sysconfdir}/bash_completion.d/
+%{_bindir}/rpmdiff
+%{_bindir}/rpmlint
+%{_datadir}/rpmlint/
+%exclude %{_datadir}/rpmlint/rpmlint.py[co]
+%{_mandir}/man1/rpmlint.1*
+
+
+%changelog
+* Wed Oct  9 2013 Tom Callaway <spot at fedoraproject.org> - 0.94-3
+- update license list
+
+* Tue Feb 15 2011 manuel "lonely wolf" wolfshant <wolfy at fedoraproject.org> - 0.94-2
+- fix Fedora license list
+
+* Tue Feb 15 2011 manuel "lonely wolf" wolfshant <wolfy at fedoraproject.org> - 0.94-1
+- Update to 0.94, based on the package from RHEL-6
+- fixes rhbz#677479 ( patch idea from Ville Skyttä )
+- includes the following changes compared to the previous version:
+-- fixes #531102,#555284,#528535, and #531102
+-- Sync Fedora license list with Wiki revision 1.88
+-- Apply upstream patch to fix spec file check with rpm >= 4.8.0.
+-- 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.
+-- Omit python-enchant and python-magic dependencies when built on EL.
+-- Python byte compile patch applied/superseded upstream.
+-- Add <lua> to list of valid scriptlet shells.
+
+* Thu Apr 22 2010 manuel "lonely wolf" wolfshant <wolfy at fedoraproject.org> - 0.91-1
+- Update to 0.91, based on the package from RHEL-6beta and current F-12
+- fixes #513811, #515185, #516492, #519694, and #521630.
+- Add dependencies on gzip, bzip2, and xz.
+- Sync Fedora license list with Wiki revision 1.71.
+- Move pre-2008 %%changelog entries to CHANGES.package.old.
+- disable make check because it fails in koji; it should be reenabled for local builds
+  or on the next release bump
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.90-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Mon Jun 29 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.90-1
+- 0.90; fixes #508683.
+
+* Sun Jun 21 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.89-1
+- Update to 0.89; fixes #461610, #496735, #496737 (partially), #498107,
+  #491188, and #506957.
+- Sync Fedora license list with Wiki revision 1.44.
+- Parse list of standard users and groups from the setup package's uidgid file.
+
+* Thu Mar 19 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.87-1
+- 0.87; fixes #480664, #483196, #483199, #486748, #488146, #488930, #489118.
+- Sync Fedora license list with Wiki revision 1.38.
+- Configs patch included upstream.
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.85-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Jan 20 2009 Ville Skyttä <ville.skytta at iki.fi>
+- Sync Fedora license list with Wiki revision 1.34.
+- Filter out filename-too-long-for-joliet and symlink-should-be-* warnings in
+  default config.
+
+* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.85-3
+- Rebuild for Python 2.6
+
+* 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).
+- Sync Fedora license list with Wiki revision 1.19.
+- Dist regex patch applied/superseded upstream.
+
+* Fri Sep 12 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.84-3
+- Sync Fedora license list with Wiki revision 1.09
+
+* Sat Jul 26 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.84-2
+- 0.84, fixes #355861, #456304.
+- Sync Fedora license list with Wiki revision "16:08, 18 July 2008".
+- Rediff patches.
+
+* Tue May 27 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.83-1
+- 0.83, fixes #237204, #428096, #430206, #433783, #434694, #444441.
+- Fedora licensing patch applied upstream.
+- Move pre-2007 changelog entries to CHANGES.package.old.
+- Sync Fedora license list with Revision 0.88.
+
+* Tue May 20 2008 Todd Zullinger <tmz at pobox.com> 
+- Sync Fedora license list with Revision 0.83 (Wiki rev 131).
+
+* Mon Mar  3 2008 Ville Skyttä <ville.skytta at iki.fi> - 0.82-3
+- Sync Fedora license list with Revision 0.69 (Wiki rev 110) (#434690).
diff --git a/sources b/sources
new file mode 100644
index 0000000..1665320
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4e3d9a668732761420fc3d865fce835c  rpmlint-0.94.tar.bz2


More information about the scm-commits mailing list