]>
Commit | Line | Data |
---|---|---|
9af65f35 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without a11y # disable accessibility themes | |
4 | ||
2c8f6bfa ER |
5 | Summary: MATE Desktop themes |
6 | Name: mate-themes | |
99dfa2fa | 7 | Version: 1.5.2 |
9af65f35 | 8 | Release: 0.7 |
2c8f6bfa ER |
9 | License: GPL v2+ |
10 | Group: Themes | |
11 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz | |
99dfa2fa | 12 | # Source0-md5: 81402f9bfaf482224502d8965b79da52 |
2c8f6bfa | 13 | URL: http://mate-desktop.org/ |
a11657db | 14 | BuildRequires: gtk2-engines |
99dfa2fa | 15 | BuildRequires: icon-naming-utils >= 0.8.7 |
2c8f6bfa ER |
16 | BuildRequires: mate-common |
17 | BuildRequires: mate-doc-utils | |
18 | BuildRequires: mate-icon-theme-devel | |
2c8f6bfa ER |
19 | BuildRequires: tar >= 1:1.22 |
20 | BuildRequires: xz | |
21 | Requires: gtk2-engines | |
22 | Requires: gtk2-theme-engine-murrine | |
a11657db | 23 | Requires: mate-icon-theme >= 1.5 |
2c8f6bfa ER |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
b6552b33 ER |
28 | MATE Desktop themes: |
29 | ||
30 | - AlaDelta: gtk2, metacity | |
31 | - Aldabra: gtk2, gtk3, metacity | |
32 | - Atlanta: metacity | |
33 | - BlackMATE: cinnamon, gnome-shell, gtk2, gtk3, metacity | |
34 | - Fog: metacity | |
35 | - GreenLaguna: gtk2, gtk3, metacity | |
36 | - Menta: cinnamon, gnome-shell, gtk2, gtk3, metacity, unity, xfwm4 | |
37 | - Menta-Black: metacity | |
38 | - Quid: ? (x-gnome-metatheme) | |
39 | - Shiny: gtk2, metacity | |
40 | - Simply: gtk2 | |
41 | - TraditionalGreen: gtk2, gtk3, metacity | |
42 | - TraditionalOk: gtk2, gtk3, metacity, openbox, xfwm4 | |
2c8f6bfa | 43 | |
3685a078 ER |
44 | %package accessibility |
45 | Summary: Accessibility themes for MATE environment | |
46 | Group: Themes | |
47 | Requires: %{name} = %{version}-%{release} | |
a11657db | 48 | Requires: mate-icon-theme >= 1.5 |
3685a078 ER |
49 | |
50 | %description accessibility | |
b6552b33 ER |
51 | Accessibility themes for MATE environment: |
52 | ||
53 | - ContrastHigh: gtk2, gtk3, metacity | |
54 | - ContrastHighInverse: gtk2 | |
55 | - ContrastHighLargePrint: gtk2 | |
56 | - ContrastHighLargePrintInverse: gtk2 | |
57 | - ContrastLow: gtk2 | |
58 | - ContrastLowLargePrint: gtk2 | |
59 | - PrintLarge: gtk2 | |
60 | - Reverse: gtk2, metacity | |
3685a078 | 61 | |
2c8f6bfa ER |
62 | %prep |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | NOCONFIGURE=1 ./autogen.sh | |
67 | %configure \ | |
a11657db | 68 | --disable-silent-rules \ |
9af65f35 | 69 | %{__enable_disable a11y all-themes} \ |
2c8f6bfa ER |
70 | --enable-icon-mapping \ |
71 | ||
a11657db | 72 | %{__make} |
2c8f6bfa ER |
73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | %{__make} install \ | |
77 | INSTALL="install -p" \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | for dir in $RPM_BUILD_ROOT%{_iconsdir}/*/; do | |
81 | gtk-update-icon-cache -ft $dir | |
82 | done | |
83 | ||
84 | %find_lang %{name} | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post | |
90 | for icon_theme in \ | |
91 | Fog PrintLarge Quid Reverse Shiny Simply TraditionalOk \ | |
92 | ContrastHighLargePrint ContrastHighLargePrintInverse \ | |
93 | ContrastLow ContrastHigh ContrastHighInverse Aldabra ; | |
94 | do | |
95 | /bin/touch --no-create %{_datadir}/icons/${icon_theme} | |
96 | done | |
97 | ||
98 | %postun | |
99 | if [ $1 -eq 0 ]; then | |
100 | for icon_theme in \ | |
101 | Fog PrintLarge Quid Reverse Shiny Simply TraditionalOk \ | |
102 | ContrastHighLargePrint ContrastHighLargePrintInverse \ | |
103 | ContrastLow ContrastHigh ContrastHighInverse Aldabra; do | |
104 | /bin/touch --no-create %{_datadir}/icons/${icon_theme} | |
105 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/${icon_theme} | |
106 | done | |
107 | fi | |
108 | ||
109 | %posttrans | |
110 | for icon_theme in \ | |
111 | Fog PrintLarge Quid Reverse Shiny Simply TraditionalOk \ | |
112 | ContrastHighLargePrint ContrastHighLargePrintInverse \ | |
113 | ContrastLow ContrastHigh ContrastHighInverse Aldabra; do | |
114 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/${icon_theme} | |
115 | done | |
116 | exit 0 | |
117 | ||
118 | %files -f %{name}.lang | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS COPYING README | |
3685a078 ER |
121 | %{_datadir}/themes/AlaDelta |
122 | %{_datadir}/themes/Aldabra | |
123 | %{_datadir}/themes/Atantla | |
a11657db | 124 | %{_datadir}/themes/BlackMATE |
2c8f6bfa | 125 | %{_datadir}/themes/Fog |
a11657db ER |
126 | %{_datadir}/themes/GreenLaguna |
127 | %{_datadir}/themes/Menta | |
128 | %{_datadir}/themes/Menta-Black | |
2c8f6bfa | 129 | %{_datadir}/themes/Quid |
2c8f6bfa ER |
130 | %{_datadir}/themes/Shiny |
131 | %{_datadir}/themes/Simply | |
a11657db | 132 | %{_datadir}/themes/TraditionalGreen |
2c8f6bfa | 133 | %{_datadir}/themes/TraditionalOk |
3685a078 ER |
134 | %{_iconsdir}/Fog |
135 | %{_iconsdir}/Quid | |
136 | %{_iconsdir}/mate/cursors | |
137 | ||
138 | %files accessibility | |
139 | %defattr(644,root,root,755) | |
140 | %{_datadir}/themes/ContrastHigh | |
141 | %{_datadir}/themes/ContrastHighInverse | |
2c8f6bfa ER |
142 | %{_datadir}/themes/ContrastHighLargePrint |
143 | %{_datadir}/themes/ContrastHighLargePrintInverse | |
144 | %{_datadir}/themes/ContrastLow | |
3685a078 | 145 | %{_datadir}/themes/ContrastLowLargePrint |
b6552b33 | 146 | %{_datadir}/themes/PrintLarge |
3685a078 | 147 | %{_datadir}/themes/Reverse |
2c8f6bfa | 148 | %{_iconsdir}/ContrastHigh |
3685a078 | 149 | %{_iconsdir}/ContrastHigh-SVG |
2c8f6bfa ER |
150 | %{_iconsdir}/ContrastHighInverse |
151 | %{_iconsdir}/ContrastHighLargePrint | |
2c8f6bfa | 152 | %{_iconsdir}/ContrastHighLargePrintInverse |
3685a078 | 153 | %{_iconsdir}/MateLargePrint |