2 %define _enable_debug_packages 0
4 Summary: Common directories
5 Summary(pl): Wspólne katalogi
11 BuildRequires: automake
12 Requires: FHS >= 2.3-15
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 # directory for "privilege separation" chroot
16 %define _privsepdir /usr/share/empty
17 # directory for *.idl files (for CORBA implementations)
18 %define _idldir /usr/share/idl
21 This package contains common directories for packages that extend
22 some programs functionality, but don't require them themselves.
25 Ten pakiet zawiera wspólne katalogi dla pakietów rozszerzaj±cych
26 funkcjonalno¶æ programów, ale nie wymagaj±cych ich.
29 Summary: Common directories for debug information
30 Summary(pl): Wspólne katalogi dla plików z informacjami dla debuggera
31 Group: Development/Debug
32 Requires: %{name} = %{version}-%{release}
34 %description debuginfo
35 This package provides common directories for debug information.
37 %description debuginfo -l pl
38 Ten pakiet udostêpnia wspólne katalogi dla plików z informacjami dla
44 rm -rf $RPM_BUILD_ROOT
47 $RPM_BUILD_ROOT/{initrd,selinux,sys} \
48 $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,certs,security,sysconfig/wmstyle,xdg/autostart} \
49 $RPM_BUILD_ROOT/home/{users,services} \
50 $RPM_BUILD_ROOT/lib/{firmware,security} \
51 $RPM_BUILD_ROOT/usr/include/security \
52 $RPM_BUILD_ROOT/usr/lib/{cgi-bin,debug,pkgconfig} \
53 $RPM_BUILD_ROOT/usr/share/{gnome/help,man/man{n,l},man/pl/mann,pkgconfig,sounds,themes/Default,wallpapers,wm-properties,xsessions} \
54 $RPM_BUILD_ROOT/usr/src/{debug,examples} \
55 $RPM_BUILD_ROOT/var/lock/subsys \
56 $RPM_BUILD_ROOT{%{_aclocaldir},%{_desktopdir}/docklets,%{_iconsdir},%{_pixmapsdir}} \
57 $RPM_BUILD_ROOT%{_fontsdir}/{{100,75}dpi,OTF,Speedo,Type1/{afm,pfm},TTF,cyrillic,local,misc} \
58 $RPM_BUILD_ROOT{%{_idldir},%{_privsepdir}}
60 %if "%{_lib}" == "lib64"
62 $RPM_BUILD_ROOT/lib64/security \
63 $RPM_BUILD_ROOT/usr/lib64/pkgconfig \
64 $RPM_BUILD_ROOT/usr/lib64/browser-plugins
66 $RPM_BUILD_ROOT/usr/lib/browser-plugins
72 # %{_rpmfilename} is not expanded, so use
73 # %{name}-%{version}-%{release}.%{buildarch}.rpm
74 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
75 RPMFILE2=%{name}-debuginfo-%{version}-%{release}.%{_target_cpu}.rpm
76 TMPFILE=%{name}-%{version}.tmp$$
77 # note: we must exclude from check all existing dirs belonging to FHS
78 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
80 # find finds also '.', so use option -B for diff
81 rpm -qpl %{_rpmdir}/$RPMFILE %{_rpmdir}/$RPMFILE2 | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %dir /etc/X11/xinit/xinitrc.d
89 %attr(751,root,root) %dir /etc/certs
90 %attr(751,root,root) %dir /etc/security
92 %dir /etc/sysconfig/wmstyle
94 %dir /etc/xdg/autostart
96 %attr(751,root,adm) %dir /home/services
102 %dir /usr/include/security
103 %dir /usr/lib/cgi-bin
104 %dir /usr/lib/pkgconfig
105 %dir /usr/share/gnome
106 %dir /usr/share/gnome/help
107 %dir /usr/share/man/man[nl]
108 %lang(pl) %dir /usr/share/man/pl/mann
109 %dir /usr/share/pkgconfig
110 %dir /usr/share/sounds
111 %dir /usr/share/themes
112 %dir /usr/share/themes/Default
113 %dir /usr/share/wallpapers
114 %dir /usr/share/wm-properties
115 %dir /usr/share/xsessions
116 %dir /usr/src/examples
117 %attr(700,root,root) %dir /var/lock/subsys
120 %dir %{_desktopdir}/docklets
126 %if "%{_lib}" == "lib64"
128 %dir /usr/lib64/pkgconfig
129 %dir /usr/lib64/browser-plugins
131 %dir /usr/lib/browser-plugins
135 %defattr(644,root,root,755)