| |
@@ -54,7 +54,6 @@
|
| |
group = 'Generic'
|
| |
|
| |
def register_flags(self):
|
| |
- epel5 = self.Flag('EPEL5', 'Review package for EPEL5', __file__)
|
| |
epel6 = self.Flag('EPEL6', 'Review package for EPEL6', __file__)
|
| |
epel7 = self.Flag('EPEL7', 'Review package for EPEL7', __file__)
|
| |
disttag = self.Flag('DISTTAG',
|
| |
@@ -230,16 +229,9 @@
|
| |
self.log.debug('regex: %s', regex)
|
| |
self.log.debug('install_sec: %s', install_sec)
|
| |
has_clean = install_sec and re.search(regex, install_sec)
|
| |
- if self.flags['EPEL5']:
|
| |
- self.text = 'EPEL5: Package does run rm -rf %{buildroot}' \
|
| |
- ' (or $RPM_BUILD_ROOT) at the beginning of %install.'
|
| |
- if has_clean and self.flags['EPEL5']:
|
| |
- self.set_passed(self.PASS)
|
| |
- elif has_clean and not self.flags['EPEL5']:
|
| |
+ if has_clean:
|
| |
self.set_passed(self.PENDING,
|
| |
'rm -rf %{buildroot} present but not required')
|
| |
- elif not has_clean and self.flags['EPEL5']:
|
| |
- self.set_passed(self.FAIL)
|
| |
else:
|
| |
self.set_passed(self.PASS)
|
| |
|
| |
@@ -702,7 +694,7 @@
|
| |
GenericCheckBase.__init__(self, base)
|
| |
self.url = 'https://docs.fedoraproject.org/en-US' \
|
| |
'/packaging-guidelines/LicensingGuidelines/#_license_text'
|
| |
- if not (self.flags['EPEL5'] or self.flags['EPEL6']):
|
| |
+ if not self.flags['EPEL6']:
|
| |
self._license_flag = 'L'
|
| |
self._license_macro = '%license'
|
| |
else:
|
| |
@@ -719,7 +711,7 @@
|
| |
|
| |
def run(self):
|
| |
""" Check if there is a license file and if it is present in the
|
| |
- %license section (%doc for EPEL5 and EPEL6).
|
| |
+ %license section (%doc for EPEL6).
|
| |
"""
|
| |
# pylint: disable=invalid-name
|
| |
|
| |
@@ -1178,33 +1170,6 @@
|
| |
self.set_passed(self.PASS)
|
| |
|
| |
|
| |
- class CheckReqPkgConfig(GenericCheckBase):
|
| |
- '''
|
| |
- rpm in EPEL5 and below does not automatically create dependencies
|
| |
- for pkgconfig files. Packages containing pkgconfig(.pc) files
|
| |
- must Requires: pkgconfig (for directory ownership and usability).
|
| |
- '''
|
| |
- def __init__(self, base):
|
| |
- GenericCheckBase.__init__(self, base)
|
| |
- self.url = 'https://fedoraproject.org/wiki/' \
|
| |
- 'EPEL/GuidelinesAndPolicies#EL5'
|
| |
- self.text = 'EPEL5: Package requires pkgconfig, if .pc files' \
|
| |
- ' are present.'
|
| |
- self.automatic = True
|
| |
- self.type = 'MUST'
|
| |
-
|
| |
- def run(self):
|
| |
- if not self.rpms.find('*.pc') or not self.flags['EPEL5']:
|
| |
- self.set_passed(self.NA)
|
| |
- return
|
| |
- result = self.FAIL
|
| |
- for line in self.spec.get_requires():
|
| |
- if 'pkgconfig' in line:
|
| |
- result = self.PASS
|
| |
- break
|
| |
- self.set_passed(result)
|
| |
-
|
| |
-
|
| |
class CheckRequires(GenericCheckBase):
|
| |
'''
|
| |
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_explicit_requires
|
| |
@@ -1568,7 +1533,7 @@
|
| |
if self.rpms.find('/usr/share/icons/*', pkg):
|
| |
using.append(pkg)
|
| |
rpm_pkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('gtk-update-icon-cache',
|
| |
[rpm_pkg.postun, rpm_pkg.posttrans]):
|
| |
@@ -1581,7 +1546,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = "icons in " + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = ''
|
| |
@@ -1633,7 +1598,7 @@
|
| |
if dt_files:
|
| |
using.append(pkg)
|
| |
rpm_pkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('update-desktop-database',
|
| |
[rpm_pkg.post, rpm_pkg.postun]):
|
| |
@@ -1646,7 +1611,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = "desktop file(s) with MimeType entry in " + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = 'https://fedoraproject.org/w/index.php?title=' \
|
| |
@@ -1677,7 +1642,7 @@
|
| |
if self.rpms.find(gio_pattern, pkg):
|
| |
using.append(pkg)
|
| |
rpmpkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('gio-querymodules',
|
| |
[rpmpkg.post, rpmpkg.postun]):
|
| |
@@ -1690,7 +1655,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = "gio module file(s) in " + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = 'https://fedoraproject.org/w/index.php?title=' \
|
| |
@@ -1721,7 +1686,7 @@
|
| |
if self.rpms.find(pattern, pkg):
|
| |
using.append(pkg)
|
| |
rpmpkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('gtk-query-immodules',
|
| |
[rpmpkg.postun, rpmpkg.posttrans]):
|
| |
@@ -1735,7 +1700,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = "Gtk module file(s) in " + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = 'https://fedoraproject.org/w/index.php?title=' \
|
| |
@@ -1765,7 +1730,7 @@
|
| |
if self.rpms.find('*.gschema.xml', pkg):
|
| |
using.append(pkg)
|
| |
rpm_pkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('glib-compile-schemas',
|
| |
[rpm_pkg.postun, rpm_pkg.posttrans]):
|
| |
@@ -1779,7 +1744,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = 'gschema file(s) in ' + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = 'https://fedoraproject.org/w/index.php?title=' \
|
| |
@@ -1868,7 +1833,7 @@
|
| |
if self.rpms.find(pattern, pkg):
|
| |
using.append(pkg)
|
| |
rpmpkg = self.rpms.get(pkg)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] \
|
| |
+ if self.flags['EPEL6'] \
|
| |
or self.flags['EPEL7']:
|
| |
if not in_list('gdk-pixbuf-query-loaders',
|
| |
[rpmpkg.postun, rpmpkg.post]):
|
| |
@@ -1882,7 +1847,7 @@
|
| |
self.set_passed(self.NA)
|
| |
return
|
| |
text = "gdk-pixbux module file(s) in " + ', '.join(using)
|
| |
- if self.flags['EPEL5'] or self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
+ if self.flags['EPEL6'] or self.flags['EPEL7']:
|
| |
self.set_passed(self.FAIL if failed else self.PENDING, text)
|
| |
else:
|
| |
self.url = 'https://fedoraproject.org/w/index.php?title=' \
|
| |
RHEL5 has been EOLed year ago. Time to move on.