-
Notifications
You must be signed in to change notification settings - Fork 24
/
yast2-theme.spec.in
69 lines (57 loc) · 1.64 KB
/
yast2-theme.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@HEADER-COMMENT@
@HEADER@
BuildRequires: yast2-devtools pkg-config yast2-core yast2 update-desktop-files
BuildArchitectures: noarch
Summary: -
%description
-
%package SuSELinux
Summary: -
Version: @VERSION@
Group: System/YaST
Provides: yast2_theme yast2-theme-UnitedLinux
PreReq: /bin/ln
Obsoletes: yast2-theme-UnitedLinux
%description SuSELinux
-
@PREP@
@BUILD@
@INSTALL@
cp -R "$RPM_BUILD_ROOT/@docdir@" "$RPM_BUILD_ROOT/@docdir@-SuSELinux"
rm -rf "$RPM_BUILD_ROOT/@docdir@"
#
# make icons available to GNOME control center (hicolor theme)
# (bug #166008)
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/apps
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps
mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps
cd $RPM_BUILD_ROOT/@themedir@/SuSELinux/icons
for dir in 22x22 32x32 48x48; do
cd $RPM_BUILD_ROOT/@themedir@/SuSELinux/icons/$dir/apps
icons=$(ls *.png)
cd $RPM_BUILD_ROOT/usr/share/icons/hicolor/$dir/apps
for icon in $icons; do
ln -s ../../../../YaST2/theme/SuSELinux/icons/$dir/apps/$icon .
done
done
@CLEAN@
%post SuSELinux
cd @themedir@
ln -snf SuSELinux current
%files SuSELinux
%defattr(-,root,root)
%dir @themedir@
%dir @themedir@/SuSELinux
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/22x22
%dir /usr/share/icons/hicolor/22x22/apps
%dir /usr/share/icons/hicolor/32x32
%dir /usr/share/icons/hicolor/32x32/apps
%dir /usr/share/icons/hicolor/48x48
%dir /usr/share/icons/hicolor/48x48/apps
@themedir@/SuSELinux/*
/usr/share/icons/hicolor/22x22/apps/*
/usr/share/icons/hicolor/32x32/apps/*
/usr/share/icons/hicolor/48x48/apps/*
@themedir@/SuSELinux/testpage/*
%doc @docdir@-SuSELinux