]>
Commit | Line | Data |
---|---|---|
8a5a422a | 1 | # |
69577d81 | 2 | # Conditional build: |
51160b41 | 3 | %bcond_without kerberos5 # build without kerberos5 support |
4 | %bcond_without ldap # build without ldap support | |
69577d81 | 5 | # |
d187a81d | 6 | %define basever 2.30 |
e2ebc190 | 7 | %define apiver 1.2 |
11b4e6b5 | 8 | Summary: Evolution data server |
7628f827 | 9 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 10 | Name: evolution-data-server |
d187a81d | 11 | Version: 2.30.0 |
267890be | 12 | Release: 2 |
814bd254 MB |
13 | License: LGPL v2+ |
14 | Group: X11/Libraries | |
d187a81d | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.30/%{name}-%{version}.tar.bz2 |
f73d0e6c | 16 | # Source0-md5: a30de9370a9d388da1f9cc723126941c |
d187a81d | 17 | Patch0: %{name}-heimdal-headers.patch |
c22a020a | 18 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 19 | BuildRequires: GConf2-devel >= 2.26.0 |
c22a020a | 20 | BuildRequires: ORBit2-devel >= 1:2.14.8 |
f9dd3cd2 MB |
21 | BuildRequires: autoconf >= 2.58 |
22 | BuildRequires: automake >= 1:1.9 | |
e2ebc190 | 23 | BuildRequires: bison |
8f24fc3c | 24 | BuildRequires: cyrus-sasl-devel |
353eadf1 | 25 | BuildRequires: db-devel |
d187a81d | 26 | BuildRequires: dbus-glib-devel >= 0.60 |
96160e38 | 27 | BuildRequires: docbook-dtd412-xml |
814bd254 | 28 | BuildRequires: gettext-devel |
51cb5b15 | 29 | BuildRequires: glib2-devel >= 1:2.20.0 |
ea3ad516 | 30 | BuildRequires: gnome-common >= 2.20.0 |
d187a81d | 31 | BuildRequires: gperf |
51cb5b15 | 32 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
814bd254 | 33 | BuildRequires: gtk-doc >= 1.9 |
b025b6f4 | 34 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 35 | BuildRequires: intltool >= 0.40.0 |
51cb5b15 | 36 | BuildRequires: libbonobo-devel >= 2.24.0 |
d187a81d | 37 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
51cb5b15 PZ |
38 | BuildRequires: libgweather-devel >= 2.26.0 |
39 | BuildRequires: libical-devel >= 0.43 | |
40 | BuildRequires: libsoup-devel >= 2.26.0 | |
e2c48f95 | 41 | BuildRequires: libstdc++-devel |
353eadf1 | 42 | BuildRequires: libtool |
814bd254 | 43 | BuildRequires: libxml2-devel >= 1:2.6.31 |
94fa296c | 44 | BuildRequires: nspr-devel |
4e7b9656 | 45 | BuildRequires: nss-devel |
a33049a0 | 46 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} |
8f24fc3c | 47 | BuildRequires: openssl-devel |
353eadf1 | 48 | BuildRequires: pkgconfig |
7937d160 | 49 | BuildRequires: rpmbuild(macros) >= 1.304 |
483474c5 | 50 | BuildRequires: sed >= 4.0 |
f9dd3cd2 | 51 | BuildRequires: sqlite3-devel >= 3.5 |
814bd254 | 52 | BuildRequires: zlib-devel |
73b9c62c | 53 | Requires: %{name}-libs = %{version}-%{release} |
b11884f3 | 54 | # sr@Latn vs. sr@latin |
55 | Conflicts: glibc-misc < 6:2.7 | |
353eadf1 | 56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 57 | |
9b5d553a ER |
58 | %define schemadir /usr/share/openldap/schema |
59 | ||
11b4e6b5 | 60 | %description |
353eadf1 JB |
61 | The Evolution data server for the calendar and addressbook. |
62 | ||
5f6b5ac6 JR |
63 | %description -l pl.UTF-8 |
64 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 65 | |
9b5d553a ER |
66 | %package -n openldap-schema-evolutionperson |
67 | Summary: evolutionperson LDAP schema | |
7628f827 | 68 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
69 | Group: Networking/Daemons |
70 | Requires(post,postun): sed >= 4.0 | |
71 | Requires: openldap-servers | |
72 | ||
73 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
74 | This package contains evolutionperson.schema for openldap server. |
75 | ||
5f6b5ac6 | 76 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 77 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 78 | |
0931c5d7 JB |
79 | %package libs |
80 | Summary: Evolution Data Server library | |
7628f827 | 81 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
814bd254 | 82 | Group: X11/Libraries |
f9dd3cd2 | 83 | Requires: libsoup >= 2.26.0 |
0931c5d7 JB |
84 | |
85 | %description libs | |
86 | This package contains Evolution Data Server library. | |
87 | ||
5f6b5ac6 JR |
88 | %description libs -l pl.UTF-8 |
89 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 90 | |
11b4e6b5 | 91 | %package devel |
92 | Summary: Evolution data server development files | |
7628f827 | 93 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
814bd254 | 94 | Group: X11/Development/Libraries |
0931c5d7 | 95 | Requires: %{name}-libs = %{version}-%{release} |
51cb5b15 | 96 | Requires: GConf2-devel >= 2.26.0 |
c22a020a | 97 | Requires: ORBit2-devel >= 1:2.14.8 |
51cb5b15 PZ |
98 | Requires: glib2-devel >= 1:2.20.0 |
99 | Requires: gtk+2-devel >= 2:2.16.0 | |
b025b6f4 | 100 | %{?with_kerberos5:Requires: heimdal-devel} |
51cb5b15 | 101 | Requires: libbonobo-devel >= 2.24.0 |
51cb5b15 PZ |
102 | Requires: libical-devel >= 0.43 |
103 | Requires: libsoup-devel >= 2.26.0 | |
814bd254 | 104 | Requires: libxml2-devel >= 1:2.6.31 |
51cb5b15 | 105 | Requires: sqlite3-devel |
11b4e6b5 | 106 | |
107 | %description devel | |
46c4d742 | 108 | This package contains the files necessary to develop applications |
109 | using Evolution's data server libraries. | |
11b4e6b5 | 110 | |
5f6b5ac6 | 111 | %description devel -l pl.UTF-8 |
353eadf1 | 112 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 113 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 114 | |
8a5a422a | 115 | %package static |
116 | Summary: Evolution data server static libraries | |
7628f827 | 117 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
814bd254 | 118 | Group: X11/Development/Libraries |
f1e06abe | 119 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 120 | |
121 | %description static | |
122 | Evolution data server static libraries. | |
123 | ||
5f6b5ac6 | 124 | %description static -l pl.UTF-8 |
353eadf1 JB |
125 | Statyczne biblioteki serwera danych Evolution. |
126 | ||
ac5ccf41 | 127 | %package apidocs |
128 | Summary: e-d-s API documentation | |
7628f827 | 129 | Summary(pl.UTF-8): Dokumentacja API e-d-s |
ac5ccf41 | 130 | Group: Documentation |
131 | Requires: gtk-doc-common | |
132 | ||
133 | %description apidocs | |
134 | e-d-s API documentation. | |
135 | ||
5f6b5ac6 | 136 | %description apidocs -l pl.UTF-8 |
ac5ccf41 | 137 | Dokumentacja API e-d-s. |
138 | ||
11b4e6b5 | 139 | %prep |
4ff8ccbf | 140 | %setup -q |
a33049a0 | 141 | %patch0 -p1 |
11b4e6b5 | 142 | |
a99ed00a | 143 | # kill -L$withval/lib |
f9dd3cd2 | 144 | sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac |
a99ed00a | 145 | |
d187a81d MB |
146 | sed -i -e 's/^en@shaw//' po/LINGUAS |
147 | rm -f po/en@shaw.po | |
148 | ||
11b4e6b5 | 149 | %build |
df83f2ab | 150 | %{__gtkdocize} |
8f8bf49b | 151 | %{__glib_gettextize} |
152 | %{__intltoolize} | |
46c4d742 | 153 | %{__libtoolize} |
f9dd3cd2 | 154 | %{__aclocal} -I m4 |
46c4d742 | 155 | %{__autoheader} |
156 | %{__autoconf} | |
157 | %{__automake} | |
0f23eebb | 158 | |
a33049a0 JR |
159 | # Set LIBS so that configure will be able to link with static LDAP libraries, |
160 | # which depend on Cyrus SASL and OpenSSL. | |
161 | if pkg-config openssl ; then | |
162 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
163 | else | |
164 | LIBS="-lsasl2 -lssl -lcrypto" | |
165 | fi | |
166 | export LIBS | |
167 | ||
46c4d742 | 168 | %configure \ |
a99ed00a | 169 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ |
51160b41 | 170 | %{!?with_kerberos5:--with-krb5=no} \ |
a33049a0 JR |
171 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
172 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 173 | %{!?with_ldap:--with-openldap=no} \ |
aeafa52e | 174 | --enable-gnome-keyring=yes \ |
8a5a422a | 175 | --enable-gtk-doc \ |
176 | --enable-static \ | |
51cb5b15 | 177 | --with-libdb=%{_libdir} \ |
d187a81d MB |
178 | --with-html-dir=%{_gtkdocdir} \ |
179 | --disable-silent-rules | |
52730793 | 180 | |
51cb5b15 | 181 | %{__make} |
11b4e6b5 | 182 | |
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
51cb5b15 | 185 | install -d $RPM_BUILD_ROOT%{schemadir} |
11b4e6b5 | 186 | |
187 | %{__make} install \ | |
46c4d742 | 188 | DESTDIR=$RPM_BUILD_ROOT \ |
51cb5b15 | 189 | HTML_DIR=%{_gtkdocdir} |
94fa296c | 190 | |
9b5d553a ER |
191 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} |
192 | ||
51cb5b15 PZ |
193 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} |
194 | ||
46c4d742 | 195 | %find_lang %{name} --all-name |
11b4e6b5 | 196 | |
197 | %clean | |
198 | rm -rf $RPM_BUILD_ROOT | |
199 | ||
73b9c62c | 200 | %post libs -p /sbin/ldconfig |
201 | %postun libs -p /sbin/ldconfig | |
202 | ||
9b5d553a | 203 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
204 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
205 | %service -q ldap restart | |
9b5d553a ER |
206 | |
207 | %postun -n openldap-schema-evolutionperson | |
208 | if [ "$1" = "0" ]; then | |
7937d160 ER |
209 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
210 | %service -q ldap restart | |
9b5d553a ER |
211 | fi |
212 | ||
46c4d742 | 213 | %files -f %{name}.lang |
11b4e6b5 | 214 | %defattr(644,root,root,755) |
46c4d742 | 215 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 216 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
217 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
d187a81d MB |
218 | %attr(755,root,root) %{_libdir}/e-addressbook-factory |
219 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
e2ebc190 | 220 | %dir %{_libdir}/%{name}-%{apiver} |
221 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
e2ebc190 | 222 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so |
223 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
224 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
225 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
e2ebc190 | 226 | |
be45f956 | 227 | %if %{with ldap} |
e3a9d40d | 228 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 229 | %endif |
230 | ||
d187a81d MB |
231 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service |
232 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
233 | ||
e2ebc190 | 234 | %dir %{_datadir}/%{name}-%{basever} |
d187a81d | 235 | %{_datadir}/%{name}-%{basever}/ui |
e2ebc190 | 236 | %{_datadir}/%{name}-%{basever}/weather |
042cdced | 237 | %{_pixmapsdir}/%{name} |
46c4d742 | 238 | |
9b5d553a ER |
239 | %files -n openldap-schema-evolutionperson |
240 | %defattr(644,root,root,755) | |
814bd254 | 241 | %{schemadir}/evolutionperson.schema |
9b5d553a | 242 | |
0931c5d7 JB |
243 | %files libs |
244 | %defattr(644,root,root,755) | |
814bd254 | 245 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* |
4f0b1f53 | 246 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.14 |
814bd254 | 247 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* |
4f0b1f53 | 248 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.14 |
bf160059 MB |
249 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
250 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0 | |
814bd254 MB |
251 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* |
252 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9 | |
253 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7 | |
255 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
256 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2 | |
257 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
d187a81d | 258 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.7 |
814bd254 | 259 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
bf160059 | 260 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.11 |
814bd254 MB |
261 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.* |
262 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8 | |
263 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
814bd254 MB |
265 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.* |
266 | %attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1 | |
267 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1 | |
0931c5d7 | 269 | |
46c4d742 | 270 | %files devel |
11b4e6b5 | 271 | %defattr(644,root,root,755) |
814bd254 MB |
272 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so |
273 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
bf160059 | 274 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so |
814bd254 MB |
275 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so |
276 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
277 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
278 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
279 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
280 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so | |
281 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
814bd254 MB |
282 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so |
283 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so | |
284 | %{_libdir}/libcamel-%{apiver}.la | |
285 | %{_libdir}/libcamel-provider-%{apiver}.la | |
bf160059 | 286 | %{_libdir}/libebackend-%{apiver}.la |
814bd254 MB |
287 | %{_libdir}/libebook-%{apiver}.la |
288 | %{_libdir}/libecal-%{apiver}.la | |
289 | %{_libdir}/libedata-book-%{apiver}.la | |
290 | %{_libdir}/libedata-cal-%{apiver}.la | |
291 | %{_libdir}/libedataserver-%{apiver}.la | |
292 | %{_libdir}/libedataserverui-%{apiver}.la | |
293 | %{_libdir}/libegroupwise-%{apiver}.la | |
814bd254 MB |
294 | %{_libdir}/libgdata-%{apiver}.la |
295 | %{_libdir}/libgdata-google-%{apiver}.la | |
296 | %{_includedir}/evolution-data-server-%{basever} | |
297 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
298 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
299 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
bf160059 | 300 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
301 | %{_pkgconfigdir}/libebook-%{apiver}.pc |
302 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
303 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
304 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
305 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
306 | %{_pkgconfigdir}/libedataserverui-%{apiver}.pc | |
307 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
814bd254 MB |
308 | %{_pkgconfigdir}/libgdata-%{apiver}.pc |
309 | %{_pkgconfigdir}/libgdata-google-%{apiver}.pc | |
8a5a422a | 310 | |
311 | %files static | |
312 | %defattr(644,root,root,755) | |
814bd254 MB |
313 | %{_libdir}/libcamel-%{apiver}.a |
314 | %{_libdir}/libcamel-provider-%{apiver}.a | |
bf160059 | 315 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
316 | %{_libdir}/libebook-%{apiver}.a |
317 | %{_libdir}/libecal-%{apiver}.a | |
318 | %{_libdir}/libedata-book-%{apiver}.a | |
319 | %{_libdir}/libedata-cal-%{apiver}.a | |
320 | %{_libdir}/libedataserver-%{apiver}.a | |
321 | %{_libdir}/libedataserverui-%{apiver}.a | |
322 | %{_libdir}/libegroupwise-%{apiver}.a | |
814bd254 MB |
323 | %{_libdir}/libgdata-%{apiver}.a |
324 | %{_libdir}/libgdata-google-%{apiver}.a | |
ac5ccf41 | 325 | |
326 | %files apidocs | |
327 | %defattr(644,root,root,755) | |
814bd254 | 328 | %{_gtkdocdir}/camel |
bf160059 | 329 | %{_gtkdocdir}/libebackend |
814bd254 MB |
330 | %{_gtkdocdir}/libebook |
331 | %{_gtkdocdir}/libecal | |
332 | %{_gtkdocdir}/libedata-book | |
333 | %{_gtkdocdir}/libedata-cal | |
334 | %{_gtkdocdir}/libedataserver | |
335 | %{_gtkdocdir}/libedataserverui |