---- rpmlint-1.6/Makefile~ 2014-07-19 16:05:09.000000000 +0300
-+++ rpmlint-1.6/Makefile 2014-09-18 15:36:35.380436188 +0300
+--- rpmlint-1.7/Makefile~ 2015-07-15 15:10:27.000000000 +0300
++++ rpmlint-1.7/Makefile 2015-07-15 15:12:32.665044829 +0300
@@ -10,6 +10,7 @@
LIBDIR=/usr/share/rpmlint
ETCDIR=/etc
FILES = rpmlint *.py INSTALL README README.devel COPYING tools/*.py \
Makefile config rpmdiff rpmdiff.1 rpmlint.bash-completion rpmlint.1 \
-@@ -41,14 +42,13 @@
- cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
- cp -p rpmlint rpmdiff $(DESTDIR)$(BINDIR)
+@@ -48,14 +48,13 @@
+ chmod +x $(DESTDIR)$(BINDIR)/$$file ; \
+ done
cp -p config $(DESTDIR)$(ETCDIR)/$(PACKAGE)
- compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \
- if [ "x$$compdir" = "x" ] ; then \
else \
- mkdir -p $(DESTDIR)$$compdir ; \
- cp -p rpmlint.bash-completion $(DESTDIR)$$compdir/rpmlint ; \
-- ln -s rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
-+ mkdir -p $(DESTDIR)$(bash_compdir); \
+- ln -sf rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
++ mkdir -p $(DESTDIR)$(bash_compdir) ; \
+ cp -p rpmlint.bash-completion $(DESTDIR)$(bash_compdir)/rpmlint ; \
-+ ln -s rpmlint $(DESTDIR)$(bash_compdir)/rpmdiff ; \
++ ln -sf rpmlint $(DESTDIR)$(bash_compdir)/rpmdiff ; \
fi
cp -p rpmdiff.1 rpmlint.1 $(DESTDIR)$(MANDIR)/man1
---- rpmlint-1.0/Pkg.py~ 2010-06-05 22:55:53.000000000 +0300
-+++ rpmlint-1.0/Pkg.py 2011-01-09 18:37:55.913942986 +0200
-@@ -176,7 +176,7 @@
+--- 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"""
groups = []
if not filename:
- try:
-- p = InstalledPkg('rpm')
-+ p = InstalledPkg('rpmlint')
- except:
- pass
- else:
+- 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]
Summary: Tool for checking common errors in RPM packages
Name: rpmlint
-Version: 1.6
+Version: 1.7
Release: 1
License: GPL v2
Group: Development/Building
Source0: http://downloads.sourceforge.net/rpmlint/%{name}-%{version}.tar.xz
-# Source0-md5: ad09ff960c7f3561af59f7886f3619ef
+# Source0-md5: 0b78c2fa4a98c6f660003a679ad6ea90
Source1: %{name}.config
Source3: %{name}-etc.config
Patch0: %{name}-groups.patch