2010-12-06 17:32:05 +00:00
|
|
|
# -*- 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
|
|
|
|
|
2010-12-07 20:19:40 +00:00
|
|
|
# Inherit the base config and build from there.
|
|
|
|
exec(open("/usr/share/rpmlint/config","rb").read())
|
2010-12-06 17:32:05 +00:00
|
|
|
|
|
|
|
# Fedora 12 and newer no longer need a buildroot defined, to have the buildroot cleaned at the beginning
|
|
|
|
# of %install, and do not need to define a %clean section unless the default is invalid.
|
|
|
|
# However, EL-4 and EL-5 still need these checks.
|
|
|
|
removeFilter("no-cleaning-of-buildroot")
|
|
|
|
removeFilter("no-buildroot-tag")
|
|
|
|
removeFilter("no-%clean-section")
|
|
|
|
|
2011-04-25 01:58:38 +00:00
|
|
|
# Only EL4 needs the files-attr-not-set check, because rpm 4.4 and newer no longer need a %defattr line
|
|
|
|
# (it automatically provides one).
|
|
|
|
removeFilter("files-attr-not-set")
|
|
|
|
|
2014-02-10 21:04:28 +00:00
|
|
|
# Fixed in rpm >= 4.7.1
|
|
|
|
removeFilter("broken-syntax-in-scriptlet-requires")
|