]> git.pld-linux.org Git - packages/filesystem.git/blob - filesystem.spec
39b3485161f50ed0af15af30e8c92fa5d9ab8af9
[packages/filesystem.git] / filesystem.spec
1 Summary:        Common directories
2 Summary(pl):    Wspólne katalogi
3 Name:           filesystem
4 Version:        3.0
5 Release:        1
6 License:        GPL
7 Group:          Base
8 Requires:       FHS >= 2.3-14.2
9 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
10
11 %description
12 This package contains common directories for packages that extend
13 some programs functionality, but don't require them themselves.
14
15 %description -l pl
16 Ten pakiet zawiera wspólne katalogi dla pakietów rozszerzaj±cych
17 funkcjonalno¶æ programów, ale nie wymagaj±cych ich.
18
19 %prep
20
21 %install
22 rm -rf $RPM_BUILD_ROOT
23
24 install -d $RPM_BUILD_ROOT/etc/{sysconfig,xdg} \
25         $RPM_BUILD_ROOT/usr/share/{sounds,pixmaps,icons,wm-properties,xsessions,wallpapers,themes/Default}
26
27
28 %clean
29 cd $RPM_BUILD_ROOT
30
31 # %{_rpmfilename} is not expanded, so use
32 # %{name}-%{version}-%{release}.%{buildarch}.rpm
33 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
34 TMPFILE=%{name}-%{version}.tmp$$
35 find . | sed -e 's|^\.||g' -e 's|^$||g' | sort | grep -v $TMPFILE > $TMPFILE
36
37 # find finds also '.', so use option -B for diff
38 rpm -qpl %{_rpmdir}/$RPMFILE | grep -v '^/$' | sort | diff -uB $TMPFILE - || :
39
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %dir /etc/sysconfig
45 %dir /etc/xdg
46 %dir /usr/share/icons
47 %dir /usr/share/pixmaps
48 %dir /usr/share/sounds
49 %dir /usr/share/themes
50 %dir /usr/share/themes/Default
51 %dir /usr/share/wallpapers
52 %dir /usr/share/wm-properties
53 %dir /usr/share/xsessions
This page took 0.073093 seconds and 2 git commands to generate.