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