SPECS: kde-common-dirs.spec - filter only needed paths

glen glen at pld-linux.org
Fri Aug 29 21:31:25 CEST 2008


Author: glen                         Date: Fri Aug 29 19:31:25 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- filter only needed paths

---- Files affected:
SPECS:
   kde-common-dirs.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/kde-common-dirs.spec
diff -u SPECS/kde-common-dirs.spec:1.8 SPECS/kde-common-dirs.spec:1.9
--- SPECS/kde-common-dirs.spec:1.8	Fri Aug 29 21:29:09 2008
+++ SPECS/kde-common-dirs.spec	Fri Aug 29 21:31:20 2008
@@ -47,10 +47,10 @@
 	RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
 	TMPFILE=$(mktemp)
 	# NOTE: we must exclude from check all existing dirs belonging to FHS
-	find | sed -e 's|^\.||g' -e 's|^$||g' | LC_ALL=C sort | grep -v $TMPFILE | grep -E -v '^/(etc|etc/X11|home|lib|lib64|usr|usr/include|usr/lib|usr/lib64|usr/share|usr/share/doc|usr/share/applications|usr/share/man|usr/share/man/pl|usr/src|var|var/lock)$' > $TMPFILE
+	find | sed -e 's|^\.||g' -e 's|^$||g' | LC_ALL=C sort | grep -v $TMPFILE | grep -E -v '^/(usr|usr/lib|usr/lib64|usr/share|usr/share/doc|usr/share/applications)$' > $TMPFILE
 
 	# find finds also '.', so use option -B for diff
-	if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | LC_ALL=C sort | diff -uB $TMPFILE - ; then
+	if rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | LC_ALL=C sort | diff -uB $TMPFILE -; then
 		rm -rf $RPM_BUILD_ROOT
 	else
 		echo -e "\nNot so good, some directories are not included in package\n"
@@ -92,6 +92,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2008/08/29 19:31:20  glen
+- filter only needed paths
+
 Revision 1.8  2008/08/29 19:29:09  glen
 - exclude paths from FHS/filesystem
 - add apps/kjava
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kde-common-dirs.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list