3 # - gtk1 no longer updated. drop after dropping last gtk+ 1.x app
6 %bcond_without gtk # don't build GTK+ styles
7 %bcond_without gtk2 # don't build GTK+2 styles
8 %bcond_without kde # don't build KDE styles
11 %define kde_ver 0.62.6
12 %define gtk2_ver 0.62.6
13 %define gtk1_ver 0.42.2
14 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
15 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
21 Source0: http://home.freeuk.com/cpdrummond/%{name}-KDE3-%{kde_ver}.tar.bz2
22 # Source0-md5: b957d5c83fb256ae8c9e36f552a13f0c
23 Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.bz2
24 # Source1-md5: 5e507b9fd5839223612b825b299d3b14
25 Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz
26 # Source2-md5: 8219f58493ca4e65a8fe61ee76eca522
27 Patch0: %{name}-Gtk2-userjs.patch
28 Patch1: %{name}-Gtk2-mailto.patch
29 Patch2: %{name}-Gtk1-lib64.patch
30 URL: http://www.kde-look.org/content/show.php?content=40492
31 BuildRequires: autoconf
32 BuildRequires: automake
34 %{?with_gtk:BuildRequires: gtk+-devel}
35 %{?with_gtk2:BuildRequires: gtk+2-devel}
36 %{?with_kde:BuildRequires: kdelibs-devel >= 3.1}
37 BuildRequires: libtool
38 BuildRequires: pkgconfig
39 BuildRequires: rpmbuild(macros) >= 1.293
40 BuildRequires: sed > 4.0
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 A free and corrected port of Red Hat's GTK+/Qt theme.
46 %description -l pl.UTF-8
47 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
49 %package -n kde-style-QtCurve
50 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
51 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
54 Requires: kdelibs >= 3.1
56 %description -n kde-style-QtCurve
57 A free and corrected port of Red Hat's GTK+/Qt theme. KDE version.
59 %description -n kde-style-QtCurve -l pl.UTF-8
60 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
63 %package -n gtk-theme-QtCurve
64 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
65 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
68 Requires: theme-QtCurve-common = %{ver}-%{release}
70 %description -n gtk-theme-QtCurve
71 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version.
73 %description -n gtk-theme-QtCurve -l pl.UTF-8
74 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
77 %package -n gtk2-theme-QtCurve
78 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
79 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
82 Requires: theme-QtCurve-common = %{ver}-%{release}
84 %description -n gtk2-theme-QtCurve
85 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version.
87 %description -n gtk2-theme-QtCurve -l pl.UTF-8
88 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
91 %package -n theme-QtCurve-common
92 Summary: A free and corrected port of Redhats GTK+/Qt theme - common
93 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common
96 Obsoletes: gtk-theme-bluecurve
97 Obsoletes: gtk2-theme-bluecurve
98 Obsoletes: kde-style-bluecurve
99 Obsoletes: kde-theme-bluecurve
100 Obsoletes: theme-bluecurve-common
102 %description -n theme-QtCurve-common
103 A free and corrected port of Red Hat's GTK+/Qt theme. Documentation
104 and common files package.
106 %description -n theme-QtCurve-common -l pl.UTF-8
107 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
108 Pakiet z dokumentacja i plikami współdzielonymi.
111 %setup -q -c -D %{?with_kde:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2}
113 cd %{name}-Gtk2-%{gtk2_ver}
120 %if "%{_lib}" == "lib64"
121 cd %{name}-Gtk1-%{gtk1_ver}
130 cd %{name}-KDE3-%{kde_ver}
132 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
140 cd %{name}-Gtk1-%{gtk1_ver}
152 cd %{name}-Gtk2-%{gtk2_ver}
154 -DQTC_ADD_EVENT_FILTER=true \
155 -DQTC_MODIFY_MOZILLA=true \
156 -DQTC_MODIFY_MOZILLA_USER_JS=true \
157 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
165 rm -rf $RPM_BUILD_ROOT
168 %{__make} -C %{name}-KDE3-%{kde_ver} install \
169 DESTDIR=$RPM_BUILD_ROOT
173 %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \
174 DESTDIR=$RPM_BUILD_ROOT
178 %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \
179 DESTDIR=$RPM_BUILD_ROOT
181 chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
182 chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/mozilla/mailto.sh
185 rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la
188 rm -rf $RPM_BUILD_ROOT
191 %files -n kde-style-QtCurve
192 %defattr(644,root,root,755)
193 %{_libdir}/kde3/kstyle_qtcurve_config.la
194 %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so
195 %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
196 %{_datadir}/apps/kstyle/themes/qtcurve*.themerc
197 %{_datadir}/apps/kstyle/themes/qtc_klearlooks.themerc
198 %{_datadir}/apps/QtCurve
202 %files -n gtk-theme-QtCurve
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so
205 %{_datadir}/themes/QtCurve/gtk
209 %files -n gtk2-theme-QtCurve
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so
212 %dir %{_datadir}/themes/QtCurve/gtk-2.0
213 %{_datadir}/themes/QtCurve/gtk-2.0/gtkrc
214 %{_datadir}/themes/QtCurve/gtk-2.0/icons3
215 %{_datadir}/themes/QtCurve/gtk-2.0/icons4
216 %attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
217 %dir %{_datadir}/themes/QtCurve/mozilla
218 %{_datadir}/themes/QtCurve/mozilla/QtCurve.css
219 %{_datadir}/themes/QtCurve/mozilla/firefox-user.js
220 %{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml
221 %attr(755,root,root) %{_datadir}/themes/QtCurve/mozilla/mailto.sh
224 %files -n theme-QtCurve-common
225 %defattr(644,root,root,755)
226 %doc %{name}-KDE3-%{kde_ver}/ChangeLog
227 %doc %{name}-KDE3-%{kde_ver}/README
228 %doc %{name}-KDE3-%{kde_ver}/TODO
229 %dir %{_datadir}/themes/QtCurve