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