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