]>
Commit | Line | Data |
---|---|---|
e2138fbb | 1 | # TODO: |
4dafcdae | 2 | # - gtk1 no longer updated. drop after dropping last gtk+ 1.x app |
df5f2cf9 | 3 | # |
7286a96e | 4 | # Conditional build: |
ed28eafc | 5 | %bcond_without gtk # don't build GTK+ styles |
00a3d52c | 6 | %bcond_without gtk2 # don't build GTK+2 styles |
add5ccd2 | 7 | %bcond_with kde3 # build KDE3 styles |
fc99b10a | 8 | %bcond_without kde4 # don't build KDE4 styles |
88bd24dd ER |
9 | |
10 | %define ver 1.0.1 | |
fc99b10a | 11 | %define kde4_ver 1.0.1 |
88bd24dd ER |
12 | %define kde3_ver 1.0.0 |
13 | %define gtk2_ver 1.0.1 | |
2327ea5c | 14 | %define gtk1_ver 0.42.2 |
27b2bea1 | 15 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 16 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
754634b4 | 17 | Name: QtCurve |
15ae11f4 | 18 | Version: %{ver} |
5e47f7e5 | 19 | Release: 1 |
754634b4 JB |
20 | License: GPL |
21 | Group: Themes | |
88bd24dd ER |
22 | Source0: http://craigd.wikispaces.com/file/view/%{name}-KDE3-%{kde3_ver}.tar.bz2 |
23 | # Source0-md5: b3bd5675fc954a4a01e691e7d5be35ee | |
24 | Source1: http://craigd.wikispaces.com/file/view/%{name}-Gtk2-%{gtk2_ver}.tar.bz2 | |
25 | # Source1-md5: 8c574b955851e79397805db95ed08b62 | |
2327ea5c KK |
26 | Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz |
27 | # Source2-md5: 8219f58493ca4e65a8fe61ee76eca522 | |
fc99b10a ER |
28 | Source3: http://craigd.wikispaces.com/file/view/%{name}-KDE4-%{kde4_ver}.tar.bz2 |
29 | # Source3-md5: d60fff0f032bc86e6731468e37ba0226 | |
8650aea8 | 30 | Patch0: %{name}-Gtk1-lib64.patch |
a14cbe44 | 31 | URL: http://www.kde-look.org/content/show.php?content=40492 |
00a3d52c | 32 | BuildRequires: autoconf |
47b9c578 | 33 | BuildRequires: automake |
e78c8e0f | 34 | BuildRequires: cmake |
b7ff1e84 | 35 | %{?with_gtk:BuildRequires: gtk+-devel} |
00a3d52c | 36 | %{?with_gtk2:BuildRequires: gtk+2-devel} |
407f4885 | 37 | %{?with_kde4:BuildRequires: kde4-kdebase-workspace-devel} |
6320eacf | 38 | %{?with_kde4:BuildRequires: kde4-kdelibs-devel} |
fc99b10a | 39 | %{?with_kde4:BuildRequires: kde4-kdelibs} |
88bd24dd | 40 | %{?with_kde3:BuildRequires: kdelibs-devel >= 3.1} |
2327ea5c | 41 | BuildRequires: libtool |
00a3d52c | 42 | BuildRequires: pkgconfig |
fc99b10a | 43 | %{?with_kde4:BuildRequires: qt4-build} |
e78c8e0f | 44 | BuildRequires: rpmbuild(macros) >= 1.293 |
f7bfae83 | 45 | BuildRequires: sed > 4.0 |
754634b4 JB |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
27b2bea1 | 49 | A free and corrected port of Red Hat's GTK+/Qt theme. |
754634b4 | 50 | |
d7edd7b0 | 51 | %description -l pl.UTF-8 |
27b2bea1 | 52 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
754634b4 | 53 | |
4e7ad8f7 | 54 | %package -n kde-style-QtCurve |
27b2bea1 | 55 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 56 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
88bd24dd | 57 | Version: %{kde3_ver} |
754634b4 | 58 | Group: Themes |
387c4dbb | 59 | Requires: kdelibs >= 3.1 |
754634b4 | 60 | |
4e7ad8f7 | 61 | %description -n kde-style-QtCurve |
fc99b10a | 62 | A free and corrected port of Red Hat's GTK+/Qt theme. KDE3 version. |
754634b4 | 63 | |
d7edd7b0 | 64 | %description -n kde-style-QtCurve -l pl.UTF-8 |
27b2bea1 | 65 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
fc99b10a ER |
66 | Wersja pod KDE3. |
67 | ||
68 | %package -n kde4-style-QtCurve | |
69 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme | |
70 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata | |
71 | Version: %{kde4_ver} | |
72 | Group: Themes | |
73 | Requires: kde4-kdebase >= 4.3.4 | |
74 | ||
75 | %description -n kde4-style-QtCurve | |
76 | A free and corrected port of Red Hat's GTK+/Qt theme. KDE4 version. | |
77 | ||
78 | %description -n kde4-style-QtCurve -l pl.UTF-8 | |
79 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. | |
80 | Wersja pod KDE4. | |
754634b4 | 81 | |
4e7ad8f7 | 82 | %package -n gtk-theme-QtCurve |
27b2bea1 | 83 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 84 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
15ae11f4 | 85 | Version: %{gtk1_ver} |
5474a1c3 | 86 | Group: Themes |
15ae11f4 | 87 | Requires: theme-QtCurve-common = %{ver}-%{release} |
754634b4 | 88 | |
4e7ad8f7 | 89 | %description -n gtk-theme-QtCurve |
27b2bea1 | 90 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version. |
754634b4 | 91 | |
d7edd7b0 | 92 | %description -n gtk-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 93 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 94 | Wersja pod GTK+. |
754634b4 | 95 | |
4e7ad8f7 | 96 | %package -n gtk2-theme-QtCurve |
27b2bea1 | 97 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 98 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
15ae11f4 | 99 | Version: %{gtk2_ver} |
5474a1c3 | 100 | Group: Themes |
15ae11f4 | 101 | Requires: theme-QtCurve-common = %{ver}-%{release} |
754634b4 | 102 | |
4e7ad8f7 | 103 | %description -n gtk2-theme-QtCurve |
27b2bea1 | 104 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version. |
754634b4 | 105 | |
d7edd7b0 | 106 | %description -n gtk2-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 107 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 108 | Wersja pod GTK+2. |
754634b4 | 109 | |
4e7ad8f7 | 110 | %package -n theme-QtCurve-common |
4b59ebdb | 111 | Summary: A free and corrected port of Redhats GTK+/Qt theme - common |
90b035bc | 112 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common |
c9dfc0cd | 113 | Version: %{ver} |
5474a1c3 | 114 | Group: Themes |
5474a1c3 | 115 | Obsoletes: gtk-theme-bluecurve |
e78c8e0f | 116 | Obsoletes: gtk2-theme-bluecurve |
5474a1c3 | 117 | Obsoletes: kde-style-bluecurve |
118 | Obsoletes: kde-theme-bluecurve | |
e78c8e0f | 119 | Obsoletes: theme-bluecurve-common |
6b908541 | 120 | |
4e7ad8f7 | 121 | %description -n theme-QtCurve-common |
e78c8e0f ER |
122 | A free and corrected port of Red Hat's GTK+/Qt theme. Documentation |
123 | and common files package. | |
754634b4 | 124 | |
d7edd7b0 | 125 | %description -n theme-QtCurve-common -l pl.UTF-8 |
27b2bea1 | 126 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
d7edd7b0 | 127 | Pakiet z dokumentacja i plikami współdzielonymi. |
754634b4 JB |
128 | |
129 | %prep | |
fc99b10a | 130 | %setup -q -c -D %{?with_kde3:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2} %{?with_kde4:-a3} |
754634b4 | 131 | |
f4dbcdaf | 132 | %if %{with gtk} |
133 | %if "%{_lib}" == "lib64" | |
134 | cd %{name}-Gtk1-%{gtk1_ver} | |
8650aea8 | 135 | %patch0 -p1 |
f4dbcdaf | 136 | cd - |
137 | %endif | |
138 | %endif | |
139 | ||
754634b4 | 140 | %build |
88bd24dd ER |
141 | %if %{with kde3} |
142 | cd %{name}-KDE3-%{kde3_ver} | |
e78c8e0f ER |
143 | %cmake \ |
144 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
60a21061 | 145 | . |
d0f6aa39 | 146 | |
754634b4 | 147 | %{__make} |
2327ea5c | 148 | cd - |
15ae11f4 | 149 | %endif |
2327ea5c | 150 | |
fc99b10a ER |
151 | %if %{with kde4} |
152 | cd %{name}-KDE4-%{kde4_ver} | |
153 | %cmake \ | |
154 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
155 | . | |
156 | ||
157 | %{__make} | |
158 | cd - | |
159 | %endif | |
160 | ||
2327ea5c KK |
161 | %if %{with gtk} |
162 | cd %{name}-Gtk1-%{gtk1_ver} | |
3aa45453 | 163 | rm -f acinclude.m4 |
2327ea5c KK |
164 | %{__libtoolize} |
165 | %{__aclocal} | |
166 | %{__autoconf} | |
167 | %{__autoheader} | |
168 | %{__automake} | |
169 | %configure | |
170 | %{__make} | |
171 | cd - | |
172 | %endif | |
173 | ||
174 | %if %{with gtk2} | |
175 | cd %{name}-Gtk2-%{gtk2_ver} | |
e78c8e0f | 176 | %cmake \ |
84390b5c ER |
177 | -DQTC_ADD_EVENT_FILTER=true \ |
178 | -DQTC_MODIFY_MOZILLA=true \ | |
179 | -DQTC_MODIFY_MOZILLA_USER_JS=true \ | |
e78c8e0f | 180 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
60a21061 | 181 | . |
d0f6aa39 | 182 | |
2327ea5c KK |
183 | %{__make} |
184 | cd - | |
185 | %endif | |
754634b4 JB |
186 | |
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
88bd24dd ER |
190 | %if %{with kde3} |
191 | %{__make} -C %{name}-KDE3-%{kde3_ver} install \ | |
27a34c4d | 192 | DESTDIR=$RPM_BUILD_ROOT |
15ae11f4 | 193 | %endif |
754634b4 | 194 | |
fc99b10a ER |
195 | %if %{with kde4} |
196 | %{__make} -C %{name}-KDE4-%{kde4_ver} install \ | |
197 | DESTDIR=$RPM_BUILD_ROOT | |
198 | %endif | |
199 | ||
2327ea5c KK |
200 | %if %{with gtk} |
201 | %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \ | |
202 | DESTDIR=$RPM_BUILD_ROOT | |
203 | %endif | |
204 | ||
205 | %if %{with gtk2} | |
206 | %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \ | |
207 | DESTDIR=$RPM_BUILD_ROOT | |
2327ea5c | 208 | |
84390b5c | 209 | chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl |
15ae11f4 | 210 | %endif |
84390b5c | 211 | |
7286a96e JB |
212 | rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la |
213 | ||
754634b4 JB |
214 | %clean |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
88bd24dd | 217 | %if %{with kde3} |
4e7ad8f7 | 218 | %files -n kde-style-QtCurve |
754634b4 | 219 | %defattr(644,root,root,755) |
a5ccfc6f | 220 | %{_libdir}/kde3/kstyle_qtcurve_config.la |
221 | %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so | |
754634b4 | 222 | %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so |
6b908541 | 223 | %{_datadir}/apps/kstyle/themes/qtcurve*.themerc |
88bd24dd | 224 | %{_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc |
19458cf5 | 225 | %{_datadir}/apps/QtCurve |
15ae11f4 | 226 | %endif |
754634b4 | 227 | |
fc99b10a ER |
228 | %if %{with kde4} |
229 | %files -n kde4-style-QtCurve | |
230 | %defattr(644,root,root,755) | |
231 | %attr(755,root,root) %{_libdir}/kde4/kstyle_qtcurve_config.so | |
232 | %attr(755,root,root) %{_libdir}/kde4/kwin3_qtcurve.so | |
233 | %attr(755,root,root) %{_libdir}/kde4/kwin_qtcurve_config.so | |
234 | %attr(755,root,root) %{_libdir}/kde4/plugins/styles/qtcurve.so | |
235 | %{_datadir}/apps/QtCurve/Agua.qtcurve | |
236 | %{_datadir}/apps/QtCurve/Curve.qtcurve | |
237 | %{_datadir}/apps/QtCurve/Flat.qtcurve | |
238 | %{_datadir}/apps/QtCurve/Human.qtcurve | |
239 | %{_datadir}/apps/QtCurve/Inverted.qtcurve | |
240 | %{_datadir}/apps/QtCurve/Klearlooks.qtcurve | |
241 | %{_datadir}/apps/QtCurve/Murrine.qtcurve | |
242 | %{_datadir}/apps/QtCurve/Ozone.qtcurve | |
243 | %{_datadir}/apps/QtCurve/Plastic.qtcurve | |
244 | %{_datadir}/apps/QtCurve/Silk.qtcurve | |
245 | %{_datadir}/apps/color-schemes/QtCurve.colors | |
246 | %{_datadir}/apps/kstyle/themes/qtcurve.themerc | |
247 | %{_datadir}/apps/kwin/qtcurve.desktop | |
248 | %endif | |
249 | ||
5890c07d | 250 | %if %{with gtk} |
4e7ad8f7 | 251 | %files -n gtk-theme-QtCurve |
754634b4 | 252 | %defattr(644,root,root,755) |
754634b4 | 253 | %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so |
2327ea5c | 254 | %{_datadir}/themes/QtCurve/gtk |
00a3d52c | 255 | %endif |
754634b4 | 256 | |
00a3d52c | 257 | %if %{with gtk2} |
4e7ad8f7 | 258 | %files -n gtk2-theme-QtCurve |
754634b4 | 259 | %defattr(644,root,root,755) |
754634b4 | 260 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so |
84390b5c ER |
261 | %dir %{_datadir}/themes/QtCurve/gtk-2.0 |
262 | %{_datadir}/themes/QtCurve/gtk-2.0/gtkrc | |
263 | %{_datadir}/themes/QtCurve/gtk-2.0/icons3 | |
264 | %{_datadir}/themes/QtCurve/gtk-2.0/icons4 | |
fc99b10a | 265 | %{_datadir}/themes/QtCurve/gtk-2.0/kdeglobals |
84390b5c ER |
266 | %attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl |
267 | %dir %{_datadir}/themes/QtCurve/mozilla | |
268 | %{_datadir}/themes/QtCurve/mozilla/QtCurve.css | |
8650aea8 | 269 | %{_datadir}/themes/QtCurve/mozilla/QtCurve-KDEButtonOrder.css |
84390b5c | 270 | %{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml |
00a3d52c | 271 | %endif |
754634b4 | 272 | |
4e7ad8f7 | 273 | %files -n theme-QtCurve-common |
754634b4 | 274 | %defattr(644,root,root,755) |
88bd24dd ER |
275 | %doc %{name}-KDE3-%{kde3_ver}/ChangeLog |
276 | %doc %{name}-KDE3-%{kde3_ver}/README | |
277 | %doc %{name}-KDE3-%{kde3_ver}/TODO | |
2327ea5c | 278 | %dir %{_datadir}/themes/QtCurve |