# Fedora package review: http://bugzilla.redhat.com/530342
Summary: Configure the appearance of GTK apps in KDE
Name: kcm-gtk
Version: 0.5.1
Release: 2%{?dist}
License: GPLv2+
Group: User Interface/Desktops
URL: https://launchpad.net/kcm-gtk
Source0: http://launchpad.net/kcm-gtk/trunk/0.5.1/+download/kcm-gtk_%{version}.orig.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
## upstreamable patches
# Categories += Settings, else doesn't appear in systemsettings anywhere (?)
Patch50: kcm-gtk-0.5.1-settings_category.patch
%if 0%{?fedora} > 11
Obsoletes: gtk-qt-engine <= 1:1.1
%endif
BuildRequires: kdelibs4-devel
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
%description
This is a System Settings configuration module for configuring the
appearance of GTK apps in KDE.
%prep
%setup -q
%patch50 -p1 -b .settings_category
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
rm -rf %{buildroot}
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changelog COPYING
%{_kde4_libdir}/kde4/kcm_gtk.so
%{_kde4_iconsdir}/kcm_gtk.png
%{_kde4_datadir}/kde4/services/kcmgtk.desktop
%changelog
* Thu Oct 22 2009 Rex Dieter <rdieter@fedoraproject.org> 0.5.1-2
- Requires: kde4-macros(api)...
* Thu Oct 22 2009 Rex Dieter <rdieter@fedoraproject.org> 0.5.1-1
- kcm-gtk-0.5.1 (first try)