]>
Commit | Line | Data |
---|---|---|
ffda2869 | 1 | %define snap svn1057960 |
40051f8c | 2 | %define qtver 4.8.1 |
7da900c5 | 3 | Summary: Akonadi - The PIM Storage Service |
149367d0 | 4 | Summary(pl.UTF-8): Akonadi - usługa przechowywania danych dla aplikacji PIM |
0d7bac08 | 5 | Name: akonadi |
27f1b984 | 6 | Version: 1.13.0 |
082a8ccd | 7 | Release: 15 |
2e245332 | 8 | License: GPL v2+ |
0d7bac08 | 9 | Group: X11/Applications |
89a6ead2 | 10 | Source0: ftp://ftp.kde.org/pub/kde/stable/akonadi/src/%{name}-%{version}.tar.bz2 |
27f1b984 | 11 | # Source0-md5: 84eb2e471bd6bdfe54a2a2f1d858c07d |
ffda2869 | 12 | # svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/akonadi/ |
13 | #Source0: %{name}-%{version}-%{snap}.tar.bz2 | |
8a8f9fb3 AM |
14 | Patch1: 0001-FindSqlite-Use-CMAKE_FLAGS-the-right-way-in-try_comp.patch |
15 | Patch2: 0002-Do-not-enter-the-test-directories-if-AKONADI_BUILD_T.patch | |
16 | Patch3: 0003-STORE-Allow-modifying-items-tags-via-Tag-RID-or-GID.patch | |
17 | Patch4: 0004-Fix-typo-in-if-condition.patch | |
18 | Patch5: 0005-Fix-buffer-overflow-in-AKTEST_FAKESERVER_MAIN.patch | |
19 | Patch6: 0006-Don-t-crash-when-setmntent-returns-NULL.patch | |
20 | Patch7: 0007-Don-t-call-insert-from-Q_ASSERT-breaks-unit-tests-in.patch | |
21 | Patch8: 0008-Suppress-unused-variable-warnings-in-release-mode.patch | |
22 | Patch9: 0009-Test-whether-compiler-supports-all-required-C-11-fea.patch | |
23 | Patch10: 0010-prevent-starting-a-QTimer-with-a-negative-interval.patch | |
24 | Patch11: 0011-Convert-some-qDebugs-to-akDebugs.patch | |
25 | Patch12: 0012-Optimize-Reduce-the-amount-of-allocations-required-t.patch | |
26 | Patch13: 0013-Intern-entity-strings-for-table-and-column-names.patch | |
27 | Patch14: 0014-No-semicolon-after-Q_DECLARE_METATYPE.patch | |
28 | Patch15: 0015-Use-QMutexLocker-instead-of-manual-lock-unlock-calls.patch | |
29 | Patch16: 0016-Use-an-QAtomicInt-instead-of-a-plain-bool-for-Entity.patch | |
30 | Patch17: 0017-Optimize-Only-do-one-hash-lookup-to-retrieve-value-f.patch | |
31 | Patch18: 0018-Optimize-Skip-value-condition-on-invalid-flags.patch | |
32 | Patch19: 0019-Optimize-queries-Do-not-retrieve-known-key-used-in-t.patch | |
33 | Patch20: 0020-Avoid-ridiculous-amount-of-SQL-queries-by-caching-Pa.patch | |
34 | Patch21: 0021-Implement-support-for-CASE.WHEN.THEN-SQL-statements-.patch | |
35 | Patch22: 0022-Implement-cache-for-CollectionStatistics-to-signific.patch | |
36 | Patch23: 0023-Always-create-a-new-PartType-when-it-does-not-exist.patch | |
37 | Patch24: 0024-Fix-compilation-with-strict-iterators.patch | |
38 | Patch25: 0025-Avoid-repeated-calls-to-PimItem-flags-and-PimItem-ta.patch | |
39 | Patch26: 0026-Avoid-recursive-collection-listing-in-SearchHelper.patch | |
40 | Patch27: 0027-Minor-improvements-in-StatisticsCache-as-suggested-b.patch | |
41 | Patch28: 0028-Extend-imapparser-benchmark-and-keep-static-data-aro.patch | |
42 | Patch29: 0029-Reduce-the-amount-of-allocations-by-preallocating-a-.patch | |
43 | Patch30: 0030-Preallocate-a-capacity-of-16-for-the-returned-list.patch | |
6a4f54d2 | 44 | Patch31: moc.patch |
0d7bac08 | 45 | URL: http://pim.kde.org/akonadi/ |
d1a3b799 | 46 | BuildRequires: QtCore-devel >= %{qtver} |
47 | BuildRequires: QtDBus-devel >= %{qtver} | |
48 | BuildRequires: QtGui-devel >= %{qtver} | |
49 | BuildRequires: QtNetwork-devel >= %{qtver} | |
50 | BuildRequires: QtSql-devel >= %{qtver} | |
51 | BuildRequires: QtTest-devel >= %{qtver} | |
92227e79 | 52 | BuildRequires: automoc4 |
bedfcb34 | 53 | BuildRequires: boost-devel |
0d7bac08 | 54 | #BuildRequires: clucene-core-devel >= 0.9.16a-2 |
d1a3b799 | 55 | BuildRequires: cmake >= 2.8.0 |
afba212b | 56 | BuildRequires: libxslt-progs |
d1a3b799 | 57 | BuildRequires: qt4-build >= %{qtver} |
58 | BuildRequires: qt4-qmake >= %{qtver} | |
0d7bac08 | 59 | BuildRequires: rpmbuild(macros) >= 1.293 |
9e64bfec | 60 | BuildRequires: shared-mime-info |
d1a3b799 | 61 | BuildRequires: soprano-devel >= 2.4.64 |
03ca1266 | 62 | Requires: %{name}-libs = %{version}-%{release} |
0226a0d2 | 63 | Requires: QtSql-mysql |
ffda2869 | 64 | Requires: mysql |
0d7bac08 | 65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66 | ||
67 | %description | |
7da900c5 ER |
68 | Akonadi is a personal information management (PIM) framework for KDE |
69 | 4.1 and newer. Akonadi will function as an extensible data storage for | |
70 | all PIM applications. | |
71 | ||
72 | Besides data storage, Akonadi has several other components including | |
73 | search, and a library (cache) for easy access and notification of data | |
74 | changes. | |
0d7bac08 | 75 | |
76 | %description -l pl.UTF-8 | |
149367d0 JB |
77 | Akonadi do szkielet zarządzania informacjami osobistymi (PIM) dla KDE |
78 | w wersji 4.1 i nowszych. Działa jako rozszerzalny system | |
79 | przechowywania danych dla wszystkich aplikacji PIM. | |
80 | ||
81 | Poza przechowywaniem danych Akonadi ma kilka innych komponentów, w tym | |
82 | wyszukiwanie oraz bibliotekę (pamięć podręczną) w celu łatwego dostępu | |
83 | i powiadamiania i zmianie danych. | |
0d7bac08 | 84 | |
85 | %package devel | |
149367d0 JB |
86 | Summary: Header files for Akonadi |
87 | Summary(pl.UTF-8): Pliki nagłówkowe dla Akonadi | |
0d7bac08 | 88 | Group: Development/Libraries |
03ca1266 | 89 | Requires: %{name}-libs = %{version}-%{release} |
0d7bac08 | 90 | |
91 | %description devel | |
149367d0 | 92 | Header files needed to build Akonadi client libraries and |
70d6c67d | 93 | applications. |
0d7bac08 | 94 | |
95 | %description devel -l pl.UTF-8 | |
149367d0 JB |
96 | Pliki nagłówkowe do tworzenia bibliotek klienckich i aplikacji |
97 | używających Akonadi. | |
0d7bac08 | 98 | |
03ca1266 | 99 | %package libs |
100 | Summary: Akonadi libraries | |
101 | Summary(pl.UTF-8): Biblioteki Akonadi | |
102 | Group: Libraries | |
103 | ||
104 | %description libs | |
105 | Akonadi libraries. | |
106 | ||
107 | %description libs -l pl.UTF-8 | |
108 | Biblioteki Akonadi. | |
109 | ||
0d7bac08 | 110 | %prep |
58ac1bb1 | 111 | %setup -q |
8a8f9fb3 AM |
112 | %patch1 -p1 |
113 | %patch2 -p1 | |
114 | %patch3 -p1 | |
115 | %patch4 -p1 | |
116 | %patch5 -p1 | |
117 | %patch6 -p1 | |
118 | %patch7 -p1 | |
119 | %patch8 -p1 | |
120 | %patch9 -p1 | |
121 | %patch10 -p1 | |
122 | %patch11 -p1 | |
123 | %patch12 -p1 | |
124 | %patch13 -p1 | |
125 | %patch14 -p1 | |
126 | %patch15 -p1 | |
127 | %patch16 -p1 | |
128 | %patch17 -p1 | |
129 | %patch18 -p1 | |
130 | %patch19 -p1 | |
131 | %patch20 -p1 | |
132 | %patch21 -p1 | |
133 | %patch22 -p1 | |
134 | %patch23 -p1 | |
135 | %patch24 -p1 | |
136 | %patch25 -p1 | |
137 | %patch26 -p1 | |
138 | %patch27 -p1 | |
139 | %patch28 -p1 | |
140 | %patch29 -p1 | |
141 | %patch30 -p1 | |
6a4f54d2 | 142 | %patch31 -p1 |
0d7bac08 | 143 | |
144 | %build | |
145 | install -d build | |
146 | cd build | |
147 | %cmake \ | |
878afe59 | 148 | -DWITH_SOPRANO=on \ |
0d7bac08 | 149 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
df3d944c | 150 | -DINSTALL_QSQLITE_IN_QT_PREFIX=%{_libdir}/qt4/plugins \ |
02beafe3 | 151 | -DMYSQLD_EXECUTABLE=/usr/sbin/mysqld \ |
0d7bac08 | 152 | %if "%{_lib}" == "lib64" |
153 | -DLIB_SUFFIX=64 \ | |
154 | %endif | |
155 | .. | |
156 | ||
157 | %{__make} | |
158 | ||
159 | %install | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
45bf3eb9 AM |
162 | install -d $RPM_BUILD_ROOT%{_libdir}/kde4/akonadi |
163 | ||
0d7bac08 | 164 | %{__make} -C build install \ |
165 | DESTDIR=$RPM_BUILD_ROOT | |
166 | ||
167 | %clean | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
03ca1266 | 170 | %post libs -p /sbin/ldconfig |
171 | %postun libs -p /sbin/ldconfig | |
0d7bac08 | 172 | |
173 | %files | |
174 | %defattr(644,root,root,755) | |
c7e49181 AM |
175 | %attr(755,root,root) %{_bindir}/akonadi_agent_launcher |
176 | %attr(755,root,root) %{_bindir}/akonadi_agent_server | |
0d7bac08 | 177 | %attr(755,root,root) %{_bindir}/akonadi_control |
f63ebc39 | 178 | %attr(755,root,root) %{_bindir}/akonadi_rds |
0d7bac08 | 179 | %attr(755,root,root) %{_bindir}/akonadictl |
180 | %attr(755,root,root) %{_bindir}/akonadiserver | |
564abada | 181 | %attr(755,root,root) %{_bindir}/asapcat |
0d7bac08 | 182 | %dir %{_datadir}/config/akonadi |
183 | %{_datadir}/config/akonadi/mysql-global.conf | |
f63ebc39 | 184 | %{_datadir}/config/akonadi/mysql-global-mobile.conf |
0d7bac08 | 185 | %{_datadir}/mime/packages/akonadi-mime.xml |
186 | ||
03ca1266 | 187 | %files libs |
188 | %defattr(644,root,root,755) | |
45bf3eb9 | 189 | %dir %{_libdir}/kde4/akonadi |
03ca1266 | 190 | %attr(755,root,root) %ghost %{_libdir}/libakonadiprotocolinternals.so.? |
191 | %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so.*.*.* | |
d1a3b799 | 192 | %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite3.so |
03ca1266 | 193 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.AgentManager.xml |
c804c5a9 | 194 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Search.xml |
03ca1266 | 195 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Status.xml |
196 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationManager.xml | |
c7e49181 | 197 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationSource.xml |
ffda2869 | 198 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Preprocessor.xml |
03ca1266 | 199 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Resource.xml |
ffda2869 | 200 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Tracer.xml |
8b15ea75 | 201 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Control.xml |
202 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.ControlManager.xml | |
203 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.DebugInterface.xml | |
8b15ea75 | 204 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Server.xml |
2b6829f7 | 205 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.StorageDebugger.xml |
8b15ea75 | 206 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.TracerNotification.xml |
207 | %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service | |
03ca1266 | 208 | |
0d7bac08 | 209 | %files devel |
210 | %defattr(644,root,root,755) | |
149367d0 | 211 | %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so |
9fe7cf50 | 212 | %{_libdir}/cmake/Akonadi |
0d7bac08 | 213 | %{_includedir}/akonadi |
70d6c67d | 214 | %{_pkgconfigdir}/akonadi.pc |