- new
[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         _state          stable
6 %define         orgname         kactivities
7
8 Summary:        Core components for the KDE's Activities Activity Manager
9 Name:           kf5-%{orgname}
10 Version:        5.0.0
11 Release:        0.1
12 License:        LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
15 # Source0-md5:  1e5f33114f752eba2da71665c2e10696
16 URL:            http://www.kde.org/
17 BuildRequires:  Qt5Core-devel
18 BuildRequires:  Qt5DBus-devel
19 BuildRequires:  Qt5Gui-devel
20 BuildRequires:  Qt5Network-devel >= 5.3.1
21 BuildRequires:  Qt5Qml-devel
22 BuildRequires:  Qt5Sql-devel
23 BuildRequires:  Qt5Test-devel
24 BuildRequires:  Qt5Widgets-devel
25 BuildRequires:  Qt5Xml-devel >= 5.2.0
26 BuildRequires:  boost-devel
27 BuildRequires:  cmake >= 2.8.12
28 BuildRequires:  gettext-devel
29 BuildRequires:  kf5-attica-devel >= %{version}
30 BuildRequires:  kf5-extra-cmake-modules >= 1.0.0
31 BuildRequires:  kf5-kauth-devel >= %{version}
32 BuildRequires:  kf5-kbookmarks-devel >= %{version}
33 BuildRequires:  kf5-kcodecs-devel >= %{version}
34 BuildRequires:  kf5-kcompletion-devel >= %{version}
35 BuildRequires:  kf5-kconfig-devel >= %{version}
36 BuildRequires:  kf5-kconfigwidgets-devel >= %{version}
37 BuildRequires:  kf5-kcoreaddons-devel >= %{version}
38 BuildRequires:  kf5-kdbusaddons-devel >= %{version}
39 BuildRequires:  kf5-kglobalaccel-devel >= %{version}
40 BuildRequires:  kf5-kguiaddons-devel >= %{version}
41 BuildRequires:  kf5-ki18n-devel >= %{version}
42 BuildRequires:  kf5-kiconthemes-devel >= %{version}
43 BuildRequires:  kf5-kio-devel >= %{version}
44 BuildRequires:  kf5-kitemviews-devel >= %{version}
45 BuildRequires:  kf5-kjobwidgets-devel >= %{version}
46 BuildRequires:  kf5-kservice-devel >= %{version}
47 BuildRequires:  kf5-ktextwidgets-devel >= %{version}
48 BuildRequires:  kf5-kwidgetsaddons-devel >= %{version}
49 BuildRequires:  kf5-kwindowsystem-devel >= %{version}
50 BuildRequires:  kf5-kxmlgui-devel >= %{version}
51 BuildRequires:  kf5-solid-devel >= %{version}
52 BuildRequires:  kf5-sonnet-devel >= %{version}
53 BuildRequires:  rpmbuild(macros) >= 1.164
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %define         qt5dir          %{_libdir}/qt5
57
58 %description
59 System service to manage user's activities, track the usage patterns
60 etc. KActivities library API for using and interacting with the
61 Activity Manager as a consumer, application adding information to them
62 or as an activity manager. Workspace Plugins for KDE workspace to
63 easier integrate activities (KIO, etc.)
64
65 %package devel
66 Summary:        Header files for %{orgname} development
67 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{orgname}
68 Group:          X11/Development/Libraries
69 Requires:       %{name} = %{version}-%{release}
70
71 %description devel
72 Header files for %{orgname} development.
73
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe dla programistów używających %{orgname}.
76
77 %prep
78 %setup -q -n %{orgname}-%{version}
79
80 %build
81 install -d build
82 cd 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
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} -C build/ install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %find_lang %{orgname}5
106
107 %clean
108 rm -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.039265 seconds and 3 git commands to generate.