]>
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 |
c59a5d26 | 7 | Release: 22 |
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 |
80e8cf29 | 65 | Conflicts: ka5-akonadi >= 21 |
0d7bac08 | 66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67 | ||
68 | %description | |
7da900c5 ER |
69 | Akonadi is a personal information management (PIM) framework for KDE |
70 | 4.1 and newer. Akonadi will function as an extensible data storage for | |
71 | all PIM applications. | |
72 | ||
73 | Besides data storage, Akonadi has several other components including | |
74 | search, and a library (cache) for easy access and notification of data | |
75 | changes. | |
0d7bac08 | 76 | |
77 | %description -l pl.UTF-8 | |
149367d0 JB |
78 | Akonadi do szkielet zarządzania informacjami osobistymi (PIM) dla KDE |
79 | w wersji 4.1 i nowszych. Działa jako rozszerzalny system | |
80 | przechowywania danych dla wszystkich aplikacji PIM. | |
81 | ||
82 | Poza przechowywaniem danych Akonadi ma kilka innych komponentów, w tym | |
83 | wyszukiwanie oraz bibliotekę (pamięć podręczną) w celu łatwego dostępu | |
84 | i powiadamiania i zmianie danych. | |
0d7bac08 | 85 | |
86 | %package devel | |
149367d0 JB |
87 | Summary: Header files for Akonadi |
88 | Summary(pl.UTF-8): Pliki nagłówkowe dla Akonadi | |
0d7bac08 | 89 | Group: Development/Libraries |
03ca1266 | 90 | Requires: %{name}-libs = %{version}-%{release} |
0d7bac08 | 91 | |
92 | %description devel | |
149367d0 | 93 | Header files needed to build Akonadi client libraries and |
70d6c67d | 94 | applications. |
0d7bac08 | 95 | |
96 | %description devel -l pl.UTF-8 | |
149367d0 JB |
97 | Pliki nagłówkowe do tworzenia bibliotek klienckich i aplikacji |
98 | używających Akonadi. | |
0d7bac08 | 99 | |
03ca1266 | 100 | %package libs |
101 | Summary: Akonadi libraries | |
102 | Summary(pl.UTF-8): Biblioteki Akonadi | |
103 | Group: Libraries | |
104 | ||
105 | %description libs | |
106 | Akonadi libraries. | |
107 | ||
108 | %description libs -l pl.UTF-8 | |
109 | Biblioteki Akonadi. | |
110 | ||
0d7bac08 | 111 | %prep |
58ac1bb1 | 112 | %setup -q |
8a8f9fb3 AM |
113 | %patch1 -p1 |
114 | %patch2 -p1 | |
115 | %patch3 -p1 | |
116 | %patch4 -p1 | |
117 | %patch5 -p1 | |
118 | %patch6 -p1 | |
119 | %patch7 -p1 | |
120 | %patch8 -p1 | |
121 | %patch9 -p1 | |
122 | %patch10 -p1 | |
123 | %patch11 -p1 | |
124 | %patch12 -p1 | |
125 | %patch13 -p1 | |
126 | %patch14 -p1 | |
127 | %patch15 -p1 | |
128 | %patch16 -p1 | |
129 | %patch17 -p1 | |
130 | %patch18 -p1 | |
131 | %patch19 -p1 | |
132 | %patch20 -p1 | |
133 | %patch21 -p1 | |
134 | %patch22 -p1 | |
135 | %patch23 -p1 | |
136 | %patch24 -p1 | |
137 | %patch25 -p1 | |
138 | %patch26 -p1 | |
139 | %patch27 -p1 | |
140 | %patch28 -p1 | |
141 | %patch29 -p1 | |
142 | %patch30 -p1 | |
6a4f54d2 | 143 | %patch31 -p1 |
0d7bac08 | 144 | |
145 | %build | |
146 | install -d build | |
147 | cd build | |
148 | %cmake \ | |
878afe59 | 149 | -DWITH_SOPRANO=on \ |
0d7bac08 | 150 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
df3d944c | 151 | -DINSTALL_QSQLITE_IN_QT_PREFIX=%{_libdir}/qt4/plugins \ |
02beafe3 | 152 | -DMYSQLD_EXECUTABLE=/usr/sbin/mysqld \ |
0d7bac08 | 153 | %if "%{_lib}" == "lib64" |
154 | -DLIB_SUFFIX=64 \ | |
155 | %endif | |
156 | .. | |
157 | ||
158 | %{__make} | |
159 | ||
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
45bf3eb9 AM |
163 | install -d $RPM_BUILD_ROOT%{_libdir}/kde4/akonadi |
164 | ||
0d7bac08 | 165 | %{__make} -C build install \ |
166 | DESTDIR=$RPM_BUILD_ROOT | |
167 | ||
168 | %clean | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
03ca1266 | 171 | %post libs -p /sbin/ldconfig |
172 | %postun libs -p /sbin/ldconfig | |
0d7bac08 | 173 | |
174 | %files | |
175 | %defattr(644,root,root,755) | |
c7e49181 AM |
176 | %attr(755,root,root) %{_bindir}/akonadi_agent_launcher |
177 | %attr(755,root,root) %{_bindir}/akonadi_agent_server | |
0d7bac08 | 178 | %attr(755,root,root) %{_bindir}/akonadi_control |
f63ebc39 | 179 | %attr(755,root,root) %{_bindir}/akonadi_rds |
0d7bac08 | 180 | %attr(755,root,root) %{_bindir}/akonadictl |
181 | %attr(755,root,root) %{_bindir}/akonadiserver | |
564abada | 182 | %attr(755,root,root) %{_bindir}/asapcat |
0d7bac08 | 183 | %dir %{_datadir}/config/akonadi |
184 | %{_datadir}/config/akonadi/mysql-global.conf | |
f63ebc39 | 185 | %{_datadir}/config/akonadi/mysql-global-mobile.conf |
0d7bac08 | 186 | %{_datadir}/mime/packages/akonadi-mime.xml |
187 | ||
03ca1266 | 188 | %files libs |
189 | %defattr(644,root,root,755) | |
45bf3eb9 | 190 | %dir %{_libdir}/kde4/akonadi |
03ca1266 | 191 | %attr(755,root,root) %ghost %{_libdir}/libakonadiprotocolinternals.so.? |
192 | %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so.*.*.* | |
d1a3b799 | 193 | %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite3.so |
03ca1266 | 194 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.AgentManager.xml |
c804c5a9 | 195 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Search.xml |
03ca1266 | 196 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Status.xml |
197 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationManager.xml | |
c7e49181 | 198 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationSource.xml |
ffda2869 | 199 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Preprocessor.xml |
03ca1266 | 200 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Resource.xml |
ffda2869 | 201 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Tracer.xml |
8b15ea75 | 202 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Control.xml |
203 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.ControlManager.xml | |
204 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.DebugInterface.xml | |
8b15ea75 | 205 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Server.xml |
2b6829f7 | 206 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.StorageDebugger.xml |
8b15ea75 | 207 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.TracerNotification.xml |
208 | %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service | |
03ca1266 | 209 | |
0d7bac08 | 210 | %files devel |
211 | %defattr(644,root,root,755) | |
149367d0 | 212 | %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so |
9fe7cf50 | 213 | %{_libdir}/cmake/Akonadi |
0d7bac08 | 214 | %{_includedir}/akonadi |
70d6c67d | 215 | %{_pkgconfigdir}/akonadi.pc |