File kremotecontrol.spec of Package kremotecontrol

#
# spec file for package kremotecontrol
#
# Copyright (c) 2015 SUSE LINUX 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:           kremotecontrol
Version:        16.08.2
Release:        0
Summary:        KDE Frontend for the Linux Infrared Remote Control system
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://www.kde.org
Source0:        kremotecontrol-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRequires:  xz
Provides:       kdelirc = %{version}
Obsoletes:      kdelirc < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Kremotecontrol is a KDE frontend for the Linux Infrared Remote Control system.

%package -n liblibkremotecontrol1
Summary:        KDE Frontend for the Linux Infrared Remote Control system
Group:          System/Libraries

%description -n liblibkremotecontrol1
Kremotecontrol is a KDE frontend for the Linux Infrared Remote Control system.

%package devel
Summary:        KDE Frontend for the Linux Infrared Remote Control system
Group:          Development/Libraries/C and C++
Requires:       liblibkremotecontrol1 = %{version}

%description devel
Kremotecontrol is a KDE frontend for the Linux Infrared Remote Control system.

%prep
%setup -q -n kremotecontrol-%{version}

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%kde4_makeinstall
%kde_post_install

%post -n liblibkremotecontrol1 -p /sbin/ldconfig

%postun -n liblibkremotecontrol1 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING README
%dir %_kde4_iconsdir/hicolor/42x42/devices
%dir %_kde4_iconsdir/hicolor/42x42
%dir %_kde4_iconsdir/hicolor/8x8/devices
%dir %_kde4_iconsdir/hicolor/8x8
%_kde4_bindir/krcdnotifieritem
%_kde4_modulesdir/*.so
%_kde4_applicationsdir/*.desktop
%_kde4_htmldir/en/kcontrol/
%_kde4_iconsdir/hicolor/*/*/*.png
%_kde4_iconsdir/hicolor/*/*/*.svgz
%_kde4_appsdir/kremotecontrol/
%_kde4_appsdir/kremotecontroldaemon/
%_kde4_servicesdir/*.desktop
%_kde4_servicesdir/kded/*.desktop
%_kde4_servicesdir/kremotecontrolbackends/
%_kde4_servicetypesdir/*.desktop

%files -n liblibkremotecontrol1
%defattr(-,root,root)
%doc COPYING.LIB
%_kde4_libdir/liblibkremotecontrol.so.*

%files devel
%defattr(-,root,root)
%doc TODO
%_kde4_libdir/liblibkremotecontrol.so

%changelog
openSUSE Build Service is sponsored by