[packages/rpmlint] up to 1.6, tests are failing

glen glen at pld-linux.org
Thu Sep 18 17:51:18 CEST 2014


commit 545215d11f11557cded73f5ed11d2a2959049970
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 18 18:42:10 2014 +0300

    up to 1.6, tests are failing

 bash-completion.patch | 31 ++++++++++++++++++++-----------
 rpmlint.spec          | 18 +++++++++++-------
 2 files changed, 31 insertions(+), 18 deletions(-)
---
diff --git a/rpmlint.spec b/rpmlint.spec
index eee0129..2585c60 100644
--- a/rpmlint.spec
+++ b/rpmlint.spec
@@ -4,12 +4,12 @@
 
 Summary:	Tool for checking common errors in RPM packages
 Name:		rpmlint
-Version:	1.5
+Version:	1.6
 Release:	1
 License:	GPL v2
 Group:		Development/Building
 Source0:	http://downloads.sourceforge.net/rpmlint/%{name}-%{version}.tar.xz
-# Source0-md5:	d7e82d97211ba0128ef864c7eac2fab8
+# Source0-md5:	ad09ff960c7f3561af59f7886f3619ef
 Source1:	%{name}.config
 Source3:	%{name}-etc.config
 Patch0:		%{name}-groups.patch
@@ -18,11 +18,12 @@ Patch2:		%{name}-licenses.patch
 Patch3:		postshell.patch
 Patch4:		rpm5.patch
 Patch5:		bash-completion.patch
-URL:		http://rpmlint.zarb.org/
+URL:		http://sourceforge.net/projects/rpmlint/
 BuildRequires:	python >= 1.5.2
 BuildRequires:	python-modules
 BuildRequires:	python-rpm >= 5.4.10-12
 BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.673
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 Requires:	/bin/bash
@@ -55,7 +56,7 @@ występujących błędów. Można sprawdzać pakiety źródłowe i binarne.
 Summary:	bash-completion for rpmlint
 Group:		Applications/Shells
 Requires:	%{name} = %{version}-%{release}
-Requires:	bash-completion
+Requires:	bash-completion >= 2.0
 
 %description -n bash-completion-%{name}
 bash-completion for rpmlint.
@@ -86,6 +87,7 @@ touch __init__.py
 rpm --qf '%{_docdir}/%{N}-%{V}/groups.gz' -q rpm | xargs gzip -dc | awk '/^[A-Z].*/ { print }' > GROUPS
 
 %{__make} \
+	bash_compdir=%{bash_compdir} \
 	COMPILE_PYC=1
 
 %if %{with tests}
@@ -103,8 +105,8 @@ rm -rf $RPM_BUILD_ROOT
 
 install -p %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-cp -a GROUPS $RPM_BUILD_ROOT%{_datadir}/%{name}
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/config
+cp -p GROUPS $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{name}/config
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
@@ -120,6 +122,7 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpmlint/config
 %attr(755,root,root) %{_bindir}/rpmdiff
 %attr(755,root,root) %{_bindir}/rpmlint
+%{_mandir}/man1/rpmdiff.1*
 %{_mandir}/man1/rpmlint.1*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/GROUPS
@@ -129,4 +132,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n bash-completion-%{name}
 %defattr(644,root,root,755)
-/etc/bash_completion.d/rpmlint
+%{bash_compdir}/rpmlint
+%{bash_compdir}/rpmdiff
diff --git a/bash-completion.patch b/bash-completion.patch
index c3bd724..90450ff 100644
--- a/bash-completion.patch
+++ b/bash-completion.patch
@@ -1,20 +1,29 @@
---- 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 @@
+--- rpmlint-1.6/Makefile~	2014-07-19 16:05:09.000000000 +0300
++++ rpmlint-1.6/Makefile	2014-09-18 15:36:35.380436188 +0300
+@@ -10,6 +10,7 @@
+ LIBDIR=/usr/share/rpmlint
+ ETCDIR=/etc
+ MANDIR=/usr/share/man
++bash_compdir=$(shell pkg-config --variable=completionsdir bash-completion 2>/dev/null)
+ 
+ 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)
  	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 \
++	if [ "x$(bash_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
++		mkdir -p $(DESTDIR)$(bash_compdir); \
++		cp -p rpmlint.bash-completion $(DESTDIR)$(bash_compdir)/rpmlint ; \
++		ln -s rpmlint $(DESTDIR)$(bash_compdir)/rpmdiff ; \
+ 	fi
+ 	cp -p rpmdiff.1 rpmlint.1 $(DESTDIR)$(MANDIR)/man1
  
- verify:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpmlint.git/commitdiff/07c5699d9caf0b1643d88624724c29988d960f5c



More information about the pld-cvs-commit mailing list