2014-02-10 22:51:11 +01:00
#
2014-02-10 23:01:41 +01:00
# spec file for package kactivities5
2014-02-10 22:51:11 +01:00
#
# Copyright (c) 2014 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/
#
2014-03-02 13:29:39 +01:00
%define lname libKF5Activities5
2014-02-10 22:51:11 +01:00
Name : kactivities5
2014-06-01 20:42:31 +02:00
Version : 4.100.0
2014-02-10 22:51:11 +01:00
Release : 0
Summary : KDE Plasma Activities support
2014-05-13 20:50:29 +02:00
License : GPL-2.0+
2014-02-10 22:51:11 +01:00
Group : System/GUI/KDE
2014-02-10 23:01:41 +01:00
Url : http://projects.kde.org/kactivities
2014-02-10 22:51:11 +01:00
Source0 : kactivities-%{version} .tar.xz
2014-05-04 03:23:38 +02:00
# PATCH-FIX-UPSTREAM kamd-rename.patch -- https://git.reviewboard.kde.org/r/115602/ -- rename kactivitymanagerd binary so it can co-exist with kactivities4
2014-05-04 03:20:43 +02:00
Patch0 : kamd-rename.patch
2014-02-10 22:51:11 +01:00
BuildRequires : boost-devel >= 1.49.0
2014-02-10 22:54:32 +01:00
BuildRequires : cmake >= 2.8.12
2014-06-01 20:42:31 +02:00
BuildRequires : extra-cmake-modules >= 0.0.14
2014-02-10 22:51:11 +01:00
BuildRequires : fdupes
2014-02-10 22:54:32 +01:00
BuildRequires : kconfig-devel >= %{_kf5_version}
BuildRequires : kcoreaddons-devel >= %{_kf5_version}
BuildRequires : kdbusaddons-devel >= %{_kf5_version}
2014-02-10 22:51:11 +01:00
BuildRequires : kf5-filesystem
2014-02-10 22:54:32 +01:00
BuildRequires : ki18n-devel >= %{_kf5_version}
2014-06-01 21:28:56 +02:00
BuildRequires : kio-devel >= %{_kf5_version}
2014-02-10 22:54:32 +01:00
BuildRequires : kservice-devel >= %{_kf5_version}
BuildRequires : kwindowsystem-devel >= %{_kf5_version}
2014-02-10 22:51:11 +01:00
BuildRequires : xz
BuildRequires : pkgconfig(Qt5Core) >= 5.2.0
BuildRequires : pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires : pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires : pkgconfig(Qt5Qml) >= 5.2.0
2014-02-10 23:01:41 +01:00
BuildRequires : pkgconfig(Qt5Sql) >= 5.2.0
2014-02-10 22:51:11 +01:00
BuildRequires : pkgconfig(Qt5Test) >= 5.2.0
2014-02-10 23:01:41 +01:00
BuildRequires : pkgconfig(Qt5Widgets) >= 5.2.0
2014-02-10 22:51:11 +01:00
Obsoletes : kf5-kactivities
2014-05-04 03:20:43 +02:00
#Conflicts: kactivities4
2014-02-10 22:51:11 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
Kactivities provides an API for using and interacting with the Plasma Activities Manager.
%package -n %lname
Summary : Library for KDE's Plasma Activities support
Group : System/GUI/KDE
%description -n %lname
Kactivities provides an API for using and interacting with the Plasma Activities Manager.
%package devel
Summary : KDE Base Libraries
2014-02-10 23:01:41 +01:00
Group : Development/Libraries/KDE
2014-02-10 22:51:11 +01:00
Requires : %lname = %{version}
2014-06-01 20:42:31 +02:00
Requires : extra-cmake-modules >= 0.0.14
2014-06-01 21:28:56 +02:00
Requires : pkgconfig(Qt5Core) >= 5.2.0
2014-02-10 22:51:11 +01:00
Obsoletes : kf5-kactivities-devel
%description devel
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n kactivities-%{version}
2014-05-04 03:20:43 +02:00
%patch0 -p1
2014-02-10 22:51:11 +01:00
%build
%if 0%{?suse_version} == 1310
%cmake_kf5 -d build -- -DKACTIVITIES_ENABLE_EXCEPTIONS=ON
%else
%cmake_kf5 -d build
%endif
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr (-,root,root)
2014-05-04 03:20:43 +02:00
%{_kf5_bindir}/kactivitymanagerd5
2014-02-10 22:51:11 +01:00
%{_kf5_qmldir}/org/
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
2014-03-01 23:35:10 +01:00
%files -n %lname
2014-02-10 22:51:11 +01:00
%defattr (-,root,root,-)
%{_kf5_libdir}/libKF5Activities.so.*
%files devel
%defattr (-,root,root)
%{_kf5_libdir}/libKF5Activities.so
%{_kf5_libdir}/cmake/KF5Activities/
%dir %{_kf5_includedir}/*/
%{_kf5_includedir}/*/
%{_kf5_includedir}/*.h
%{_kf5_libdir}/pkgconfig/libKActivities.pc
2014-05-05 04:19:07 +02:00
%{_kf5_mkspecsdir}/qt_KActivities.pri
2014-02-10 22:51:11 +01:00
%changelog