- new
[packages/kf5-kactivities.git] / kf5-kactivities.spec
CommitLineData
266c283c
WF
1# TODO:
2# - dir /usr/include/KF5 not packaged
3# /usr/share/kf5 not packaged
4# Conflict /usr/bin/kactivitymanagerd
5%define _state stable
6%define orgname kactivities
7
8Summary: Core components for the KDE's Activities Activity Manager
9Name: kf5-%{orgname}
10Version: 5.0.0
11Release: 0.1
12License: LGPL v2.1+
13Group: X11/Libraries
14Source0: ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
15# Source0-md5: 1e5f33114f752eba2da71665c2e10696
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel
18BuildRequires: Qt5DBus-devel
19BuildRequires: Qt5Gui-devel
20BuildRequires: Qt5Network-devel >= 5.3.1
21BuildRequires: Qt5Qml-devel
22BuildRequires: Qt5Sql-devel
23BuildRequires: Qt5Test-devel
24BuildRequires: Qt5Widgets-devel
25BuildRequires: Qt5Xml-devel >= 5.2.0
26BuildRequires: boost-devel
27BuildRequires: cmake >= 2.8.12
28BuildRequires: gettext-devel
29BuildRequires: kf5-attica-devel >= %{version}
30BuildRequires: kf5-extra-cmake-modules >= 1.0.0
31BuildRequires: kf5-kauth-devel >= %{version}
32BuildRequires: kf5-kbookmarks-devel >= %{version}
33BuildRequires: kf5-kcodecs-devel >= %{version}
34BuildRequires: kf5-kcompletion-devel >= %{version}
35BuildRequires: kf5-kconfig-devel >= %{version}
36BuildRequires: kf5-kconfigwidgets-devel >= %{version}
37BuildRequires: kf5-kcoreaddons-devel >= %{version}
38BuildRequires: kf5-kdbusaddons-devel >= %{version}
39BuildRequires: kf5-kglobalaccel-devel >= %{version}
40BuildRequires: kf5-kguiaddons-devel >= %{version}
41BuildRequires: kf5-ki18n-devel >= %{version}
42BuildRequires: kf5-kiconthemes-devel >= %{version}
43BuildRequires: kf5-kio-devel >= %{version}
44BuildRequires: kf5-kitemviews-devel >= %{version}
45BuildRequires: kf5-kjobwidgets-devel >= %{version}
46BuildRequires: kf5-kservice-devel >= %{version}
47BuildRequires: kf5-ktextwidgets-devel >= %{version}
48BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
49BuildRequires: kf5-kwindowsystem-devel >= %{version}
50BuildRequires: kf5-kxmlgui-devel >= %{version}
51BuildRequires: kf5-solid-devel >= %{version}
52BuildRequires: kf5-sonnet-devel >= %{version}
53BuildRequires: rpmbuild(macros) >= 1.164
54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56%define qt5dir %{_libdir}/qt5
57
58%description
59System service to manage user's activities, track the usage patterns
60etc. KActivities library API for using and interacting with the
61Activity Manager as a consumer, application adding information to them
62or as an activity manager. Workspace Plugins for KDE workspace to
63easier integrate activities (KIO, etc.)
64
65%package devel
66Summary: Header files for %{orgname} development
67Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{orgname}
68Group: X11/Development/Libraries
69Requires: %{name} = %{version}-%{release}
70
71%description devel
72Header files for %{orgname} development.
73
74%description devel -l pl.UTF-8
75Pliki nagłówkowe dla programistów używających %{orgname}.
76
77%prep
78%setup -q -n %{orgname}-%{version}
79
80%build
81install -d build
82cd build
83%cmake \
84 -DBIN_INSTALL_DIR=%{_bindir} \
85 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
86 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
87 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
88 -DQML_INSTALL_DIR=%{qt5dir}/qml \
89 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
90 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
91 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
92 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
93 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
94 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
95 -D_IMPORT_PREFIX=%{_prefix} \
96 ../
97%{__make}
98
99%install
100rm -rf $RPM_BUILD_ROOT
101
102%{__make} -C build/ install \
103 DESTDIR=$RPM_BUILD_ROOT
104
105%find_lang %{orgname}5
106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%post -p /sbin/ldconfig
111%postun -p /sbin/ldconfig
112
113%files -f %{orgname}5.lang
114%defattr(644,root,root,755)
115%doc README.md
116%attr(755,root,root) %{_bindir}/kactivitymanagerd
117%attr(755,root,root) %ghost %{_libdir}/libKF5Activities.so.5
118%attr(755,root,root) %{_libdir}/libKF5Activities.so.5.0.0
119%attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_activitytemplates.so
120%attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_slc.so
121%attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_sqlite.so
122%{qt5dir}/qml/org/kde/activities/README
123%attr(755,root,root) %{qt5dir}/qml/org/kde/activities/libkactivitiesextensionplugin.so
124%{qt5dir}/qml/org/kde/activities/qmldir
125%{_datadir}/kservices5/kactivitymanagerd.desktop
126%{_datadir}/kservicetypes5/kactivitymanagerd-plugin.desktop
127
128%files devel
129%defattr(644,root,root,755)
130%{_includedir}/KF5/KActivities
131%{_includedir}/KF5/kactivities_version.h
132%{_libdir}/cmake/KF5Activities
133%attr(755,root,root) %{_libdir}/libKF5Activities.so
134%{_pkgconfigdir}/libKActivities.pc
135%{qt5dir}/mkspecs/modules/qt_KActivities.pri
This page took 0.13488 seconds and 4 git commands to generate.