3 # - include /usr/share/themes/QtCurve/mozilla somewhere
6 %bcond_with gtk # build GTK styles
7 %bcond_without gtk2 # don't build GTK+2 styles
10 %define gtk2_ver 0.45.3
11 %define gtk1_ver 0.42.2
12 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
13 Summary(pl): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
19 Source0: http://home.freeuk.com/cpdrummond/%{name}-KDE3-%{kde_ver}.tar.gz
20 # Source0-md5: be84b6d28bf88510952f1cf866647162
21 Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.gz
22 # Source1-md5: 877c3a85c358689bd30af78951710d83
23 Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz
24 # Source2-md5: 8219f58493ca4e65a8fe61ee76eca522
25 Patch0: %{name}-amd64.patch
26 URL: http://www.kde-look.org/content/show.php?content=40492
27 BuildRequires: autoconf
28 BuildRequires: automake
29 %{?with_gtk:BuildRequires: gtk+-devel}
30 %{?with_gtk2:BuildRequires: gtk+2-devel}
31 BuildRequires: kdelibs-devel >= 3.1
32 BuildRequires: libtool
33 BuildRequires: pkgconfig
34 BuildRequires: sed > 4.0
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 A free and corrected port of Red Hat's GTK+/Qt theme.
41 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
43 %package -n kde-style-QtCurve
44 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
45 Summary(pl): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
47 Requires: kdelibs >= 3.1
49 %description -n kde-style-QtCurve
50 A free and corrected port of Red Hat's GTK+/Qt theme. KDE version.
52 %description -n kde-style-QtCurve -l pl
53 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
56 %package -n gtk-theme-QtCurve
57 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
58 Summary(pl): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
60 Requires: theme-QtCurve-common = %{version}-%{release}
62 %description -n gtk-theme-QtCurve
63 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version.
65 %description -n gtk-theme-QtCurve -l pl
66 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
69 %package -n gtk2-theme-QtCurve
70 Summary: A free and corrected port of Red Hat's GTK+/Qt theme
71 Summary(pl): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
73 Requires: theme-QtCurve-common = %{version}-%{release}
75 %description -n gtk2-theme-QtCurve
76 A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version.
78 %description -n gtk2-theme-QtCurve -l pl
79 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
82 %package -n theme-QtCurve-common
83 Summary: A free and corrected port of Redhats GTK+/Qt theme - common
84 Summary(pl): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common
86 Obsoletes: theme-bluecurve-common
87 Obsoletes: gtk2-theme-bluecurve
88 Obsoletes: gtk-theme-bluecurve
89 Obsoletes: kde-style-bluecurve
90 Obsoletes: kde-theme-bluecurve
92 %description -n theme-QtCurve-common
93 A free and corrected port of Red Hat's GTK+/Qt theme.
94 Documentation and common files package.
96 %description -n theme-QtCurve-common -l pl
97 Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
98 Pakiet z dokumentacja i plikami wspó³dzielonymi.
105 cd %{name}-KDE3-%{kde_ver}
106 cp /usr/share/automake/config.sub admin
108 %{__make} -f admin/Makefile.common cvs
110 --with-qt-libraries=%{_libdir}
116 cd %{name}-Gtk1-%{gtk1_ver}
128 cd %{name}-Gtk2-%{gtk2_ver}
140 rm -rf $RPM_BUILD_ROOT
142 %{__make} -C %{name}-KDE3-%{kde_ver} install \
143 DESTDIR=$RPM_BUILD_ROOT
146 %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \
147 DESTDIR=$RPM_BUILD_ROOT
151 %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \
152 DESTDIR=$RPM_BUILD_ROOT
155 rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la
158 rm -rf $RPM_BUILD_ROOT
160 %files -n kde-style-QtCurve
161 %defattr(644,root,root,755)
162 %{_libdir}/kde3/kstyle_qtcurve_config.la
163 %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so
164 %{_libdir}/kde3/plugins/styles/*.la
165 %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
166 %{_datadir}/apps/kstyle/themes/qtcurve*.themerc
167 %{_datadir}/apps/qtcurve
170 %files -n gtk-theme-QtCurve
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so
173 %{_datadir}/themes/QtCurve/gtk
177 %files -n gtk2-theme-QtCurve
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so
180 %{_datadir}/themes/QtCurve/gtk-2.0
183 %files -n theme-QtCurve-common
184 %defattr(644,root,root,755)
185 %doc %{name}-KDE3-%{kde_ver}/{ChangeLog,README,TODO}
186 %dir %{_datadir}/themes/QtCurve