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
69 # %{_rpmfilename} is not expanded, so use
70 # %{name}-%{version}-%{release}.%{buildarch}.rpm
71 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
72 RPMFILE2=%{name}-debuginfo-%{version}-%{release}.%{_target_cpu}.rpm
73 TMPFILE=%{name}-%{version}.tmp$$
74 # note: we must exclude from check all existing dirs belonging to FHS
75 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
77 # find finds also '.', so use option -B for diff
78 rpm -qpl %{_rpmdir}/$RPMFILE %{_rpmdir}/$RPMFILE2 | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
85 %dir /etc/X11/xinit/xinitrc.d
86 %attr(751,root,root) %dir /etc/certs
87 %attr(751,root,root) %dir /etc/security
89 %dir /etc/sysconfig/wmstyle
91 %dir /etc/xdg/autostart
93 %attr(751,root,adm) %dir /home/services
99 %dir /usr/include/security
100 %dir /usr/lib/cgi-bin
101 %dir /usr/lib/pkgconfig
102 %dir /usr/share/gnome
103 %dir /usr/share/gnome/help
104 %dir /usr/share/man/man[nl]
105 %lang(pl) %dir /usr/share/man/pl/mann
106 %dir /usr/share/pkgconfig
107 %dir /usr/share/sounds
108 %dir /usr/share/themes
109 %dir /usr/share/themes/Default
110 %dir /usr/share/wallpapers
111 %dir /usr/share/wm-properties
112 %dir /usr/share/xsessions
113 %dir /usr/src/examples
114 %attr(700,root,root) %dir /var/lock/subsys
117 %dir %{_desktopdir}/docklets
123 %if "%{_lib}" == "lib64"
125 %dir /usr/lib64/pkgconfig
129 %defattr(644,root,root,755)