Release: 1
License: GPL v2+
Group: X11/Applications
-URL: https://launchpad.net/kcm-gtk
Source0: http://launchpad.net/kcm-gtk/0.5.x/%{version}/+download/kcm-gtk_%{version}.orig.tar.gz
# Source0-md5: b49e2df3cce3bcb8c6dc96e7af73716d
Patch1: kcm-gtk-0.5.3-settings_category.patch
+URL: https://launchpad.net/kcm-gtk
Patch2: kcm-gtk-0.5.3-gtkrc_setenv.patch
Patch3: kcm-gtk-0.5.3-fix-de.patch
Patch4: kubuntu_01_xsettings_kipc.patch
+BuildRequires: cmake
BuildRequires: gettext
BuildRequires: kde4-kdelibs-devel >= 4.8
+BuildRequires: sed >= 4.0
Requires: kde4-kdebase-runtime
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This is a System Settings configuration module for configuring the
%prep
%setup -q -n kcm-gtk-%{version}
-%patch1 -p1 -b .settings_category
-%patch2 -p1 -b .gtkrc_setenv
-%patch3 -p1 -b .fix-de
-%patch4 -p1 -b .xsettings_kipc
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
# fixup for kde-4.5+, see http://bugzilla.redhat.com/628381
-sed -i.kde45 -e 's|^X-KDE-System-Settings-Parent-Category=appearance$|X-KDE-System-Settings-Parent-Category=application-appearance|' \
- kcmgtk.desktop
+sed -i.kde45 -e 's|^X-KDE-System-Settings-Parent-Category=appearance$|X-KDE-System-Settings-Parent-Category=application-appearance|' kcmgtk.desktop
%build
install -d build
cd build
-%{cmake} ..
-
+%cmake ..
%{__make}
-
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \