File kcm_gtk.spec of Package kcm_gtk

#
# spec file for package kcm_gtk (Version 1.1)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           kcm_gtk
Version:        1.1
Release:        11
License:        GPLv2+
Summary:        KDE control module for switching GTK+ style
Url:            http://www.freedesktop.org/Software/gtk-qt
Group:          System/GUI/KDE
Source:         gtk-qt-engine-%{version}.tar.bz2
Source2:        kcm_gtk.suse.sh
Source3:        gtkrc-2.0-kde4.template
Patch0:         build-only-kcm.diff
Patch1:         icon-location.diff
Patch2:         insertCatalog.diff
Patch3:         work-by-default.diff
Patch4:         kde45-category.diff
BuildRequires:  kdesdk4-scripts
BuildRequires:  libbonoboui-devel
BuildRequires:  libkde4-devel
BuildRequires:  pkgconfig(gtk+-2.0)
Suggests:       oxygen-gtk
Provides:       kde4-kcm_gtk = 1.1
Obsoletes:      kde4-kcm_gtk < 1.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This KDE control module allows to choose the style of GTK+
applications.

%prep
%setup -n gtk-qt-engine -q
%patch0
%patch1
%patch2
%patch3
%if 0%{?suse_version} > 1130 || !0%{?kde_updatedapps}
%patch4
%endif

%build
  %cmake_kde4
  %make_jobs

%install
  %make_install
  %find_lang gtkqtengine
  mkdir -p %{buildroot}%{_kde4_servicesdir}
  mv %{buildroot}%{_kde4_applicationsdir}/kcmgtk4.desktop %{buildroot}%{_kde4_servicesdir}
  %suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/kcmgtk4.desktop
  mkdir -p %{buildroot}%{_kde4_sharedir}/env
  install -D -m 0755 %{SOURCE2} %{buildroot}%{_kde4_sharedir}/env/
  mkdir -p %{buildroot}%{_kde4_appsdir}/kcm_gtk/
  install -D -m 0644 %{SOURCE3} %{buildroot}%{_kde4_appsdir}/kcm_gtk/

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -f gtkqtengine.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%{_kde4_modules}/kcm_gtk4.so
%{_kde4_servicesdir}/kcmgtk4.desktop
%{_kde4_iconsdir}/hicolor/48x48/apps/kcmgtk.png
%dir %{_kde4_sharedir}/env
%{_kde4_sharedir}/env/kcm_gtk.suse.sh
%{_kde4_appsdir}/kcm_gtk

%changelog
openSUSE Build Service is sponsored by