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