]> git.pld-linux.org Git - packages/QtCurve.git/blame_incremental - QtCurve.spec
- 1.3.1 (and 1.3.0)
[packages/QtCurve.git] / QtCurve.spec
... / ...
CommitLineData
1# TODO:
2# - gtk1 no longer updated. drop after dropping last gtk+ 1.x app
3#
4# Conditional build:
5%bcond_without gtk # don't build GTK+ styles
6%bcond_without gtk2 # don't build GTK+2 styles
7%bcond_with kde3 # build KDE3 styles
8%bcond_without kde4 # don't build KDE4 styles
9
10%define ver 1.3.1
11%define kde4_ver 1.3.1
12%define kde3_ver 1.3.1
13%define gtk2_ver 1.3.0
14%define gtk1_ver 0.42.2
15Summary: A free and corrected port of Red Hat's GTK+/Qt theme
16Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
17Name: QtCurve
18Version: %{ver}
19Release: 1
20License: GPL
21Group: Themes
22Source0: http://craigd.wikispaces.com/file/view/%{name}-KDE3-%{kde3_ver}.tar.bz2
23# Source0-md5: e183a369f1bc4d62b8bf45567f570e2b
24Source1: http://craigd.wikispaces.com/file/view/%{name}-Gtk2-%{gtk2_ver}.tar.bz2
25# Source1-md5: 8cd0ba8d24e7e06799e62b166bd5cd9b
26Source2: http://home.freeuk.com/cpdrummond/%{name}-Gtk1-%{gtk1_ver}.tar.gz
27# Source2-md5: 8219f58493ca4e65a8fe61ee76eca522
28Source3: http://craigd.wikispaces.com/file/view/%{name}-KDE4-%{kde4_ver}.tar.bz2
29# Source3-md5: 8c634012936e49125bded91f2dc7c1e1
30Patch0: %{name}-Gtk1-lib64.patch
31URL: http://www.kde-look.org/content/show.php?content=40492
32%{?with_kde4:BuildRequires: Qt3Support-devel}
33%{?with_kde4:BuildRequires: QtSvg-devel}
34BuildRequires: autoconf
35BuildRequires: automake
36%{?with_kde4:BuildRequires: automoc4}
37BuildRequires: cmake
38%{?with_gtk:BuildRequires: gtk+-devel}
39%{?with_gtk2:BuildRequires: gtk+2-devel}
40%{?with_kde4:BuildRequires: kde4-kdebase-workspace-devel}
41%{?with_kde4:BuildRequires: kde4-kdelibs-devel}
42%{?with_kde4:BuildRequires: kde4-kdelibs}
43%{?with_kde3:BuildRequires: kdelibs-devel >= 3.1}
44BuildRequires: libtool
45BuildRequires: pkgconfig
46%{?with_kde4:BuildRequires: qt4-build}
47%{?with_kde4:BuildRequires: qt4-qmake}
48BuildRequires: rpmbuild(macros) >= 1.293
49BuildRequires: sed > 4.0
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53A free and corrected port of Red Hat's GTK+/Qt theme.
54
55%description -l pl.UTF-8
56Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
57
58%package -n kde-style-QtCurve
59Summary: A free and corrected port of Red Hat's GTK+/Qt theme
60Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
61Version: %{kde3_ver}
62Group: Themes
63Requires: kdelibs >= 3.1
64
65%description -n kde-style-QtCurve
66A free and corrected port of Red Hat's GTK+/Qt theme. KDE3 version.
67
68%description -n kde-style-QtCurve -l pl.UTF-8
69Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
70Wersja pod KDE3.
71
72%package -n kde4-style-QtCurve
73Summary: A free and corrected port of Red Hat's GTK+/Qt theme
74Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
75Version: %{kde4_ver}
76Group: Themes
77Requires: kde4-kdebase >= 4.3.4
78
79%description -n kde4-style-QtCurve
80A free and corrected port of Red Hat's GTK+/Qt theme. KDE4 version.
81
82%description -n kde4-style-QtCurve -l pl.UTF-8
83Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
84Wersja pod KDE4.
85
86%package -n gtk-theme-QtCurve
87Summary: A free and corrected port of Red Hat's GTK+/Qt theme
88Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
89Version: %{gtk1_ver}
90Group: Themes
91Requires: theme-QtCurve-common = %{ver}-%{release}
92
93%description -n gtk-theme-QtCurve
94A free and corrected port of Red Hat's GTK+/Qt theme. GTK+ version.
95
96%description -n gtk-theme-QtCurve -l pl.UTF-8
97Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
98Wersja pod GTK+.
99
100%package -n gtk2-theme-QtCurve
101Summary: A free and corrected port of Red Hat's GTK+/Qt theme
102Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata
103Version: %{gtk2_ver}
104Group: Themes
105Requires: theme-QtCurve-common = %{ver}-%{release}
106
107%description -n gtk2-theme-QtCurve
108A free and corrected port of Red Hat's GTK+/Qt theme. GTK+2 version.
109
110%description -n gtk2-theme-QtCurve -l pl.UTF-8
111Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
112Wersja pod GTK+2.
113
114%package -n theme-QtCurve-common
115Summary: A free and corrected port of Redhats GTK+/Qt theme - common
116Summary(pl.UTF-8): Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata - common
117Version: %{ver}
118Group: Themes
119Obsoletes: gtk-theme-bluecurve
120Obsoletes: gtk2-theme-bluecurve
121Obsoletes: kde-style-bluecurve
122Obsoletes: kde-theme-bluecurve
123Obsoletes: theme-bluecurve-common
124
125%description -n theme-QtCurve-common
126A free and corrected port of Red Hat's GTK+/Qt theme. Documentation
127and common files package.
128
129%description -n theme-QtCurve-common -l pl.UTF-8
130Darmowa i poprawiona wersja motywu GTK+/Qt zrobionego przez Red Hata.
131Pakiet z dokumentacja i plikami współdzielonymi.
132
133%prep
134%setup -q -c -D %{?with_kde3:-a0} %{?with_gtk2:-a1} %{?with_gtk:-a2} %{?with_kde4:-a3}
135
136%if %{with gtk}
137%if "%{_lib}" == "lib64"
138cd %{name}-Gtk1-%{gtk1_ver}
139%patch0 -p1
140cd -
141%endif
142%endif
143
144%build
145%if %{with kde3}
146cd %{name}-KDE3-%{kde3_ver}
147%cmake \
148 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
149 .
150
151%{__make}
152cd -
153%endif
154
155%if %{with kde4}
156cd %{name}-KDE4-%{kde4_ver}
157%cmake \
158 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
159 .
160
161%{__make}
162cd -
163%endif
164
165%if %{with gtk}
166cd %{name}-Gtk1-%{gtk1_ver}
167rm -f acinclude.m4
168%{__libtoolize}
169%{__aclocal}
170%{__autoconf}
171%{__autoheader}
172%{__automake}
173%configure
174%{__make}
175cd -
176%endif
177
178%if %{with gtk2}
179cd %{name}-Gtk2-%{gtk2_ver}
180%cmake \
181 -DQTC_ADD_EVENT_FILTER=true \
182 -DQTC_MODIFY_MOZILLA=true \
183 -DQTC_MODIFY_MOZILLA_USER_JS=true \
184 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
185 .
186
187%{__make}
188cd -
189%endif
190
191%install
192rm -rf $RPM_BUILD_ROOT
193
194%if %{with kde3}
195%{__make} -C %{name}-KDE3-%{kde3_ver} install \
196 DESTDIR=$RPM_BUILD_ROOT
197%endif
198
199%if %{with kde4}
200%{__make} -C %{name}-KDE4-%{kde4_ver} install \
201 DESTDIR=$RPM_BUILD_ROOT
202%endif
203
204%if %{with gtk}
205%{__make} -C %{name}-Gtk1-%{gtk1_ver} install \
206 DESTDIR=$RPM_BUILD_ROOT
207%endif
208
209%if %{with gtk2}
210%{__make} -C %{name}-Gtk2-%{gtk2_ver} install \
211 DESTDIR=$RPM_BUILD_ROOT
212
213chmod a+x $RPM_BUILD_ROOT%{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
214%endif
215
216rm -f $RPM_BUILD_ROOT{%{_libdir}/gtk/themes/engines,%{_libdir}/gtk-2.0/*/*}/*.la
217
218%clean
219rm -rf $RPM_BUILD_ROOT
220
221%if %{with kde3}
222%files -n kde-style-QtCurve
223%defattr(644,root,root,755)
224%{_libdir}/kde3/kstyle_qtcurve_config.la
225%attr(755,root,root) %{_libdir}/kde3/kstyle_qtcurve_config.so
226%attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
227%{_datadir}/apps/kstyle/themes/qtcurve*.themerc
228%{_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc
229%{_datadir}/apps/QtCurve
230%endif
231
232%if %{with kde4}
233%files -n kde4-style-QtCurve
234%defattr(644,root,root,755)
235%attr(755,root,root) %{_libdir}/kde4/kstyle_qtcurve_config.so
236%attr(755,root,root) %{_libdir}/kde4/kwin3_qtcurve.so
237%attr(755,root,root) %{_libdir}/kde4/kwin_qtcurve_config.so
238%attr(755,root,root) %{_libdir}/kde4/plugins/styles/qtcurve.so
239%{_datadir}/apps/QtCurve
240%{_datadir}/apps/color-schemes/QtCurve.colors
241%{_datadir}/apps/kstyle/themes/qtcurve.themerc
242%{_datadir}/apps/kwin/qtcurve.desktop
243%endif
244
245%if %{with gtk}
246%files -n gtk-theme-QtCurve
247%defattr(644,root,root,755)
248%attr(755,root,root) %{_libdir}/gtk/themes/engines/*.so
249%{_datadir}/themes/QtCurve/gtk
250%endif
251
252%if %{with gtk2}
253%files -n gtk2-theme-QtCurve
254%defattr(644,root,root,755)
255%attr(755,root,root) %{_libdir}/gtk-2.0/*/*/*.so
256%dir %{_datadir}/themes/QtCurve/gtk-2.0
257%{_datadir}/themes/QtCurve/gtk-2.0/gtkrc
258%{_datadir}/themes/QtCurve/gtk-2.0/icons3
259%{_datadir}/themes/QtCurve/gtk-2.0/icons4
260%{_datadir}/themes/QtCurve/gtk-2.0/kdeglobals
261%attr(755,root,root) %{_datadir}/themes/QtCurve/gtk-2.0/map_kde_icons.pl
262%dir %{_datadir}/themes/QtCurve/mozilla
263%{_datadir}/themes/QtCurve/mozilla/QtCurve.css
264%{_datadir}/themes/QtCurve/mozilla/QtCurve-KDEButtonOrder.css
265%{_datadir}/themes/QtCurve/mozilla/preferences-rev.xml
266%endif
267
268%files -n theme-QtCurve-common
269%defattr(644,root,root,755)
270%doc %{name}-KDE3-%{kde3_ver}/ChangeLog
271%doc %{name}-KDE3-%{kde3_ver}/README
272%doc %{name}-KDE3-%{kde3_ver}/TODO
273%dir %{_datadir}/themes/QtCurve
This page took 0.065055 seconds and 4 git commands to generate.