1 |
Name: akonadi |
2 |
Summary: An extensible cross-desktop storage service for PIM |
3 |
Version: 1.5.1 |
4 |
Release: %mkrel 2 |
5 |
Epoch: 1 |
6 |
Url: http://pim.kde.org/akonadi/ |
7 |
License: LGPLv2+ |
8 |
Group: Networking/WWW |
9 |
Source0: http://download.akonadi-project.org/%{name}-%{version}.tar.bz2 |
10 |
BuildRequires: qt4-devel >= 4:4.4.0 |
11 |
BuildRequires: qt4-qtdbus |
12 |
BuildRequires: shared-mime-info >= 0.20 |
13 |
BuildRequires: kde4-macros |
14 |
BuildRequires: libxslt-proc |
15 |
BuildRequires: libxml2-utils |
16 |
BuildRequires: automoc |
17 |
BuildRequires: mysql-devel |
18 |
BuildRequires: boost-devel |
19 |
BuildRequires: soprano-devel |
20 |
Requires: qt4-database-plugin-mysql |
21 |
Requires: mysql-core |
22 |
Requires: mysql-common |
23 |
# Needed for mysqlcheck which is used in akonadi |
24 |
Requires: mysql-client |
25 |
Obsoletes: akonadi-common < 1:1.1.95 |
26 |
Conflicts: kde4-akonadi < 4.0.71-1 |
27 |
|
28 |
%description |
29 |
An extensible cross-desktop storage service for PIM data and meta data providing |
30 |
concurrent read, write, and query access. |
31 |
|
32 |
%files |
33 |
%defattr(-,root,root) |
34 |
%{_kde_bindir}/* |
35 |
%{_sysconfdir}/akonadi |
36 |
%{_datadir}/dbus-1/services/* |
37 |
%{_datadir}/mime/packages/akonadi-mime.xml |
38 |
%{_libdir}/qt4/plugins/sqldrivers/libqsqlite3.so |
39 |
|
40 |
#------------------------------------------------------ |
41 |
|
42 |
# Need a dummy package to override old one |
43 |
%package common |
44 |
Group: Networking/WWW |
45 |
Summary: Dummy package to obsolete the old one |
46 |
Obsoletes: akonadi-common < 1:1.1.95 |
47 |
|
48 |
%description common |
49 |
A dummy package to obsolete the old one. |
50 |
|
51 |
%files common |
52 |
%doc README |
53 |
|
54 |
#------------------------------------------------------ |
55 |
|
56 |
%define akonadiprotocolinternals_major 1 |
57 |
%define libakonadiprotocolinternals %mklibname akonadiprotocolinternals %{akonadiprotocolinternals_major} |
58 |
|
59 |
%package -n %libakonadiprotocolinternals |
60 |
Summary: %name library |
61 |
Group: System/Libraries |
62 |
Obsoletes: %{_lib}akonadi_protocolinternals4 <= 4.0.70-1 |
63 |
|
64 |
%description -n %libakonadiprotocolinternals |
65 |
%name library. |
66 |
|
67 |
%files -n %libakonadiprotocolinternals |
68 |
%defattr(-,root,root,-) |
69 |
%_kde_libdir/libakonadiprotocolinternals.so.%{akonadiprotocolinternals_major}* |
70 |
|
71 |
#------------------------------------------------------ |
72 |
|
73 |
%package devel |
74 |
Summary: Devel stuff for %name |
75 |
Group: Development/KDE and Qt |
76 |
Conflicts: kdepimlibs4-devel < 4.0.70-2 |
77 |
Conflicts: kdepim4-devel < 2:4.0.70-2 |
78 |
Requires: %libakonadiprotocolinternals = %epoch:%version |
79 |
Requires: akonadi-common = %epoch:%version |
80 |
|
81 |
%description devel |
82 |
This package contains header files needed if you wish to build applications |
83 |
based on %name |
84 |
|
85 |
%files devel |
86 |
%defattr(-,root,root) |
87 |
%{_kde_includedir}/* |
88 |
%{_kde_libdir}/*.so |
89 |
%{_kde_libdir}/pkgconfig/akonadi.pc |
90 |
%{_kde_libdir}/cmake/Akonadi |
91 |
%{_kde_datadir}/dbus-1/interfaces/*.xml |
92 |
|
93 |
#-------------------------------------------------------------------- |
94 |
|
95 |
%prep |
96 |
%setup -q -n %name-%version |
97 |
|
98 |
%build |
99 |
%cmake_kde4 -DMYSQLD_EXECUTABLE=%_sbindir/mysqld -DCONFIG_INSTALL_DIR=%{_sysconfdir} |
100 |
%make |
101 |
|
102 |
%install |
103 |
rm -rf %{buildroot} |
104 |
%makeinstall_std -C build |
105 |
|
106 |
#We need to expand libdir into mysql-global.conf |
107 |
#sed -e 's,LIBDIR,%{_libdir},g' -i %buildroot/%_sysconfdir/akonadi/mysql-global.conf |
108 |
|
109 |
%clean |
110 |
rm -rf %{buildroot} |
111 |
|
112 |
|