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: autoconf
21 BuildRequires: automake
22 BuildRequires: gtk+2-devel >= 1:2.0.0
23 BuildRequires: kdelibs-devel
24 BuildRequires: libbonoboui-devel
25 BuildRequires: pkgconfig
26 BuildRequires: qt-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This GTK+ theme engine uses the currently selected Qt style to do it's
31 drawing. Basically, it makes your GTK+ apps look like Qt ones.
34 Ten silnik graficzny do rysowania kontrolek GTK+ u¿ywa aktualnie
35 wybranego stylu Qt. Inaczej mówi±c - sprawia, ¿e aplikacje GTK+
36 wygl±daj± jak aplikacje Qt.
39 %setup -q -n gtk-qt-engine-%{version}
45 %{__make} -f admin/Makefile.common cvs
48 export QTLIB=%{_libdir}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 sed -i 's/Categories=.*/Categories=X-KDE-settings-looknfeel;/' \
60 $RPM_BUILD_ROOT%{_desktopdir}/kcmgtk-xdg.desktop
62 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_libdir}/gtk-2.0/*/engines/*.so
72 %{_datadir}/gtk-qt-engine/
73 %{_desktopdir}/*.desktop
74 %{_libdir}/kde3/kcm_kcmgtk.la
75 %attr(755,root,root) %{_libdir}/kde3/kcm_kcmgtk.so