salimma / rpms / rpmlint

Forked from rpms/rpmlint 4 years ago
Clone
0ca00c9
# -*- python -*-
0ca00c9
0ca00c9
# System wide rpmlint default configuration.  Do not modify, override/add
0ca00c9
# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
0ca00c9
0ca00c9
import os.path
0ca00c9
import re
0ca00c9
import sys
0ca00c9
0ca00c9
from Config import *
0ca00c9
import Pkg
0ca00c9
75ffebe
# Inherit the base config and build from there.
75ffebe
exec(open("/usr/share/rpmlint/config","rb").read())
0ca00c9
0ca00c9
# Fedora 12 and newer no longer need a buildroot defined, to have the buildroot cleaned at the beginning
0ca00c9
# of %install, and do not need to define a %clean section unless the default is invalid.
0ca00c9
# However, EL-4 and EL-5 still need these checks.
0ca00c9
removeFilter("no-cleaning-of-buildroot")
0ca00c9
removeFilter("no-buildroot-tag")
0ca00c9
removeFilter("no-%clean-section")
0ca00c9
d6368ca
# Only EL4 needs the files-attr-not-set check, because rpm 4.4 and newer no longer need a %defattr line
d6368ca
# (it automatically provides one).
d6368ca
removeFilter("files-attr-not-set")
d6368ca