]>
Commit | Line | Data |
---|---|---|
e2138fbb | 1 | # TODO: |
e78c8e0f | 2 | # - kde4 |
4dafcdae | 3 | # - gtk1 no longer updated. drop after dropping last gtk+ 1.x app |
df5f2cf9 | 4 | # |
7286a96e | 5 | # Conditional build: |
ed28eafc | 6 | %bcond_without gtk # don't build GTK+ styles |
00a3d52c | 7 | %bcond_without gtk2 # don't build GTK+2 styles |
15ae11f4 | 8 | %bcond_without kde # don't build KDE styles |
7286a96e | 9 | # |
84a6d42d BZ |
10 | %define ver 0.59.5 |
11 | %define kde_ver 0.59.5 | |
12 | %define gtk2_ver 0.59.7 | |
2327ea5c | 13 | %define gtk1_ver 0.42.2 |
27b2bea1 | 14 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 15 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
754634b4 | 16 | Name: QtCurve |
15ae11f4 | 17 | Version: %{ver} |
5e47f7e5 | 18 | Release: 1 |
754634b4 JB |
19 | License: GPL |
20 | Group: Themes | |
e2138fbb | 21 | Source0: http://home.freeuk.com/cpdrummond/%{name}-KDE3-%{kde_ver}.tar.bz2 |
84a6d42d | 22 | # Source0-md5: e6e721a38650c4c453c686c5d871862d |
e2138fbb | 23 | Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.bz2 |
84a6d42d | 24 | # Source1-md5: afa418c3d22091fb4ef9397de0195a23 |
2327ea5c KK |
25 | Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz |
26 | # Source2-md5: 8219f58493ca4e65a8fe61ee76eca522 | |
2dab1e00 ER |
27 | Patch0: %{name}-Gtk2-userjs.patch |
28 | Patch1: %{name}-Gtk2-mailto.patch | |
f4dbcdaf | 29 | Patch2: %{name}-Gtk1-lib64.patch |
a14cbe44 | 30 | URL: http://www.kde-look.org/content/show.php?content=40492 |
00a3d52c | 31 | BuildRequires: autoconf |
47b9c578 | 32 | BuildRequires: automake |
e78c8e0f | 33 | BuildRequires: cmake |
b7ff1e84 | 34 | %{?with_gtk:BuildRequires: gtk+-devel} |
00a3d52c | 35 | %{?with_gtk2:BuildRequires: gtk+2-devel} |
15ae11f4 | 36 | %{?with_kde:BuildRequires: kdelibs-devel >= 3.1} |
2327ea5c | 37 | BuildRequires: libtool |
00a3d52c | 38 | BuildRequires: pkgconfig |
e78c8e0f | 39 | BuildRequires: rpmbuild(macros) >= 1.293 |
f7bfae83 | 40 | BuildRequires: sed > 4.0 |
754634b4 JB |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
27b2bea1 | 44 | A free and corrected port of Red Hat's GTK+/Qt theme. |
754634b4 | 45 | |
d7edd7b0 | 46 | %description -l pl.UTF-8 |
27b2bea1 | 47 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
754634b4 | 48 | |
4e7ad8f7 | 49 | %package -n kde-style-QtCurve |
27b2bea1 | 50 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 51 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
c9dfc0cd | 52 | Version: %{kde_ver} |
754634b4 | 53 | Group: Themes |
387c4dbb | 54 | Requires: kdelibs >= 3.1 |
754634b4 | 55 | |
4e7ad8f7 | 56 | %description -n kde-style-QtCurve |
27b2bea1 | 57 | A free and corrected port of Red Hat's GTK+/Qt theme. KDE version. |
754634b4 | 58 | |
d7edd7b0 | 59 | %description -n kde-style-QtCurve -l pl.UTF-8 |
27b2bea1 | 60 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
27a34c4d | 61 | Wersja pod KDE. |
754634b4 | 62 | |
4e7ad8f7 | 63 | %package -n gtk-theme-QtCurve |
27b2bea1 | 64 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 65 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
15ae11f4 | 66 | Version: %{gtk1_ver} |
5474a1c3 | 67 | Group: Themes |
15ae11f4 | 68 | Requires: theme-QtCurve-common = %{ver}-%{release} |
754634b4 | 69 | |
4e7ad8f7 | 70 | %description -n gtk-theme-QtCurve |
27b2bea1 | 71 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version. |
754634b4 | 72 | |
d7edd7b0 | 73 | %description -n gtk-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 74 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 75 | Wersja pod GTK+. |
754634b4 | 76 | |
4e7ad8f7 | 77 | %package -n gtk2-theme-QtCurve |
27b2bea1 | 78 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 79 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
15ae11f4 | 80 | Version: %{gtk2_ver} |
5474a1c3 | 81 | Group: Themes |
15ae11f4 | 82 | Requires: theme-QtCurve-common = %{ver}-%{release} |
754634b4 | 83 | |
4e7ad8f7 | 84 | %description -n gtk2-theme-QtCurve |
27b2bea1 | 85 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version. |
754634b4 | 86 | |
d7edd7b0 | 87 | %description -n gtk2-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 88 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 89 | Wersja pod GTK+2. |
754634b4 | 90 | |
4e7ad8f7 | 91 | %package -n theme-QtCurve-common |
4b59ebdb | 92 | Summary: A free and corrected port of Redhats GTK+/Qt theme - common |
90b035bc | 93 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common |
c9dfc0cd | 94 | Version: %{ver} |
5474a1c3 | 95 | Group: Themes |
5474a1c3 | 96 | Obsoletes: gtk-theme-bluecurve |
e78c8e0f | 97 | Obsoletes: gtk2-theme-bluecurve |
5474a1c3 | 98 | Obsoletes: kde-style-bluecurve |
99 | Obsoletes: kde-theme-bluecurve | |
e78c8e0f | 100 | Obsoletes: theme-bluecurve-common |
6b908541 | 101 | |
4e7ad8f7 | 102 | %description -n theme-QtCurve-common |
e78c8e0f ER |
103 | A free and corrected port of Red Hat's GTK+/Qt theme. Documentation |
104 | and common files package. | |
754634b4 | 105 | |
d7edd7b0 | 106 | %description -n theme-QtCurve-common -l pl.UTF-8 |
27b2bea1 | 107 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
d7edd7b0 | 108 | Pakiet z dokumentacja i plikami współdzielonymi. |
754634b4 JB |
109 | |
110 | %prep | |
15ae11f4 | 111 | %setup -q -c -D %{?with_kde:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2} |
4f778ef9 ER |
112 | %if %{with gtk2} |
113 | cd %{name}-Gtk2-%{gtk2_ver} | |
114 | %patch0 -p1 | |
2dab1e00 | 115 | %patch1 -p0 |
4f778ef9 ER |
116 | cd - |
117 | %endif | |
754634b4 | 118 | |
f4dbcdaf | 119 | %if %{with gtk} |
120 | %if "%{_lib}" == "lib64" | |
121 | cd %{name}-Gtk1-%{gtk1_ver} | |
122 | %patch2 -p1 | |
123 | cd - | |
124 | %endif | |
125 | %endif | |
126 | ||
127 | ||
754634b4 | 128 | %build |
15ae11f4 | 129 | %if %{with kde} |
2327ea5c | 130 | cd %{name}-KDE3-%{kde_ver} |
e78c8e0f ER |
131 | %cmake \ |
132 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
133 | . | |
754634b4 | 134 | %{__make} |
2327ea5c | 135 | cd - |
15ae11f4 | 136 | %endif |
2327ea5c KK |
137 | |
138 | %if %{with gtk} | |
139 | cd %{name}-Gtk1-%{gtk1_ver} | |
140 | %{__libtoolize} | |
141 | %{__aclocal} | |
142 | %{__autoconf} | |
143 | %{__autoheader} | |
144 | %{__automake} | |
145 | %configure | |
146 | %{__make} | |
147 | cd - | |
148 | %endif | |
149 | ||
150 | %if %{with gtk2} | |
151 | cd %{name}-Gtk2-%{gtk2_ver} | |
e78c8e0f | 152 | %cmake \ |
84390b5c ER |
153 | -DQTC_ADD_EVENT_FILTER=true \ |
154 | -DQTC_MODIFY_MOZILLA=true \ | |
155 | -DQTC_MODIFY_MOZILLA_USER_JS=true \ | |
e78c8e0f ER |
156 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
157 | . | |
2327ea5c KK |
158 | %{__make} |
159 | cd - | |
160 | %endif | |
754634b4 JB |
161 | |
162 | %install | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
15ae11f4 | 165 | %if %{with kde} |
2327ea5c | 166 | %{__make} -C %{name}-KDE3-%{kde_ver} install \ |
27a34c4d | 167 | DESTDIR=$RPM_BUILD_ROOT |
15ae11f4 | 168 | %endif |
754634b4 | 169 | |
2327ea5c KK |
170 | %if %{with gtk} |
171 | %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \ | |
172 | DESTDIR=$RPM_BUILD_ROOT | |
173 | %endif | |
174 | ||
175 | %if %{with gtk2} | |
176 | %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \ | |
177 | DESTDIR=$RPM_BUILD_ROOT | |
2327ea5c | 178 | |
84390b5c ER |
179 | chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl |
180 | chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/mozilla/mailto.sh | |
15ae11f4 | 181 | %endif |
84390b5c | 182 | |
7286a96e JB |
183 | rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la |
184 | ||
754634b4 JB |
185 | %clean |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
15ae11f4 | 188 | %if %{with kde} |
4e7ad8f7 | 189 | %files -n kde-style-QtCurve |
754634b4 | 190 | %defattr(644,root,root,755) |
a5ccfc6f | 191 | %{_libdir}/kde3/kstyle_qtcurve_config.la |
192 | %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so | |
754634b4 | 193 | %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so |
6b908541 | 194 | %{_datadir}/apps/kstyle/themes/qtcurve*.themerc |
e78c8e0f | 195 | %{_datadir}/apps/kstyle/themes/qtc_klearlooks.themerc |
19458cf5 | 196 | %{_datadir}/apps/QtCurve |
15ae11f4 | 197 | %endif |
754634b4 | 198 | |
5890c07d | 199 | %if %{with gtk} |
4e7ad8f7 | 200 | %files -n gtk-theme-QtCurve |
754634b4 | 201 | %defattr(644,root,root,755) |
754634b4 | 202 | %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so |
2327ea5c | 203 | %{_datadir}/themes/QtCurve/gtk |
00a3d52c | 204 | %endif |
754634b4 | 205 | |
00a3d52c | 206 | %if %{with gtk2} |
4e7ad8f7 | 207 | %files -n gtk2-theme-QtCurve |
754634b4 | 208 | %defattr(644,root,root,755) |
754634b4 | 209 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so |
84390b5c ER |
210 | %dir %{_datadir}/themes/QtCurve/gtk-2.0 |
211 | %{_datadir}/themes/QtCurve/gtk-2.0/gtkrc | |
212 | %{_datadir}/themes/QtCurve/gtk-2.0/icons3 | |
213 | %{_datadir}/themes/QtCurve/gtk-2.0/icons4 | |
214 | %attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl | |
215 | %dir %{_datadir}/themes/QtCurve/mozilla | |
216 | %{_datadir}/themes/QtCurve/mozilla/QtCurve.css | |
217 | %{_datadir}/themes/QtCurve/mozilla/firefox-user.js | |
218 | %{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml | |
219 | %attr(755,root,root) %{_datadir}/themes/QtCurve/mozilla/mailto.sh | |
00a3d52c | 220 | %endif |
754634b4 | 221 | |
4e7ad8f7 | 222 | %files -n theme-QtCurve-common |
754634b4 | 223 | %defattr(644,root,root,755) |
84a6d42d BZ |
224 | %doc %{name}-KDE3-%{kde_ver}/ChangeLog |
225 | %doc %{name}-KDE3-%{kde_ver}/README | |
226 | %doc %{name}-KDE3-%{kde_ver}/TODO | |
2327ea5c | 227 | %dir %{_datadir}/themes/QtCurve |