salimma / rpms / rpmlint

Forked from rpms/rpmlint 4 years ago
Clone
269ccb0
# -*- python -*-
269ccb0
269ccb0
# System wide rpmlint default configuration.  Do not modify, override/add
269ccb0
# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
269ccb0
269ccb0
from Config import *
269ccb0
c7594a7
setOption("ReleaseExtension", '\.(fc|rhe?l|el)\d+(?=\.|$)')
269ccb0
setOption("UseVersionInChangeLog", 1)
269ccb0
setOption("UseBzip2", 0)
269ccb0
setOption("UseDefaultRunlevels", 0)
269ccb0
setOption("UseEpoch", 0)
269ccb0
setOption("UseUTF8", 1)
269ccb0
setOption("ValidSrcPerms", (0664, 0644, ))
269ccb0
setOption("ValidShells", (
269ccb0
    "/bin/sh",
269ccb0
    "/bin/bash",
269ccb0
    "/sbin/ldconfig",
269ccb0
    "/usr/bin/perl",
269ccb0
    "/usr/bin/python",
269ccb0
))
91f6f96
269ccb0
setOption("DanglingSymlinkExceptions", (
269ccb0
    ['consolehelper$', 'usermode'],
269ccb0
    ['consolehelper-gtk$', 'usermode-gtk'],
269ccb0
))
91f6f96
91f6f96
setOption("ValidLicenses", (
91f6f96
    # These are the short names for all of the Fedora approved licenses.
91f6f96
    # The master list is kept here: http://fedoraproject.org/wiki/Licensing
8159ef4
    # Last synced with revision "1.38, 27 Feb 2009" of that page.
dde4499
    'AAL',
ebc9da9
    'Adobe',
5bfc533
    'ADSL',
d892269
    'AFL',
040d00f
    'AGPLv1',
040d00f
    'AGPLv3',
040d00f
    'AMPAS BSD',
ebc9da9
    'ARL',
91f6f96
    'ASL 1.0',
91f6f96
    'ASL 1.0+',
91f6f96
    'ASL 1.1',
91f6f96
    'ASL 1.1+',
91f6f96
    'ASL 2.0',
91f6f96
    'ASL 2.0+',
91f6f96
    'APSL 2.0',
91f6f96
    'APSL 2.0+',
d892269
    'Artistic 2.0',
91f6f96
    'Artistic clarified',
d892269
    'BitTorrent',
91f6f96
    'Boost',
91f6f96
    'BSD',
d892269
    'BSD with advertising',
dde4499
    'CATOSL',
91f6f96
    'CeCILL',
94babe1
    'CeCILL-B',
94babe1
    'CeCILL-C',
91f6f96
    'CDDL',
94babe1
    'CNRI',
5bfc533
    'CPAL',
91f6f96
    'CPL',
91f6f96
    'Condor',
ed7d0cf
    'Copyright only',
d892269
    'Crystal Stacker',
5bfc533
    'DOC',
c5e4831
    'dvipdfm',
1f0d2b3
    'ECL 1.0',
1f0d2b3
    'ECL 2.0',
91f6f96
    'eCos',
91f6f96
    'EFL 2.0',
91f6f96
    'EFL 2.0+',
dde4499
    'Entessa',
1f0d2b3
    'EPL',
1f0d2b3
    'ERPL',
91f6f96
    'EU Datagrid',
c5e4831
    'Eurosym',
5bfc533
    'Fair',
856ccfa
    'FTL',
d892269
    'Giftware',
1f0d2b3
    'GL2PS',
d892269
    'Glide',
ebc9da9
    'gnuplot',
91f6f96
    'GPL+',
d892269
    'GPL+ or Artistic',
8159ef4
    'GPL+ with exceptions',
c741dda
    'GPLv1',
94babe1
    'GPLv2 or Artistic',
856ccfa
    'GPLv2+ or Artistic',
91f6f96
    'GPLv2',
d892269
    'GPLv2 with exceptions',
91f6f96
    'GPLv2+',
856ccfa
    'GPLv2+ with exceptions',
91f6f96
    'GPLv3',
856ccfa
    'GPLv3 with exceptions',
91f6f96
    'GPLv3+',
856ccfa
    'GPLv3+ with exceptions',
91f6f96
    'IBM',
d892269
    'IJG',
ebc9da9
    'ImageMagick',
91f6f96
    'iMatix',
856ccfa
    'Imlib2',
91f6f96
    'Intel ACPI',
91f6f96
    'Interbase',
d892269
    'ISC',
91f6f96
    'Jabber',
39bf2f4
    'JasPer',
9ceb862
    'LBNL BSD',
91f6f96
    'LGPLv2',
91f6f96
    'LGPLv2 with exceptions',
91f6f96
    'LGPLv2+',
94babe1
    'LGPLv2+ or Artistic',
9ceb862
    'LGPLv2+ with exceptions',
91f6f96
    'LGPLv3',
9ceb862
    'LGPLv3 with exceptions',
91f6f96
    'LGPLv3+',
9ceb862
    'LGPLv3+ with exceptions',
d892269
    'libtiff',
1f0d2b3
    'LLGPL',
91f6f96
    'LPL',
39bf2f4
    'LPPL',
91f6f96
    'mecab-ipadic',
91f6f96
    'MIT',
5bfc533
    'MIT with advertising',
1f0d2b3
    'Motosoto',
91f6f96
    'MPLv1.0',
91f6f96
    'MPLv1.0+',
91f6f96
    'MPLv1.1',
91f6f96
    'MPLv1.1+',
91f6f96
    'NCSA',
5bfc533
    'NetCDF',
91f6f96
    'NGPL',
91f6f96
    'NOSL',
5bfc533
    'Naumen',
91f6f96
    'Netscape',
91f6f96
    'Nokia',
c5e4831
    'Noweb',
91f6f96
    'OpenLDAP',
0eee475
    'OpenPBS',
856ccfa
    'OReilly',
91f6f96
    'OSL 1.0',
91f6f96
    'OSL 1.0+',
ebc9da9
    'OSL 1.1',
ebc9da9
    'OSL 1.1+',
d892269
    'OSL 2.0',
d892269
    'OSL 2.0+',
1f0d2b3
    'OSL 2.1',
1f0d2b3
    'OSL 2.1+',
d892269
    'OSL 3.0',
d892269
    'OSL 3.0+',
91f6f96
    'OpenSSL',
94babe1
    'OReilly',
91f6f96
    'Phorum',
91f6f96
    'PHP',
c5e4831
    'PlainTeX',
94babe1
    'psutils',
91f6f96
    'Public Domain',
91f6f96
    'Python',
c741dda
    'Qhull',
91f6f96
    'QPL',
c741dda
    'RiceBSD',
91f6f96
    'RPSL',
91f6f96
    'Ruby',
8159ef4
    'SCEA',
1f0d2b3
    'SCRIP',
5bfc533
    'Sendmail',
91f6f96
    'Sleepycat',
91f6f96
    'SISSL',
ebc9da9
    'SLIB',
8159ef4
    'SNIA',
91f6f96
    'SPL',
39bf2f4
    'TCL',
94babe1
    'Teeworlds',
94babe1
    'TMate',
c5e4831
    'TPL',
39bf2f4
    'UCD',
5bfc533
    'VOSTROM',
91f6f96
    'Vim',
91f6f96
    'VNLSL',
91f6f96
    'VSL',
91f6f96
    'W3C',
c5e4831
    'Webmin',
bbc0784
    'WTFPL',
5bfc533
    'wxWidgets',
5bfc533
    'Xerox',
91f6f96
    'xinetd',
1f0d2b3
    'YPLv1.1',
91f6f96
    'Zend',
91f6f96
    'ZPLv1.0',
91f6f96
    'ZPLv1.0+',
91f6f96
    'ZPLv2.0',
91f6f96
    'ZPLv2.0+',
ebc9da9
    'ZPLv2.1',
ebc9da9
    'ZPLv2.1+',
91f6f96
    'zlib',
5bfc533
    'zlib with acknowledgement',
91f6f96
    # Documentation licenses
91f6f96
    'CDL',
91f6f96
    'FBSDDL',
91f6f96
    'GFDL',
ebc9da9
    'IEEE',
ebc9da9
    'OFSFDL',
91f6f96
    'Open Publication',
c741dda
    'Public Use',
91f6f96
    # Content licenses
91f6f96
    'CC-BY',
91f6f96
    'CC-BY-SA',
5bfc533
    'CC-BY-ND',
c5e4831
    'DMTF',
91f6f96
    'DSL',
5bfc533
    'EFML',
91f6f96
    'Free Art',
94babe1
    'GeoGratis',
c5e4831
    'Green OpenMusic',
dde4499
    'OAL',
bbc0784
    # Font licenses
91f6f96
    'Arphic',
856ccfa
    'Baekmuk',
e81b603
    'Bitstream Vera',
94babe1
    'Hershey',
5bfc533
    'Liberation',
5bfc533
    'Lucida',
39bf2f4
    'mplus',
3d3857f
    'OFL',
040d00f
    'STIX',
39bf2f4
    'Utopia',
0eee475
    'XANO',
91f6f96
    # Others
91f6f96
    'Redistributable, no modification permitted',
91f6f96
    'Freely redistributable without restriction',
91f6f96
))
91f6f96
269ccb0
# Standard users & groups from the setup package:
269ccb0
setOption("StandardUsers",
269ccb0
          ("root", "bin", "daemon", "adm", "lp", "sync", "shutdown", "halt",
269ccb0
           "mail", "news", "uucp", "operator", "games", "gopher", "ftp",
269ccb0
           "nobody"))
