--- /dev/null
+--- rpmlint-1.4/Makefile~ 2011-12-04 17:23:10.000000000 +0100
++++ rpmlint-1.4/Makefile 2012-09-26 10:42:17.091754067 +0200
+@@ -44,15 +44,8 @@
+ cp -p *.py *.pyo $(DESTDIR)$(LIBDIR)
+ cp -p rpmlint rpmdiff $(DESTDIR)$(BINDIR)
+ cp -p config $(DESTDIR)$(ETCDIR)/$(PACKAGE)
+- compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \
+- if [ "x$$compdir" = "x" ] ; then \
+- mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d ; \
+- cp -p rpmlint.bash-completion $(DESTDIR)$(ETCDIR)/bash_completion.d/rpmlint ; \
+- else \
+- mkdir -p $(DESTDIR)$$compdir ; \
+- cp -p rpmlint.bash-completion $(DESTDIR)$$compdir/rpmlint ; \
+- ln -s rpmlint $(DESTDIR)$$compdir/rpmdiff ; \
+- fi
++ mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d ; \
++ cp -p rpmlint.bash-completion $(DESTDIR)$(ETCDIR)/bash_completion.d/rpmlint ; \
+ cp -p rpmlint.1 $(DESTDIR)$(MANDIR)/man1/rpmlint.1
+
+ verify:
+++ /dev/null
---- rpmlint-1.4/Makefile~ 2011-12-04 17:23:10.000000000 +0100
-+++ rpmlint-1.4/Makefile 2012-09-25 23:00:35.363182328 +0200
-@@ -46,8 +46,8 @@
- cp -p config $(DESTDIR)$(ETCDIR)/$(PACKAGE)
- compdir=`pkg-config --variable=completionsdir bash-completion 2>/dev/null` ; \
- if [ "x$$compdir" = "x" ] ; then \
-- mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d ; \
-- cp -p rpmlint.bash-completion $(DESTDIR)$(ETCDIR)/bash_completion.d/rpmlint ; \
-+ mkdir -p $(DESTDIR)/usr/share/bash-completion/completions ; \
-+ cp -p rpmlint.bash-completion $(DESTDIR)/usr/share/bash-completion/completions/rpmlint ; \
- else \
- mkdir -p $(DESTDIR)$$compdir ; \
- cp -p rpmlint.bash-completion $(DESTDIR)$$compdir/rpmlint ; \
Summary: Tool for checking common errors in RPM packages
Name: rpmlint
Version: 1.4
-Release: 32
+Release: 4
License: GPL v2
Group: Development/Building
Source0: http://rpmlint.zarb.org/download/%{name}-%{version}.tar.xz
Patch2: %{name}-licenses.patch
Patch3: postshell.patch
Patch4: rpm5.patch
-Patch5: bash-completion2.patch
+Patch5: bash-completion.patch
URL: http://rpmlint.zarb.org/
BuildRequires: python >= 1.5.2
BuildRequires: python-modules
%files -n bash-completion-%{name}
%defattr(644,root,root,755)
-%{_datadir}/bash-completion/completions/rpmlint
+/etc/bash_completion.d/rpmlint