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/
#

# norootforbuild


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

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



Authors:
--------
    David Sansome <me@davidsansome.com>

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

%build
  %cmake_kde4
  %make_jobs

%install
  %makeinstall
  %find_lang gtkqtengine
  mkdir -p $RPM_BUILD_ROOT/usr/share/kde4/services
  mv $RPM_BUILD_ROOT/usr/share/applications/kde4/kcmgtk4.desktop $RPM_BUILD_ROOT/usr/share/kde4/services/
  %suse_update_desktop_file $RPM_BUILD_ROOT/usr/share/kde4/services/kcmgtk4.desktop
  mkdir -p $RPM_BUILD_ROOT/usr/share/kde4/env
  install -D -m 0755 %SOURCE2 $RPM_BUILD_ROOT/usr/share/kde4/env/
  mkdir -p $RPM_BUILD_ROOT/usr/share/kde4/apps/kcm_gtk/
  install -D -m 0644 %SOURCE3 $RPM_BUILD_ROOT/usr/share/kde4/apps/kcm_gtk/

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f gtkqtengine.lang  
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%_kde4_modules/kcm_gtk4.so
%_kde_share_dir/services/kcmgtk4.desktop
/usr/share/icons/hicolor/48x48/apps/kcmgtk.png
%dir /usr/share/kde4/env
/usr/share/kde4/env/kcm_gtk.suse.sh
/usr/share/kde4/apps/kcm_gtk

%changelog
openSUSE Build Service is sponsored by