]>
Commit | Line | Data |
---|---|---|
7286a96e | 1 | # |
df5f2cf9 AG |
2 | # ToDo: |
3 | # - include /usr/share/themes/QtCurve/mozilla somewhere | |
4 | # | |
7286a96e | 5 | # Conditional build: |
00a3d52c KK |
6 | %bcond_with gtk # build GTK styles |
7 | %bcond_without gtk2 # don't build GTK+2 styles | |
7286a96e | 8 | # |
2f186ace KK |
9 | %define kde_ver 0.46.2 |
10 | %define gtk2_ver 0.46.2 | |
2327ea5c | 11 | %define gtk1_ver 0.42.2 |
27b2bea1 | 12 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
d7edd7b0 | 13 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
754634b4 | 14 | Name: QtCurve |
2f186ace | 15 | Version: 0.46.2 |
0935fb48 | 16 | Release: 1 |
754634b4 JB |
17 | License: GPL |
18 | Group: Themes | |
2327ea5c | 19 | Source0: http://home.freeuk.com/cpdrummond/%{name}-KDE3-%{kde_ver}.tar.gz |
2f186ace | 20 | # Source0-md5: 928ff52cdb312275ee24363501faa5e2 |
2327ea5c | 21 | Source1: http://home.freeuk.com/cpdrummond/%{name}-Gtk2-%{gtk2_ver}.tar.gz |
2f186ace | 22 | # Source1-md5: ca4827f073ba93d517522d1c65a6d8f5 |
2327ea5c KK |
23 | Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz |
24 | # Source2-md5: 8219f58493ca4e65a8fe61ee76eca522 | |
25 | Patch0: %{name}-amd64.patch | |
a6846c02 | 26 | Patch1: kde-am110.patch |
2f186ace | 27 | Patch2: kde-ac260-lt.patch |
a14cbe44 | 28 | URL: http://www.kde-look.org/content/show.php?content=40492 |
00a3d52c | 29 | BuildRequires: autoconf |
47b9c578 | 30 | BuildRequires: automake |
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 |
f7bfae83 | 36 | BuildRequires: sed > 4.0 |
754634b4 JB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
27b2bea1 | 40 | A free and corrected port of Red Hat's GTK+/Qt theme. |
754634b4 | 41 | |
d7edd7b0 | 42 | %description -l pl.UTF-8 |
27b2bea1 | 43 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
754634b4 | 44 | |
4e7ad8f7 | 45 | %package -n kde-style-QtCurve |
27b2bea1 | 46 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
d7edd7b0 | 47 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
754634b4 | 48 | Group: Themes |
387c4dbb | 49 | Requires: kdelibs >= 3.1 |
754634b4 | 50 | |
4e7ad8f7 | 51 | %description -n kde-style-QtCurve |
27b2bea1 | 52 | A free and corrected port of Red Hat's GTK+/Qt theme. KDE version. |
754634b4 | 53 | |
d7edd7b0 | 54 | %description -n kde-style-QtCurve -l pl.UTF-8 |
27b2bea1 | 55 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
27a34c4d | 56 | Wersja pod KDE. |
754634b4 | 57 | |
4e7ad8f7 | 58 | %package -n gtk-theme-QtCurve |
27b2bea1 | 59 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
d7edd7b0 | 60 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
5474a1c3 | 61 | Group: Themes |
7286a96e | 62 | Requires: theme-QtCurve-common = %{version}-%{release} |
754634b4 | 63 | |
4e7ad8f7 | 64 | %description -n gtk-theme-QtCurve |
27b2bea1 | 65 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version. |
754634b4 | 66 | |
d7edd7b0 | 67 | %description -n gtk-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 68 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 69 | Wersja pod GTK+. |
754634b4 | 70 | |
4e7ad8f7 | 71 | %package -n gtk2-theme-QtCurve |
27b2bea1 | 72 | Summary: A free and corrected port of Red Hat's GTK+/Qt theme |
d7edd7b0 | 73 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata |
5474a1c3 | 74 | Group: Themes |
7286a96e | 75 | Requires: theme-QtCurve-common = %{version}-%{release} |
754634b4 | 76 | |
4e7ad8f7 | 77 | %description -n gtk2-theme-QtCurve |
27b2bea1 | 78 | A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version. |
754634b4 | 79 | |
d7edd7b0 | 80 | %description -n gtk2-theme-QtCurve -l pl.UTF-8 |
27b2bea1 | 81 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
4b59ebdb | 82 | Wersja pod GTK+2. |
754634b4 | 83 | |
4e7ad8f7 | 84 | %package -n theme-QtCurve-common |
4b59ebdb | 85 | Summary: A free and corrected port of Redhats GTK+/Qt theme - common |
d7edd7b0 | 86 | Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common |
5474a1c3 | 87 | Group: Themes |
4e7ad8f7 | 88 | Obsoletes: theme-bluecurve-common |
5474a1c3 | 89 | Obsoletes: gtk2-theme-bluecurve |
90 | Obsoletes: gtk-theme-bluecurve | |
91 | Obsoletes: kde-style-bluecurve | |
92 | Obsoletes: kde-theme-bluecurve | |
6b908541 | 93 | |
4e7ad8f7 | 94 | %description -n theme-QtCurve-common |
27b2bea1 | 95 | A free and corrected port of Red Hat's GTK+/Qt theme. |
27a34c4d | 96 | Documentation and common files package. |
754634b4 | 97 | |
d7edd7b0 | 98 | %description -n theme-QtCurve-common -l pl.UTF-8 |
27b2bea1 | 99 | Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata. |
d7edd7b0 | 100 | Pakiet z dokumentacja i plikami współdzielonymi. |
754634b4 JB |
101 | |
102 | %prep | |
2327ea5c KK |
103 | %setup -q -c -a1 -a2 |
104 | %patch0 -p1 | |
2f186ace KK |
105 | cd %{name}-KDE3-%{kde_ver} |
106 | %patch1 -p1 | |
107 | %patch2 -p1 | |
754634b4 JB |
108 | |
109 | %build | |
2327ea5c | 110 | cd %{name}-KDE3-%{kde_ver} |
fa498650 | 111 | cp /usr/share/automake/config.sub admin |
112 | ||
00a3d52c | 113 | %{__make} -f admin/Makefile.common cvs |
b15ef667 JB |
114 | %configure \ |
115 | --with-qt-libraries=%{_libdir} | |
fa498650 | 116 | |
754634b4 | 117 | %{__make} |
2327ea5c KK |
118 | cd - |
119 | ||
120 | %if %{with gtk} | |
121 | cd %{name}-Gtk1-%{gtk1_ver} | |
122 | %{__libtoolize} | |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %{__autoheader} | |
126 | %{__automake} | |
127 | %configure | |
128 | %{__make} | |
129 | cd - | |
130 | %endif | |
131 | ||
132 | %if %{with gtk2} | |
133 | cd %{name}-Gtk2-%{gtk2_ver} | |
134 | %{__libtoolize} | |
135 | %{__aclocal} | |
136 | %{__autoconf} | |
137 | %{__autoheader} | |
138 | %{__automake} | |
139 | %configure | |
140 | %{__make} | |
141 | cd - | |
142 | %endif | |
754634b4 JB |
143 | |
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
2327ea5c | 147 | %{__make} -C %{name}-KDE3-%{kde_ver} install \ |
27a34c4d | 148 | DESTDIR=$RPM_BUILD_ROOT |
754634b4 | 149 | |
2327ea5c KK |
150 | %if %{with gtk} |
151 | %{__make} -C %{name}-Gtk1-%{gtk1_ver} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | %endif | |
154 | ||
155 | %if %{with gtk2} | |
156 | %{__make} -C %{name}-Gtk2-%{gtk2_ver} install \ | |
157 | DESTDIR=$RPM_BUILD_ROOT | |
158 | %endif | |
159 | ||
7286a96e JB |
160 | rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la |
161 | ||
754634b4 JB |
162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
4e7ad8f7 | 165 | %files -n kde-style-QtCurve |
754634b4 | 166 | %defattr(644,root,root,755) |
a5ccfc6f | 167 | %{_libdir}/kde3/kstyle_qtcurve_config.la |
168 | %attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so | |
754634b4 JB |
169 | %{_libdir}/kde3/plugins/styles/*.la |
170 | %attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so | |
6b908541 | 171 | %{_datadir}/apps/kstyle/themes/qtcurve*.themerc |
301f276f | 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 |
00a3d52c | 186 | %endif |
754634b4 | 187 | |
4e7ad8f7 | 188 | %files -n theme-QtCurve-common |
754634b4 | 189 | %defattr(644,root,root,755) |
2327ea5c KK |
190 | %doc %{name}-KDE3-%{kde_ver}/{ChangeLog,README,TODO} |
191 | %dir %{_datadir}/themes/QtCurve |