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