91e0cf831194beeff618d40a01c5e638a6b93066
[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 BuildRequires:  tar >= 1:1.22
55 BuildRequires:  xz
56 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58 %define         qt5dir          %{_libdir}/qt5
59
60 %description
61 System service to manage user's activities, track the usage patterns
62 etc. KActivities library API for using and interacting with the
63 Activity Manager as a consumer, application adding information to them
64 or as an activity manager. Workspace Plugins for KDE workspace to
65 easier integrate activities (KIO, etc.)
66
67 %package devel
68 Summary:        Header files for %{orgname} development
69 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{orgname}
70 Group:          X11/Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72
73 %description devel
74 Header files for %{orgname} development.
75
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe dla programistów używających %{orgname}.
78
79 %prep
80 %setup -q -n %{orgname}-%{version}
81
82 %build
83 install -d build
84 cd build
85 %cmake \
86         -DBIN_INSTALL_DIR=%{_bindir} \
87         -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
88         -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
89         -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
90         -DQML_INSTALL_DIR=%{qt5dir}/qml \
91         -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
92         -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
93         -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
94         -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
95         -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
96         -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
97         -D_IMPORT_PREFIX=%{_prefix} \
98         ../
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} -C build/ install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 %find_lang %{orgname}5
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files -f %{orgname}5.lang
116 %defattr(644,root,root,755)
117 %doc README.md
118 %attr(755,root,root) %{_bindir}/kactivitymanagerd
119 %attr(755,root,root) %ghost %{_libdir}/libKF5Activities.so.5
120 %attr(755,root,root) %{_libdir}/libKF5Activities.so.5.0.0
121 %attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_activitytemplates.so
122 %attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_slc.so
123 %attr(755,root,root) %{qt5dir}/plugins/kactivitymanagerd/kactivitymanagerd_plugin_sqlite.so
124 %{qt5dir}/qml/org/kde/activities/README
125 %attr(755,root,root) %{qt5dir}/qml/org/kde/activities/libkactivitiesextensionplugin.so
126 %{qt5dir}/qml/org/kde/activities/qmldir
127 %{_datadir}/kservices5/kactivitymanagerd.desktop
128 %{_datadir}/kservicetypes5/kactivitymanagerd-plugin.desktop
129
130 %files devel
131 %defattr(644,root,root,755)
132 %{_includedir}/KF5/KActivities
133 %{_includedir}/KF5/kactivities_version.h
134 %{_libdir}/cmake/KF5Activities
135 %attr(755,root,root) %{_libdir}/libKF5Activities.so
136 %{_pkgconfigdir}/libKActivities.pc
137 %{qt5dir}/mkspecs/modules/qt_KActivities.pri
This page took 0.060736 seconds and 2 git commands to generate.