|
|
66f16c4 |
# -*- python -*-
|
|
|
66f16c4 |
|
|
|
66f16c4 |
# System wide rpmlint default configuration. Do not modify, override/add
|
|
|
66f16c4 |
# options in /etc/rpmlint/config and/or ~/.rpmlintrc as needed.
|
|
|
66f16c4 |
|
|
|
66f16c4 |
import os.path
|
|
|
66f16c4 |
import re
|
|
|
66f16c4 |
import sys
|
|
|
66f16c4 |
|
|
|
66f16c4 |
from Config import *
|
|
|
66f16c4 |
import Pkg
|
|
|
66f16c4 |
|
|
|
fe3c725 |
# Inherit the base config and build from there.
|
|
|
fe3c725 |
exec(open("/usr/share/rpmlint/config","rb").read())
|
|
|
66f16c4 |
|
|
|
66f16c4 |
# Fedora 12 and newer no longer need a buildroot defined, to have the buildroot cleaned at the beginning
|
|
|
66f16c4 |
# of %install, and do not need to define a %clean section unless the default is invalid.
|
|
|
66f16c4 |
# However, EL-4 and EL-5 still need these checks.
|
|
|
66f16c4 |
removeFilter("no-cleaning-of-buildroot")
|
|
|
66f16c4 |
removeFilter("no-buildroot-tag")
|
|
|
66f16c4 |
removeFilter("no-%clean-section")
|
|
|
66f16c4 |
|
|
|
6a047fd |
# Only EL4 needs the files-attr-not-set check, because rpm 4.4 and newer no longer need a %defattr line
|
|
|
6a047fd |
# (it automatically provides one).
|
|
|
6a047fd |
removeFilter("files-attr-not-set")
|
|
|
6a047fd |
|
|
|
139a2c4 |
# Fixed in rpm >= 4.7.1
|
|
|
139a2c4 |
removeFilter("broken-syntax-in-scriptlet-requires")
|