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