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