---- rpmlint-1.0/rpmdiff~ 2009-11-03 21:21:48.000000000 +0200
-+++ rpmlint-1.0/rpmdiff 2011-01-09 19:35:20.929627311 +0200
-@@ -27,9 +27,7 @@
+--- rpmlint-rpmlint-1.9/rpmdiff~ 2016-06-29 20:07:39.000000000 +0300
++++ rpmlint-rpmlint-1.9/rpmdiff 2016-08-06 12:12:07.619967936 +0300
+@@ -24,11 +24,7 @@
+ import tempfile
import rpm
-
+-
-if os.path.isdir("/usr/share/rpmlint"):
+- import site
- site.addsitedir("/usr/share/rpmlint")
--import Pkg
+-import Pkg # noqa: E402
+from rpmlint.Pkg import Pkg
- class Rpmdiff:
+ class Rpmdiff(object):
---- rpmlint-1.7/Pkg.py~ 2015-07-08 16:38:24.000000000 +0300
-+++ rpmlint-1.7/Pkg.py 2015-07-15 15:10:07.954186622 +0300
-@@ -197,7 +197,7 @@
- the rpm package (if installed) if no filename is given"""
+Use GROUPS file from rpmlint (this project) package rather than rpm
+
+--- rpmlint-rpmlint-1.9/Pkg.py~ 2016-06-29 20:07:39.000000000 +0300
++++ rpmlint-rpmlint-1.9/Pkg.py 2016-08-06 12:10:45.102344608 +0300
+@@ -214,16 +214,16 @@
+ def get_default_valid_rpmgroups(filename=None):
+ """
+ Get default rpm groups from filename, or try to look them up from
+- the rpm package (if installed) if no filename is given.
++ the rpmlint package (if installed) if no filename is given.
+ """
groups = []
if not filename:
-- with InstalledPkg("rpm") as p:
-+ with InstalledPkg("rpmlint") as p:
- groupsfiles = [x for x in p.files() if x.endswith('/GROUPS')]
- if groupsfiles:
- filename = groupsfiles[0]
+ try:
+- with InstalledPkg("rpm") as p:
++ with InstalledPkg("rpmlint") as p:
+ groupsfiles = [x for x in p.files() if x.endswith('/GROUPS')]
+ if groupsfiles:
+ filename = groupsfiles[0]
+- except: # the rpm package might not be installed
++ except: # the rpmlint package might not be installed
+ pass
+ if filename and os.path.exists(filename):
+ with open(filename) as fobj:
Summary: Tool for checking common errors in RPM packages
Summary(pl.UTF-8): Narzędzie do sprawdzania pakietów RPM pod kątem częstych błędów
Name: rpmlint
-Version: 1.7
-Release: 2
+Version: 1.9
+Release: 1
License: GPL v2
Group: Development/Building
-Source0: http://downloads.sourceforge.net/rpmlint/%{name}-%{version}.tar.xz
-# Source0-md5: 0b78c2fa4a98c6f660003a679ad6ea90
+Source0: https://github.com/rpm-software-management/rpmlint/archive/%{name}-%{version}.tar.gz
+# Source0-md5: 810d7fd565d389fec305ff80af53ba40
Source1: %{name}.config
Source3: %{name}-etc.config
Patch0: %{name}-groups.patch
Patch4: rpm5.patch
Patch5: bash-completion.patch
Patch6: revert-9f71923e.patch
-URL: http://sourceforge.net/projects/rpmlint/
+URL: https://github.com/rpm-software-management/rpmlint
BuildRequires: python >= 1:2.6
BuildRequires: python-modules
%{?with_tests:BuildRequires: python-rpm >= 5.4.10-12}
BuildRequires: rpmbuild(macros) >= 1.673
# tests require rpmlint in installed packages database
%{?with_tests:BuildRequires: rpmlint}
-BuildRequires: tar >= 1:1.22
-BuildRequires: xz
Requires: /bin/bash
Requires: /lib/cpp
Requires: binutils
Bashowe uzupełnianie parametrów dla polecenia rpmlint.
%prep
-%setup -q
+%setup -q -n %{name}-rpmlint-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%files
%defattr(644,root,root,755)
-%doc ChangeLog README* config.example
+%doc README* config.example
%dir %{_sysconfdir}/rpmlint
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpmlint/config
%attr(755,root,root) %{_bindir}/rpmdiff