258 lines
5.4 KiB
Python
258 lines
5.4 KiB
Python
# -*- python -*-
|
|
|
|
# System wide rpmlint default configuration. Do not modify, override/add
|
|
# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
|
|
|
|
from Config import *
|
|
|
|
setOption("ReleaseExtension", '\.(fc|rhe?l|el)\d+(?=\.|$)')
|
|
setOption("UseVersionInChangeLog", 1)
|
|
setOption("UseBzip2", 0)
|
|
setOption("UseDefaultRunlevels", 0)
|
|
setOption("UseEpoch", 0)
|
|
setOption("UseUTF8", 1)
|
|
setOption("ValidSrcPerms", (0664, 0644, ))
|
|
setOption("ValidShells", (
|
|
"/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 "1.19, 23 Oct 2008" of that page.
|
|
'AAL',
|
|
'Adobe',
|
|
'ADSL',
|
|
'AFL',
|
|
'AGPLv1',
|
|
'AGPLv3',
|
|
'AMPAS BSD',
|
|
'ARL',
|
|
'ASL 1.0',
|
|
'ASL 1.0+',
|
|
'ASL 1.1',
|
|
'ASL 1.1+',
|
|
'ASL 2.0',
|
|
'ASL 2.0+',
|
|
'APSL 2.0',
|
|
'APSL 2.0+',
|
|
'Artistic 2.0',
|
|
'Artistic clarified',
|
|
'BitTorrent',
|
|
'Boost',
|
|
'BSD',
|
|
'BSD with advertising',
|
|
'CATOSL',
|
|
'CeCILL',
|
|
'CeCILL-B',
|
|
'CeCILL-C',
|
|
'CDDL',
|
|
'CNRI',
|
|
'CPAL',
|
|
'CPL',
|
|
'Condor',
|
|
'Copyright only',
|
|
'Crystal Stacker',
|
|
'DOC',
|
|
'ECL 1.0',
|
|
'ECL 2.0',
|
|
'eCos',
|
|
'EFL 2.0',
|
|
'EFL 2.0+',
|
|
'Entessa',
|
|
'EPL',
|
|
'ERPL',
|
|
'EU Datagrid',
|
|
'Fair',
|
|
'FTL',
|
|
'Giftware',
|
|
'GL2PS',
|
|
'Glide',
|
|
'gnuplot',
|
|
'GPL+',
|
|
'GPL+ or Artistic',
|
|
'GPLv1',
|
|
'GPLv2 or Artistic',
|
|
'GPLv2+ or Artistic',
|
|
'GPLv2',
|
|
'GPLv2 with exceptions',
|
|
'GPLv2+',
|
|
'GPLv2+ with exceptions',
|
|
'GPLv3',
|
|
'GPLv3 with exceptions',
|
|
'GPLv3+',
|
|
'GPLv3+ with exceptions',
|
|
'IBM',
|
|
'IJG',
|
|
'ImageMagick',
|
|
'iMatix',
|
|
'Imlib2',
|
|
'Intel ACPI',
|
|
'Interbase',
|
|
'ISC',
|
|
'Jabber',
|
|
'JasPer',
|
|
'LBNL BSD',
|
|
'LGPLv2',
|
|
'LGPLv2 with exceptions',
|
|
'LGPLv2+',
|
|
'LGPLv2+ or Artistic',
|
|
'LGPLv2+ with exceptions',
|
|
'LGPLv3',
|
|
'LGPLv3 with exceptions',
|
|
'LGPLv3+',
|
|
'LGPLv3+ with exceptions',
|
|
'libtiff',
|
|
'LLGPL',
|
|
'LPL',
|
|
'LPPL',
|
|
'mecab-ipadic',
|
|
'MIT',
|
|
'MIT with advertising',
|
|
'Motosoto',
|
|
'MPLv1.0',
|
|
'MPLv1.0+',
|
|
'MPLv1.1',
|
|
'MPLv1.1+',
|
|
'NCSA',
|
|
'NetCDF',
|
|
'NGPL',
|
|
'NOSL',
|
|
'Naumen',
|
|
'Netscape',
|
|
'Nokia',
|
|
'OpenLDAP',
|
|
'OpenPBS',
|
|
'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+',
|
|
'OpenSSL',
|
|
'OReilly',
|
|
'Phorum',
|
|
'PHP',
|
|
'psutils',
|
|
'Public Domain',
|
|
'Python',
|
|
'Qhull',
|
|
'QPL',
|
|
'RiceBSD',
|
|
'RPSL',
|
|
'Ruby',
|
|
'SCRIP',
|
|
'Sendmail',
|
|
'Sleepycat',
|
|
'SISSL',
|
|
'SLIB',
|
|
'SPL',
|
|
'TCL',
|
|
'Teeworlds',
|
|
'TMate',
|
|
'UCD',
|
|
'VOSTROM',
|
|
'Vim',
|
|
'VNLSL',
|
|
'VSL',
|
|
'W3C',
|
|
'WTFPL',
|
|
'wxWidgets',
|
|
'Xerox',
|
|
'xinetd',
|
|
'YPLv1.1',
|
|
'Zend',
|
|
'ZPLv1.0',
|
|
'ZPLv1.0+',
|
|
'ZPLv2.0',
|
|
'ZPLv2.0+',
|
|
'ZPLv2.1',
|
|
'ZPLv2.1+',
|
|
'zlib',
|
|
'zlib with acknowledgement',
|
|
# Documentation licenses
|
|
'CDL',
|
|
'FBSDDL',
|
|
'GFDL',
|
|
'IEEE',
|
|
'OFSFDL',
|
|
'Open Publication',
|
|
'Public Use',
|
|
# Content licenses
|
|
'CC-BY',
|
|
'CC-BY-SA',
|
|
'CC-BY-ND',
|
|
'DSL',
|
|
'EFML',
|
|
'Free Art',
|
|
'GeoGratis',
|
|
'OAL',
|
|
# Font licenses
|
|
'Arphic',
|
|
'Baekmuk',
|
|
'Bitstream Vera',
|
|
'Hershey',
|
|
'Liberation',
|
|
'Lucida',
|
|
'mplus',
|
|
'OFL',
|
|
'STIX',
|
|
'Utopia',
|
|
'XANO',
|
|
# Others
|
|
'Redistributable, no modification permitted',
|
|
'Freely redistributable without restriction',
|
|
))
|
|
|
|
# Standard users & groups from the setup package:
|
|
setOption("StandardUsers",
|
|
("root", "bin", "daemon", "adm", "lp", "sync", "shutdown", "halt",
|
|
"mail", "news", "uucp", "operator", "games", "gopher", "ftp",
|
|
"nobody"))
|
|
setOption("StandardGroups",
|
|
("root", "bin", "daemon", "sys", "adm", "tty", "disk", "lp", "mem",
|
|
"kmem", "wheel", "mail", "news", "uucp", "man", "games", "gopher",
|
|
"dip", "ftp", "lock", "nobody", "users"))
|
|
|
|
# Output filters
|
|
addFilter("source-or-patch-not-[bg]zipped")
|
|
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)")
|