File kactivities4.spec of Package kactivities4

#
# spec file for package kactivities4
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2010 Open-SLX GmbH <sebas@open-slx.com>
#
# 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:           kactivities4
Version:        4.8.4
Release:        0
Summary:        KDE Plasma Activities support
License:        GPL-2.0+ ; LGPL-2.1+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source0:        kactivities-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Kactivities provides an API for using and interacting with the Plasma Active
Activities Manager.

%package -n libkactivities6
Provides:       libkactivities = %version
Obsoletes:      libkactivities <= 4.8.0
Summary:        Development files and headers for kactivities
Group:          System/Libraries

%description -n libkactivities6
Kactivities provides an API for using and interacting with the Plasma Active
Activities Manager.

%package -n libkactivities-devel
Summary:        Development files and headers for kactivities
Group:          Development/Libraries/KDE
Requires:       libkactivities6 = %{version}

%description -n libkactivities-devel
Development headers for the kactivities4 library

%prep
%setup -qn kactivities-%{version}

%build
%cmake_kde4 -d builddir
%make_jobs

%install
pushd builddir
%make_install
popd
%kde_post_install

%post -n libkactivities6 -p /sbin/ldconfig

%postun -n libkactivities6 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_kde4_bindir}/kactivitymanagerd
%{_kde4_modulesdir}/*
%{_kde4_servicesdir}/*
%{_kde4_servicetypesdir}/*
#obosolete
%exclude %{_kde4_servicesdir}/kded

%files -n libkactivities6
%defattr(-,root,root,-)
%{_kde4_libdir}/libkactivities.so.*

%files -n libkactivities-devel
%defattr(-,root,root,-)
%{_kde4_libdir}/libkactivities.so
%{_includedir}/kactivities/
%{_includedir}/KDE/KActivities/
%_kde4_libdir/cmake/KActivities/
%_kde4_libdir/pkgconfig/*

%changelog