269ccb0
setOption("StandardGroups",
269ccb0
          ("root", "bin", "daemon", "sys", "adm", "tty", "disk", "lp", "mem",
269ccb0
           "kmem", "wheel", "mail", "news", "uucp", "man", "games", "gopher",
269ccb0
           "dip", "ftp", "lock", "nobody", "users"))
269ccb0
269ccb0
# Output filters
269ccb0
addFilter("source-or-patch-not-[bg]zipped")
269ccb0
addFilter("%mklibname")
269ccb0
addFilter("no-dependency-on (perl|python)-base")
269ccb0
addFilter("no-dependency-on locales-")
269ccb0
addFilter("(python|perl5)-naming-policy-not-applied")
269ccb0
addFilter("no-(packager-tag|signature)")
269ccb0
addFilter("incoherent-version-in-name")
269ccb0
addFilter("invalid-build-requires")
269ccb0
addFilter("ghost-files-without-postin")
269ccb0
addFilter("postin-without-ghost-file-creation")
269ccb0
addFilter("no-major-in-name")
269ccb0
addFilter("no-provides")
269ccb0
addFilter("executable-in-library-package")
269ccb0
addFilter("non-versioned-file-in-library-package")
269ccb0
addFilter("requires-on-release")
269ccb0
addFilter("jar-not-indexed")
269ccb0
addFilter("invalid-(lc-messages|locale-man)-dir")
269ccb0
addFilter("outside-libdir-files")
0eee475
addFilter("-debuginfo.* no-documentation")
0eee475
addFilter("-debuginfo.* /usr/lib/debug/")
269ccb0
addFilter("non-standard-dir-in-usr libexec")
0eee475
addFilter("^gpg-pubkey:")
ac7c807
addFilter(" doc-file-dependency .* /bin/sh$")
91f6f96
addFilter("hardcoded-library-path .*/lib/udev(/|$)")
c7594a7
addFilter("not-standard-release-extension")
b22b6a1
addFilter("explicit-lib-dependency (liberation-fonts|libertas-.*-firmware)")
19e9607
addFilter("filename-too-long-for-joliet")
140570a
addFilter("symlink-should-be-")
4ef8d3b
addFilter("dangling-\S*symlink /usr/share/doc/HTML/\S+/common .+/common$")