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