2 # - kde control panel applet doesn't get found
3 Summary: A GTK+ theme engine that uses Qt for drawing
4 Summary(pl): Silnik graficzny wykorzystuj±cy Qt do rysowania kontrolek GTK+
5 Name: gtk2-theme-engine-qt
10 Source0: http://www.freedesktop.org/~davidsansome/gtk-qt-engine-%{version}.tar.bz2
11 # Source0-md5: 9c02c95a6e8d304b1f2801429759e1c0
12 Patch0: %{name}-black-menus.patch
13 Patch1: %{name}-kcm-fixinstallationdir.patch
14 # don't dup GTK-QT in kde menu(s)
15 Patch2: %{name}-dt.patch
16 # segfault in libqtengine.so drawing notebook
17 # https://bugs.freedesktop.org/show_bug.cgi?id=3919
18 Patch3: %{name}-notebook.patch
19 URL: http://www.freedesktop.org/Software/gtk-qt
20 BuildRequires: automake
21 BuildRequires: gtk+2-devel >= 1:2.0.0
22 BuildRequires: kdelibs-devel
23 BuildRequires: libbonoboui-devel
24 BuildRequires: pkgconfig
25 BuildRequires: qt-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This GTK+ theme engine uses the currently selected Qt style to do it's
30 drawing. Basically, it makes your GTK+ apps look like Qt ones.
33 Ten silnik graficzny do rysowania kontrolek GTK+ u¿ywa aktualnie
34 wybranego stylu Qt. Inaczej mówi±c - sprawia, ¿e aplikacje GTK+
35 wygl±daj± jak aplikacje Qt.
38 %setup -q -n gtk-qt-engine-%{version}
44 %{__make} -f admin/Makefile.common cvs
47 export QTLIB=%{_libdir}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 sed -i 's/Categories=.*/Categories=X-KDE-settings-looknfeel;/' \
59 $RPM_BUILD_ROOT%{_desktopdir}/kcmgtk-xdg.desktop
61 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.4.*/engines/*.la
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_libdir}/gtk-2.0/2.4.*/engines/*.so
71 %{_datadir}/gtk-qt-engine/
72 %{_desktopdir}/*.desktop
73 %{_libdir}/kde3/kcm_kcmgtk.la
74 %attr(755,root,root) %{_libdir}/kde3/kcm_kcmgtk.so