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.55.1
12 %define gtk2_ver 0.55.1
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: 1ba394626a40e8926966739500dbf87d
23 Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.bz2
24 # Source1-md5: 0d5eeb45990c3ecf060daa68a2ed2e6f
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
53 Requires: kdelibs >= 3.1
55 %description -n kde-style-QtCurve
56 A free and corrected port of Red Hat's GTK+/Qt theme. KDE version.
58 %description -n kde-style-QtCurve -l pl.UTF-8
59 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
62 %package -n gtk-theme-QtCurve
63 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
64 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
67 Requires: theme-QtCurve-common = %{ver}-%{release}
69 %description -n gtk-theme-QtCurve
70 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version.
72 %description -n gtk-theme-QtCurve -l pl.UTF-8
73 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
76 %package -n gtk2-theme-QtCurve
77 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
78 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
81 Requires: theme-QtCurve-common = %{ver}-%{release}
83 %description -n gtk2-theme-QtCurve
84 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version.
86 %description -n gtk2-theme-QtCurve -l pl.UTF-8
87 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
90 %package -n theme-QtCurve-common
91 Summary: A free and corrected port of Redhats GTK+/Qt theme - common
92 Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common
95 Obsoletes: gtk-theme-bluecurve
96 Obsoletes: gtk2-theme-bluecurve
97 Obsoletes: kde-style-bluecurve
98 Obsoletes: kde-theme-bluecurve
99 Obsoletes: theme-bluecurve-common
101 %description -n theme-QtCurve-common
102 A free and corrected port of Red Hat's GTK+/Qt theme. Documentation
103 and common files package.
105 %description -n theme-QtCurve-common -l pl.UTF-8
106 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
107 Pakiet z dokumentacja i plikami współdzielonymi.
110 %setup -q -c -D %{?with_kde:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2}
112 cd %{name}-Gtk2-%{gtk2_ver}
119 %if "%{_lib}" == "lib64"
120 cd %{name}-Gtk1-%{gtk1_ver}
129 cd %{name}-KDE3-%{kde_ver}
131 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
138 cd %{name}-Gtk1-%{gtk1_ver}
150 cd %{name}-Gtk2-%{gtk2_ver}
152 -DQTC_ADD_EVENT_FILTER=true \
153 -DQTC_MODIFY_MOZILLA=true \
154 -DQTC_MODIFY_MOZILLA_USER_JS=true \
155 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
162 rm -rf $RPM_BUILD_ROOT
165 %{__make} -C %{name}-KDE3-%{kde_ver} install \
166 DESTDIR=$RPM_BUILD_ROOT
170 %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \
171 DESTDIR=$RPM_BUILD_ROOT
175 %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \
176 DESTDIR=$RPM_BUILD_ROOT
178 chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
179 chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/mozilla/mailto.sh
182 rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la
185 rm -rf $RPM_BUILD_ROOT
188 %files -n kde-style-QtCurve
189 %defattr(644,root,root,755)
190 %{_libdir}/kde3/kstyle_qtcurve_config.la
191 %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so
192 %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
193 %{_datadir}/apps/kstyle/themes/qtcurve*.themerc
194 %{_datadir}/apps/kstyle/themes/qtc_klearlooks.themerc
195 %{_datadir}/apps/QtCurve
199 %files -n gtk-theme-QtCurve
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so
202 %{_datadir}/themes/QtCurve/gtk
206 %files -n gtk2-theme-QtCurve
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so
209 %dir %{_datadir}/themes/QtCurve/gtk-2.0
210 %{_datadir}/themes/QtCurve/gtk-2.0/gtkrc
211 %{_datadir}/themes/QtCurve/gtk-2.0/icons3
212 %{_datadir}/themes/QtCurve/gtk-2.0/icons4
213 %attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
214 %dir %{_datadir}/themes/QtCurve/mozilla
215 %{_datadir}/themes/QtCurve/mozilla/QtCurve.css
216 %{_datadir}/themes/QtCurve/mozilla/firefox-user.js
217 %{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml
218 %attr(755,root,root) %{_datadir}/themes/QtCurve/mozilla/mailto.sh
221 %files -n theme-QtCurve-common
222 %defattr(644,root,root,755)
223 %doc %{name}-KDE3-%{kde_ver}/{ChangeLog,README,TODO}
224 %dir %{_datadir}/themes/QtCurve