1 | %define _qt4_ver 4.8.0 |
---|
2 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver}) |
---|
3 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4) |
---|
4 | %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins) |
---|
5 | |
---|
6 | ## Can be either MYSQL(uptsream default), SQLITE, or POSTGRES(untested) |
---|
7 | %global database_backend SQLITE |
---|
8 | |
---|
9 | Name: akonadi |
---|
10 | Summary: PIM Storage Service |
---|
11 | Summary(ja): PIM ストレージサービス |
---|
12 | Version: 1.10.2 |
---|
13 | Release: 1%{?_dist_release} |
---|
14 | |
---|
15 | Group: System Environment/Libraries |
---|
16 | License: LGPLv2+ |
---|
17 | URL: http://download.akonadi-project.org/ |
---|
18 | |
---|
19 | Source0: http://download.akonadi-project.org/akonadi-%{version}.tar.bz2 |
---|
20 | |
---|
21 | %define mysql_conf_timestamp 20110629 |
---|
22 | # shrink default initial db size a bit (approx 140mb->28mb) |
---|
23 | Patch1: akonadi-mysql_conf.patch |
---|
24 | |
---|
25 | ## upstream patches |
---|
26 | |
---|
27 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
28 | BuildRequires: cmake >= 2.6.0 |
---|
29 | BuildRequires: qt4-devel >= 4.4 |
---|
30 | BuildRequires: automoc4 |
---|
31 | BuildRequires: MySQL-devel |
---|
32 | BuildRequires: MySQL-server |
---|
33 | # for xsltproc |
---|
34 | BuildRequires: libxslt |
---|
35 | BuildRequires: shared-mime-info |
---|
36 | BuildRequires: libboost-devel libboost-program-options |
---|
37 | BuildRequires: soprano-devel >= 2.5.0 |
---|
38 | BuildRequires: sqlite3-devel |
---|
39 | BuildRequires: libICE-devel libXext-devel |
---|
40 | |
---|
41 | Requires: qt4 >= %{_qt4_version} |
---|
42 | |
---|
43 | %if "%{?database_backend}" == "MYSQL" |
---|
44 | Requires: qt4-MySQL |
---|
45 | # not *strictly* required, but we need a functional default configuration |
---|
46 | Requires: MySQL-server |
---|
47 | %endif |
---|
48 | |
---|
49 | Obsoletes: akonadi-sqlite < %{version}-%{release} |
---|
50 | |
---|
51 | Requires(post): /sbin/ldconfig |
---|
52 | Requires(postun): /sbin/ldconfig |
---|
53 | |
---|
54 | %description |
---|
55 | %{summary}. |
---|
56 | %if "%{?database_backend}" == "MYSQL" |
---|
57 | Requires an available instance of mysql server at runtime. |
---|
58 | Akonadi can spawn a per-user one automatically if the mysql-server |
---|
59 | package is installed on the machine. |
---|
60 | See also: %{_sysconfdir}/akonadi/mysql-global.conf |
---|
61 | %endif |
---|
62 | |
---|
63 | %package devel |
---|
64 | Summary: Developer files for %{name} |
---|
65 | Summary(ja): %{name} の開発用ファイル |
---|
66 | Group: Development/Libraries |
---|
67 | Requires: %{name} = %{version}-%{release} |
---|
68 | Requires: qt4-devel |
---|
69 | |
---|
70 | %description devel |
---|
71 | %{summary}. |
---|
72 | |
---|
73 | |
---|
74 | %prep |
---|
75 | %setup -q |
---|
76 | #%patch1 -p1 -b .mysql_conf |
---|
77 | #touch -d %{mysql_conf_timestamp} server/src/storage/mysql-global.conf |
---|
78 | |
---|
79 | %build |
---|
80 | %ifarch x86_64 |
---|
81 | PATH="$PATH:`/usr/bin/pkg-config --variable=bindir Qt`" |
---|
82 | %endif |
---|
83 | |
---|
84 | mkdir -p %{_target_platform} |
---|
85 | pushd %{_target_platform} |
---|
86 | %cmake \ |
---|
87 | -DCONFIG_INSTALL_DIR=%{_sysconfdir} \ |
---|
88 | -DINSTALL_QSQLITE_IN_QT_PREFIX:PATH=%{_qt4_plugindir} \ |
---|
89 | %{?database_backend:-DDATABASE_BACKEND=%{database_backend}} \ |
---|
90 | .. |
---|
91 | popd |
---|
92 | |
---|
93 | make %{?_smp_mflags} -C %{_target_platform} |
---|
94 | |
---|
95 | |
---|
96 | %install |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
99 | |
---|
100 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/akonadi/agents |
---|
101 | |
---|
102 | # create "big" config (analog to -mobile.conf) |
---|
103 | install -p \ |
---|
104 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global.conf \ |
---|
105 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global-big.conf |
---|
106 | |
---|
107 | # default to small/mobile config |
---|
108 | install -p \ |
---|
109 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global-mobile.conf \ |
---|
110 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global.conf |
---|
111 | |
---|
112 | touch -d %{mysql_conf_timestamp} \ |
---|
113 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-global*.conf \ |
---|
114 | $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-local.conf |
---|
115 | |
---|
116 | # create/own %{_libdir}/akondi |
---|
117 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/akonadi |
---|
118 | |
---|
119 | #%check |
---|
120 | #make test -C %{_target_platform} |
---|
121 | #export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
122 | #test "$(pkg-config --modversion akonadi)" = "%{version}" |
---|
123 | |
---|
124 | %clean |
---|
125 | rm -rf $RPM_BUILD_ROOT |
---|
126 | |
---|
127 | %post -p /sbin/ldconfig |
---|
128 | |
---|
129 | %posttrans |
---|
130 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
131 | |
---|
132 | %postun |
---|
133 | /sbin/ldconfig ||: |
---|
134 | if [ $1 -eq 0 ] ; then |
---|
135 | update-mime-database %{_datadir}/mime &> /dev/null ||: |
---|
136 | fi |
---|
137 | |
---|
138 | |
---|
139 | %files |
---|
140 | %defattr(-,root,root,-) |
---|
141 | %doc AUTHORS lgpl-license |
---|
142 | %dir %{_sysconfdir}/akonadi |
---|
143 | # example conf's |
---|
144 | %{_sysconfdir}/akonadi/mysql-global-big.conf |
---|
145 | %{_sysconfdir}/akonadi/mysql-global-mobile.conf |
---|
146 | %config(noreplace) %{_sysconfdir}/akonadi/mysql-global.conf |
---|
147 | %config(noreplace) %{_sysconfdir}/akonadi/mysql-local.conf |
---|
148 | %{_bindir}/akonadi_agent_launcher |
---|
149 | %{_bindir}/akonadi_agent_server |
---|
150 | %{_bindir}/akonadi_control |
---|
151 | %{_bindir}/akonadi_rds |
---|
152 | %{_bindir}/akonadictl |
---|
153 | %{_bindir}/akonadiserver |
---|
154 | %{_bindir}/asapcat |
---|
155 | %{_libdir}/libakonadi*.so.1* |
---|
156 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml |
---|
157 | %{_datadir}/dbus-1/services/org.freedesktop.Akonadi.*.service |
---|
158 | %{_datadir}/mime/packages/akonadi-mime.xml |
---|
159 | %{_datadir}/akonadi |
---|
160 | %{_qt4_plugindir}/sqldrivers/libqsqlite3.so |
---|
161 | |
---|
162 | %files devel |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %{_includedir}/akonadi |
---|
165 | %{_libdir}/pkgconfig/akonadi.pc |
---|
166 | %{_libdir}/libakonadi*.so |
---|
167 | %{_libdir}/cmake/Akonadi |
---|
168 | |
---|
169 | |
---|
170 | %changelog |
---|
171 | * Sat Sep 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.2-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Wed Jun 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.9.2-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Sun Nov 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.1-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.0-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Mon Jan 9 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.2-2 |
---|
184 | - rebuilt with qt-4.8.0 |
---|
185 | |
---|
186 | * Sun Oct 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.2-1 |
---|
187 | - new upstream release |
---|
188 | |
---|
189 | * Sun Sep 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.1-1 |
---|
190 | - new upstream release |
---|
191 | |
---|
192 | * Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-2 |
---|
193 | - rebuilt with soprano-2.7.0-2 |
---|
194 | |
---|
195 | * Sat Jul 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-1 |
---|
196 | - new upstream release |
---|
197 | |
---|
198 | * Thu Mar 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-2 |
---|
199 | - rebuilt with qt4-4.7.2 |
---|
200 | |
---|
201 | * Mon Jan 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.5.0-1 |
---|
202 | - new upstream release |
---|
203 | |
---|
204 | * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-2 |
---|
205 | - rebuilt with rpm-4.8.1 |
---|
206 | |
---|
207 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.0-1 |
---|
208 | - new upstream release |
---|
209 | - added BR: sqlite3-devel |
---|
210 | - added sqlite subpackage |
---|
211 | |
---|
212 | * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3 |
---|
213 | - new upstream release |
---|
214 | |
---|
215 | * Sun Apr 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-3 |
---|
216 | - updated Patch1 |
---|
217 | - added BR: MySQL-server |
---|
218 | |
---|
219 | * Sun Feb 14 2010 Shu KONNO <owa@bg.wakwak.com> - 1.3.1-2 |
---|
220 | - added qmake path to PATH (if x86_64) |
---|
221 | |
---|
222 | * Sat Feb 13 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.1-1 |
---|
223 | - new upstream release |
---|
224 | - built with new toolchain |
---|
225 | |
---|
226 | * Thu Sep 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.1-1 |
---|
227 | - new upstream release |
---|
228 | |
---|
229 | * Wed Sep 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 1.2.0-4 |
---|
230 | - use %%cmake macro |
---|
231 | - removed MySQL-server from BuildRequires: |
---|
232 | |
---|
233 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-3 |
---|
234 | - fixed Requires |
---|
235 | |
---|
236 | * Sat Aug 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.2.0-2 |
---|
237 | - Initial build for Vine |
---|
238 | |
---|
239 | * Thu Jul 30 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.0-1 |
---|
240 | - Akonadi 1.2.0 |
---|
241 | |
---|
242 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.95-2 |
---|
243 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
244 | |
---|
245 | * Thu Jun 25 2009 Than Ngo <than@redhat.com> - 1.1.95-1 |
---|
246 | - 1.1.95 |
---|
247 | |
---|
248 | * Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.90-1 |
---|
249 | - akonadi-1.1.90 |
---|
250 | |
---|
251 | * Tue May 26 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.85-3 |
---|
252 | - akonadi.pc.cmake: s/AKONADI_LIB_VERSION_STRING/AKONADI_VERSION_STRING/ |
---|
253 | |
---|
254 | * Tue May 12 2009 Than Ngo <than@redhat.com> 1.1.85-2 |
---|
255 | - fix rpm file list |
---|
256 | |
---|
257 | * Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.85-1 |
---|
258 | - akonadi-1.1.85 |
---|
259 | |
---|
260 | * Thu Apr 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.2-1 |
---|
261 | - akonadi-1.1.2 |
---|
262 | - optimize scriptlets a bit |
---|
263 | |
---|
264 | * Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-6 |
---|
265 | - rev startup patch |
---|
266 | - BR: cmake >= 2.6.0 |
---|
267 | - preserve timestamp's on mysql*.conf's |
---|
268 | |
---|
269 | * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-5 |
---|
270 | - own %%_sysconfig/akonadi/mysql-local.conf |
---|
271 | - startup patch: reset conf only when needed, and clear mysql log file on update |
---|
272 | |
---|
273 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4 |
---|
274 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
275 | |
---|
276 | * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3 |
---|
277 | - shrink default db initial size a bit (approx 140mb->28mb) |
---|
278 | - drop extraneous RPATH-cmake baggage |
---|
279 | |
---|
280 | * Wed Jan 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-1 |
---|
281 | - 1.1.1 |
---|
282 | |
---|
283 | * Sun Jan 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1 |
---|
284 | - 1.1.0 |
---|
285 | |
---|
286 | * Tue Dec 16 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.81-1 |
---|
287 | - 1.0.81 |
---|
288 | |
---|
289 | * Mon Dec 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.80-3 |
---|
290 | - restore Requires: mysql-server |
---|
291 | |
---|
292 | * Mon Dec 01 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.80-2 |
---|
293 | - own /usr/share/akonadi and /usr/share/akonadi/agents (#473595) |
---|
294 | |
---|
295 | * Wed Nov 26 2008 Than Ngo <than@redhat.com> - 1.0.80-1 |
---|
296 | - 1.0.80 |
---|
297 | |
---|
298 | * Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4 |
---|
299 | - drop Requires: mysql-server (for now), mention in %%description |
---|
300 | |
---|
301 | * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3 |
---|
302 | - Requires: mysql-server |
---|
303 | |
---|
304 | * Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2 |
---|
305 | - BR: mysql-server |
---|
306 | - Requires: qt4-mysql |
---|
307 | - cleanup spec |
---|
308 | |
---|
309 | * Wed Jul 23 2008 Than Ngo <than@redhat.com> - 1.0.0-1 |
---|
310 | - 1.0.0 |
---|
311 | |
---|
312 | * Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1 |
---|
313 | - akonadi-0.82.0 |
---|
314 | |
---|
315 | * Tue Jun 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787 |
---|
316 | - BR automoc, drop automoc hack |
---|
317 | |
---|
318 | * Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787 |
---|
319 | - update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1) |
---|
320 | - restore builtin automoc4 for now |
---|
321 | - update file list, require pkgconfig in -devel (.pc file now included) |
---|
322 | |
---|
323 | * Mon May 5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2 |
---|
324 | - -devel: remove bogus Requires: pkgconfig |
---|
325 | |
---|
326 | * Sat May 3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1 |
---|
327 | - first Fedora package |
---|