]> git.pld-linux.org Git - packages/akonadi.git/blob - akonadi.spec
boost rebuild
[packages/akonadi.git] / akonadi.spec
1 %define         snap            svn1057960
2 %define         qtver           4.8.1
3 Summary:        Akonadi - The PIM Storage Service
4 Summary(pl.UTF-8):      Akonadi - usługa przechowywania danych dla aplikacji PIM
5 Name:           akonadi
6 Version:        1.13.0
7 Release:        20
8 License:        GPL v2+
9 Group:          X11/Applications
10 Source0:        ftp://ftp.kde.org/pub/kde/stable/akonadi/src/%{name}-%{version}.tar.bz2
11 # Source0-md5:  84eb2e471bd6bdfe54a2a2f1d858c07d
12 # svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/akonadi/
13 #Source0:       %{name}-%{version}-%{snap}.tar.bz2
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
44 Patch31:        moc.patch
45 URL:            http://pim.kde.org/akonadi/
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}
52 BuildRequires:  automoc4
53 BuildRequires:  boost-devel
54 #BuildRequires: clucene-core-devel >= 0.9.16a-2
55 BuildRequires:  cmake >= 2.8.0
56 BuildRequires:  libxslt-progs
57 BuildRequires:  qt4-build >= %{qtver}
58 BuildRequires:  qt4-qmake >= %{qtver}
59 BuildRequires:  rpmbuild(macros) >= 1.293
60 BuildRequires:  shared-mime-info
61 BuildRequires:  soprano-devel >= 2.4.64
62 Requires:       %{name}-libs = %{version}-%{release}
63 Requires:       QtSql-mysql
64 Requires:       mysql
65 Conflicts:      ka5-akonadi >= 21
66 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68 %description
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.
76
77 %description -l pl.UTF-8
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.
85
86 %package devel
87 Summary:        Header files for Akonadi
88 Summary(pl.UTF-8):      Pliki nagłówkowe dla Akonadi
89 Group:          Development/Libraries
90 Requires:       %{name}-libs = %{version}-%{release}
91
92 %description devel
93 Header files needed to build Akonadi client libraries and
94 applications.
95
96 %description devel -l pl.UTF-8
97 Pliki nagłówkowe do tworzenia bibliotek klienckich i aplikacji
98 używających Akonadi.
99
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
111 %prep
112 %setup -q
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
143 %patch31 -p1
144
145 %build
146 install -d build
147 cd build
148 %cmake \
149         -DWITH_SOPRANO=on \
150         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
151         -DINSTALL_QSQLITE_IN_QT_PREFIX=%{_libdir}/qt4/plugins \
152         -DMYSQLD_EXECUTABLE=/usr/sbin/mysqld \
153 %if "%{_lib}" == "lib64"
154         -DLIB_SUFFIX=64 \
155 %endif
156         ..
157
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162
163 install -d $RPM_BUILD_ROOT%{_libdir}/kde4/akonadi
164
165 %{__make} -C build install \
166         DESTDIR=$RPM_BUILD_ROOT
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %post   libs -p /sbin/ldconfig
172 %postun libs -p /sbin/ldconfig
173
174 %files
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_bindir}/akonadi_agent_launcher
177 %attr(755,root,root) %{_bindir}/akonadi_agent_server
178 %attr(755,root,root) %{_bindir}/akonadi_control
179 %attr(755,root,root) %{_bindir}/akonadi_rds
180 %attr(755,root,root) %{_bindir}/akonadictl
181 %attr(755,root,root) %{_bindir}/akonadiserver
182 %attr(755,root,root) %{_bindir}/asapcat
183 %dir %{_datadir}/config/akonadi
184 %{_datadir}/config/akonadi/mysql-global.conf
185 %{_datadir}/config/akonadi/mysql-global-mobile.conf
186 %{_datadir}/mime/packages/akonadi-mime.xml
187
188 %files libs
189 %defattr(644,root,root,755)
190 %dir %{_libdir}/kde4/akonadi
191 %attr(755,root,root) %ghost %{_libdir}/libakonadiprotocolinternals.so.?
192 %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so.*.*.*
193 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite3.so
194 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.AgentManager.xml
195 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Search.xml
196 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Agent.Status.xml
197 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationManager.xml
198 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.NotificationSource.xml
199 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Preprocessor.xml
200 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Resource.xml
201 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Tracer.xml
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
205 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.Server.xml
206 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.StorageDebugger.xml
207 %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.TracerNotification.xml
208 %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service
209
210 %files devel
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/libakonadiprotocolinternals.so
213 %{_libdir}/cmake/Akonadi
214 %{_includedir}/akonadi
215 %{_pkgconfigdir}/akonadi.pc
This page took 0.099355 seconds and 4 git commands to generate.