File kscreen.spec of Package kscreen

#
# spec file for package kscreen
#
# Copyright (c) 2013 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:           kscreen
Version:        1.0.2.1
Release:        0
Summary:        KDE's screen management software
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source:         http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source1:        krandrstartup
BuildRequires:  fdupes
BuildRequires:  libkde4-devel >= 4.7.0
#BuildRequires:  libkscreen-devel >= %{version}
# Bring back >= %{version} on 1.0.3/1.1
BuildRequires:  libkscreen-devel >= 1.0.2
BuildRequires:  libqjson-devel >= 0.8.1
Obsoletes:      krandr
Requires:       libkscreen
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
The new KDE screen management software

%lang_package
%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  pushd build
  %kde4_makeinstall
  popd

  install -m 0755 %{SOURCE1} %{buildroot}%{_kde4_bindir}/

  %kde_post_install
  %fdupes -s %{buildroot}

  %find_lang %{name} %{name}.lang
  %find_lang kcm_displayconfiguration %{name}.lang
  %find_lang plasma_applet_org.kde.plasma.%{name} %{name}.lang

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_modulesdir}/plasma_applet_kscreen.so
%{_kde4_iconsdir}/hicolor/*/actions/kdocumentinfo.*
%{_kde4_appsdir}/kcm_%{name}/
%dir %{_kde4_appsdir}/plasma/packages
%{_kde4_appsdir}/plasma/packages/org.kde.plasma.%{name}.qml
%{_kde4_servicesdir}/kded/%{name}.desktop
%{_kde4_servicesdir}/kcm_%{name}.desktop
%{_kde4_servicesdir}/plasma-applet-%{name}-qml.desktop
%{_kde4_servicesdir}/plasma-applet-%{name}.desktop
%{_kde4_modulesdir}/kded_%{name}.so
%{_kde4_modulesdir}/kcm_%{name}.so
%{_kde4_bindir}/%{name}-console
%{_kde4_bindir}/krandrstartup

%changelog
openSUSE Build Service is sponsored by