]>
Commit | Line | Data |
---|---|---|
e2138fbb | 1 | # TODO: |
e78c8e0f ER |
2 | # - kde4 |
3 | # - gtk1 no longer updated. drop? | |
4 | # - include /usr/share/themes/QtCurve/mozilla somewhere | |
5 | # - unpackaged: | |
df5f2cf9 | 6 | # |
7286a96e | 7 | # Conditional build: |
00a3d52c KK |
8 | %bcond_with gtk # build GTK styles |
9 | %bcond_without gtk2 # don't build GTK+2 styles | |
7286a96e | 10 | # |
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 |
e2138fbb | 17 | Version: 0.55.1 |
0935fb48 | 18 | Release: 1 |
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} |
387c4dbb | 35 | 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 |
5474a1c3 | 64 | Group: Themes |
7286a96e | 65 | Requires: theme-QtCurve-common = %{version}-%{release} |
754634b4 | 66 | |
4e7ad8f7 | 67 | %description -n gtk-theme-QtCurve |
27b2bea1 | 68 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version. |
754634b4 | 69 | |
d7edd7b0 | 70 | %description -n gtk-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 71 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 72 | Wersja pod GTK+. |
754634b4 | 73 | |
4e7ad8f7 | 74 | %package -n gtk2-theme-QtCurve |
27b2bea1 | 75 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
90b035bc | 76 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
5474a1c3 | 77 | Group: Themes |
7286a96e | 78 | Requires: theme-QtCurve-common = %{version}-%{release} |
754634b4 | 79 | |
4e7ad8f7 | 80 | %description -n gtk2-theme-QtCurve |
27b2bea1 | 81 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version. |
754634b4 | 82 | |
d7edd7b0 | 83 | %description -n gtk2-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 84 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 85 | Wersja pod GTK+2. |
754634b4 | 86 | |
4e7ad8f7 | 87 | %package -n theme-QtCurve-common |
4b59ebdb | 88 | Summary: A free and corrected port of Redhats GTK+/Qt theme - common |
90b035bc | 89 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common |
5474a1c3 | 90 | Group: Themes |
5474a1c3 | 91 | Obsoletes: gtk-theme-bluecurve |
e78c8e0f | 92 | Obsoletes: gtk2-theme-bluecurve |
5474a1c3 | 93 | Obsoletes: kde-style-bluecurve |
94 | Obsoletes: kde-theme-bluecurve | |
e78c8e0f | 95 | Obsoletes: theme-bluecurve-common |
6b908541 | 96 | |
4e7ad8f7 | 97 | %description -n theme-QtCurve-common |
e78c8e0f ER |
98 | A free and corrected port of Red Hat's GTK+/Qt theme. Documentation |
99 | and common files package. | |
754634b4 | 100 | |
d7edd7b0 | 101 | %description -n theme-QtCurve-common -l pl.UTF-8 |
27b2bea1 | 102 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
d7edd7b0 | 103 | Pakiet z dokumentacja i plikami współdzielonymi. |
754634b4 JB |
104 | |
105 | %prep | |
e78c8e0f | 106 | %setup -q -c %{?with_gtk2:-a1} %{?with_gtk:-a2} |
4f778ef9 ER |
107 | %if %{with gtk2} |
108 | cd %{name}-Gtk2-%{gtk2_ver} | |
109 | %patch0 -p1 | |
2dab1e00 | 110 | %patch1 -p0 |
4f778ef9 ER |
111 | cd - |
112 | %endif | |
754634b4 JB |
113 | |
114 | %build | |
2327ea5c | 115 | cd %{name}-KDE3-%{kde_ver} |
e78c8e0f ER |
116 | %cmake \ |
117 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
118 | . | |
754634b4 | 119 | %{__make} |
2327ea5c KK |
120 | cd - |
121 | ||
122 | %if %{with gtk} | |
123 | cd %{name}-Gtk1-%{gtk1_ver} | |
124 | %{__libtoolize} | |
125 | %{__aclocal} | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
129 | %configure | |
130 | %{__make} | |
131 | cd - | |
132 | %endif | |
133 | ||
134 | %if %{with gtk2} | |
135 | cd %{name}-Gtk2-%{gtk2_ver} | |
e78c8e0f ER |
136 | %cmake \ |
137 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
138 | . | |
2327ea5c KK |
139 | %{__make} |
140 | cd - | |
141 | %endif | |
754634b4 JB |
142 | |
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
2327ea5c | 146 | %{__make} -C %{name}-KDE3-%{kde_ver} install \ |
27a34c4d | 147 | DESTDIR=$RPM_BUILD_ROOT |
754634b4 | 148 | |
2327ea5c KK |
149 | %if %{with gtk} |
150 | %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \ | |
151 | DESTDIR=$RPM_BUILD_ROOT | |
152 | %endif | |
153 | ||
154 | %if %{with gtk2} | |
155 | %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | %endif | |
158 | ||
7286a96e JB |
159 | rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la |
160 | ||
754634b4 JB |
161 | %clean |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
4e7ad8f7 | 164 | %files -n kde-style-QtCurve |
754634b4 | 165 | %defattr(644,root,root,755) |
a5ccfc6f | 166 | %{_libdir}/kde3/kstyle_qtcurve_config.la |
167 | %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so | |
e78c8e0f | 168 | #%{_libdir}/kde3/plugins/styles/*.la |
754634b4 | 169 | %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so |
6b908541 | 170 | %{_datadir}/apps/kstyle/themes/qtcurve*.themerc |
e78c8e0f | 171 | %{_datadir}/apps/kstyle/themes/qtc_klearlooks.themerc |
19458cf5 | 172 | %{_datadir}/apps/QtCurve |
754634b4 | 173 | |
5890c07d | 174 | %if %{with gtk} |
4e7ad8f7 | 175 | %files -n gtk-theme-QtCurve |
754634b4 | 176 | %defattr(644,root,root,755) |
754634b4 | 177 | %attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so |
2327ea5c | 178 | %{_datadir}/themes/QtCurve/gtk |
00a3d52c | 179 | %endif |
754634b4 | 180 | |
00a3d52c | 181 | %if %{with gtk2} |
4e7ad8f7 | 182 | %files -n gtk2-theme-QtCurve |
754634b4 | 183 | %defattr(644,root,root,755) |
754634b4 | 184 | %attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so |
2327ea5c | 185 | %{_datadir}/themes/QtCurve/gtk-2.0 |
e78c8e0f | 186 | %{_datadir}/themes/QtCurve/mozilla |
00a3d52c | 187 | %endif |
754634b4 | 188 | |
4e7ad8f7 | 189 | %files -n theme-QtCurve-common |
754634b4 | 190 | %defattr(644,root,root,755) |
2327ea5c KK |
191 | %doc %{name}-KDE3-%{kde_ver}/{ChangeLog,README,TODO} |
192 | %dir %{_datadir}/themes/QtCurve |