# Fedora package review: http://bugzilla.redhat.com/530342 %if 0%{?fedora} && 0%{?fedora} < 13 %define env_script 1 %endif Summary: Configure the appearance of GTK apps in KDE Name: kcm-gtk Version: 0.5.3 Release: 7%{?dist} License: GPLv2+ Group: User Interface/Desktops URL: https://launchpad.net/kcm-gtk Source0: http://launchpad.net/kcm-gtk/0.5.x/%{version}/+download/kcm-gtk_%{version}.orig.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # set GTK2_RC_FILES=~/.gtkrc-2.0-kde4 Source1: kcm-gtk.sh ## upstreamable patches # Categories += Settings, else doesn't appear in systemsettings anywhere (?) Patch50: kcm-gtk-0.5.1-settings_category.patch # ensures GTK2_RC_FILES gets used/updated on first use, avoids # possible need for logout/login, code borrowed from kdebase-workspace's krdb.cpp Patch51: kcm-gtk-0.5.3-gtkrc_setenv.patch # fix missing umlauts and sharp s in the German translation # The translations need a lot more fixing than that, but this looks very broken! Patch52: kcm-gtk-0.5.3-fix-de.patch %if 0%{?fedora} > 11 Obsoletes: gtk-qt-engine <= 1:1.1 %endif BuildRequires: gettext BuildRequires: kdelibs4-devel # need kcmshell4 from kdebase-runtime at least Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} %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 %patch51 -p1 -b .gtkrc_setenv %patch52 -p1 -b .fix-de %if "%{?_kde4_version}" > "4.5.0" # 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 %endif %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} %find_lang kcm_gtk %{?env_script:install -p -m644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/kde/env/kcm-gtk.sh} %clean rm -rf %{buildroot} %files -f kcm_gtk.lang %defattr(-,root,root,-) %doc Changelog COPYING %{?env_script:%{_sysconfdir}/kde/env/kcm-gtk.sh} %{_kde4_libdir}/kde4/kcm_gtk.so %{_kde4_iconsdir}/kcm_gtk.png %{_kde4_datadir}/kde4/services/kcmgtk.desktop %changelog * Mon Mar 14 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.5.3-7 - drop cursortheme patch, now set automatically by xsettings-kde (#591746) * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.5.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Sep 08 2010 Rex Dieter <rdieter@fedoraproject.org> 0.5.3-5 - kcm-gtk : "GTK+ Appearance" in systemsettings->lost and found (#628381) - Requires: kdebase-runtime * Wed Jul 7 2010 Ville Skyttä <ville.skytta@iki.fi> 0.5.3-4 - Apply modified upstream patch to add cursor theme support (#600976). * Fri Dec 25 2009 Rex Dieter <rdieter@fedoraproject.org> 0.5.3-3 - GTK2_RC_FILES handling moved to kde-settings (#547700) * Sun Dec 20 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.5.3-2 - fix missing umlauts and sharp s in the German translation * Fri Oct 30 2009 Rex Dieter <rdieter@fedoraproject.org> 0.5.3-1 - kcm-gtk-0.5.3 - .gtkrc-2.0-kde4 doesn't get used (#531788) * 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)