SPECS: filesystem.spec - moved here all dirs not covered by FHS 2....

qboosh qboosh at pld-linux.org
Fri Oct 27 20:15:32 CEST 2006


Author: qboosh                       Date: Fri Oct 27 18:15:32 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- moved here all dirs not covered by FHS 2.3 (from FHS.spec)
- fixed check in clean section
- release 11

---- Files affected:
SPECS:
   filesystem.spec (1.69 -> 1.70) 

---- Diffs:

================================================================
Index: SPECS/filesystem.spec
diff -u SPECS/filesystem.spec:1.69 SPECS/filesystem.spec:1.70
--- SPECS/filesystem.spec:1.69	Fri Sep 15 09:28:43 2006
+++ SPECS/filesystem.spec	Fri Oct 27 20:15:27 2006
@@ -1,7 +1,4 @@
 # $Revision$, $Date$
-#
-# TODO: move here from FHS.spec all dirs not covered by FHS, update descs
-#
 
 %define		_enable_debug_packages	0
 
@@ -9,13 +6,18 @@
 Summary(pl):	Wspólne katalogi
 Name:		filesystem
 Version:	3.0
-Release:	10
+Release:	11
 License:	GPL
 Group:		Base
-Requires:	FHS >= 2.3-14.2
 BuildRequires:	automake
+Requires:	FHS >= 2.3-15
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# directory for "privilege separation" chroot
+%define		_privsepdir	/usr/share/empty
+# directory for *.idl files (for CORBA implementations)
+%define		_idldir		/usr/share/idl
+
 %description
 This package contains common directories for packages that extend
 some programs functionality, but don't require them themselves.
@@ -42,17 +44,24 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/etc/{sysconfig,xdg/autostart} \
-	$RPM_BUILD_ROOT%{_prefix}/share/{gnome/help,icons,pixmaps,pkgconfig,sounds,themes/Default,wallpapers,wm-properties,xsessions} \
-	$RPM_BUILD_ROOT%{_prefix}/lib/debug \
-	$RPM_BUILD_ROOT%{_usrsrc}/debug \
-	$RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}} \
-	$RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d \
-	$RPM_BUILD_ROOT%{_desktopdir}/docklets \
-	$RPM_BUILD_ROOT/etc/sysconfig/wmstyle
-
-%if "%{_lib}" != "lib"
-install -d $RPM_BUILD_ROOT/usr/lib/pkgconfig
+install -d \
+	$RPM_BUILD_ROOT/{initrd,selinux,sys} \
+	$RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,certs,security,sysconfig/wmstyle,xdg/autostart} \
+	$RPM_BUILD_ROOT/home/{users,services} \
+	$RPM_BUILD_ROOT/lib/{firmware,security} \
+	$RPM_BUILD_ROOT/usr/include/security \
+	$RPM_BUILD_ROOT/usr/lib/{cgi-bin,debug,pkgconfig} \
+	$RPM_BUILD_ROOT/usr/share/{gnome/help,man/man{n,l},man/pl/mann,pkgconfig,sounds,themes/Default,wallpapers,wm-properties,xsessions} \
+	$RPM_BUILD_ROOT/usr/src/{debug,examples} \
+	$RPM_BUILD_ROOT/var/lock/subsys \
+	$RPM_BUILD_ROOT{%{_aclocaldir},%{_desktopdir}/docklets,%{_iconsdir},%{_pixmapsdir}} \
+	$RPM_BUILD_ROOT%{_fontsdir}/{{100,75}dpi,OTF,Speedo,Type1/{afm,pfm},TTF,cyrillic,local,misc} \
+	$RPM_BUILD_ROOT{%{_idldir},%{_privsepdir}}
+
+%if "%{_lib}" == "lib64"
+install -d \
+	$RPM_BUILD_ROOT/lib64/security
+	$RPM_BUILD_ROOT/usr/lib64/pkgconfig
 %endif
 
 %clean
@@ -61,32 +70,40 @@
 # %{_rpmfilename} is not expanded, so use
 # %{name}-%{version}-%{release}.%{buildarch}.rpm
 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
+RPMFILE2=%{name}-debuginfo-%{version}-%{release}.%{_target_cpu}.rpm
 TMPFILE=%{name}-%{version}.tmp$$
-find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
+# note: we must exclude from check all existing dirs belonging to FHS
+find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE | grep -E -v '^/(etc|etc/X11|home|lib|lib64|usr|usr/include|usr/lib|usr/lib64|usr/share|usr/share/man|usr/share/man/pl|usr/src|var|var/lock)$' > $TMPFILE
 
 # find finds also '.', so use option -B for diff
-rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
+rpm -qpl %{_rpmdir}/$RPMFILE %{_rpmdir}/$RPMFILE2 | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
 
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir /etc/sysconfig
 %dir /etc/X11/xinit
 %dir /etc/X11/xinit/xinitrc.d
+%attr(751,root,root) %dir /etc/certs
+%attr(751,root,root) %dir /etc/security
+%dir /etc/sysconfig
+%dir /etc/sysconfig/wmstyle
 %dir /etc/xdg
 %dir /etc/xdg/autostart
-%dir %{_pkgconfigdir}
-%if "%{_lib}" != "lib"
+%dir /home/users
+%attr(751,root,adm) %dir /home/services
+%dir /initrd
+%dir /lib/firmware
+%dir /lib/security
+%dir /selinux
+%dir /sys
+%dir /usr/include/security
+%dir /usr/lib/cgi-bin
 %dir /usr/lib/pkgconfig
-%endif
-%dir %{_aclocaldir}
-%dir %{_desktopdir}/docklets
-%dir /etc/sysconfig/wmstyle
 %dir /usr/share/gnome
 %dir /usr/share/gnome/help
-%dir /usr/share/icons
-%dir /usr/share/pixmaps
+%dir /usr/share/man/man[nl]
+%lang(pl) %dir /usr/share/man/pl/mann
 %dir /usr/share/pkgconfig
 %dir /usr/share/sounds
 %dir /usr/share/themes
@@ -94,11 +111,25 @@
 %dir /usr/share/wallpapers
 %dir /usr/share/wm-properties
 %dir /usr/share/xsessions
+%dir /usr/src/examples
+%attr(700,root,root) %dir /var/lock/subsys
+%dir %{_aclocaldir}
+%dir %{_desktopdir}
+%dir %{_desktopdir}/docklets
+%dir %{_iconsdir}
+%dir %{_pixmapsdir}
+%{_fontsdir}
+%dir %{_idldir}
+%dir %{_privsepdir}
+%if "%{_lib}" == "lib64"
+%dir /lib64/security
+%dir /usr/lib64/pkgconfig
+%endif
 
 %files debuginfo
 %defattr(644,root,root,755)
-%dir %{_prefix}/lib/debug
-%dir %{_usrsrc}/debug
+%dir /usr/lib/debug
+%dir /usr/src/debug
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -106,6 +137,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.70  2006/10/27 18:15:27  qboosh
+- moved here all dirs not covered by FHS 2.3 (from FHS.spec)
+- fixed check in clean section
+- release 11
+
 Revision 1.69  2006/09/15 07:28:43  jajcus
 - BR: automake (%{_aclocaldir} macro)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/filesystem.spec?r1=1.69&r2=1.70&f=u



More information about the pld-cvs-commit mailing list