]>
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 | # |
66171f5f | 6 | %define basever 2.32 |
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 |
c174c0e3 MB |
11 | Version: 2.32.1 |
12 | Release: 1 | |
814bd254 MB |
13 | License: LGPL v2+ |
14 | Group: X11/Libraries | |
66171f5f | 15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.32/%{name}-%{version}.tar.bz2 |
c174c0e3 | 16 | # Source0-md5: 230f9dee68855c8a0ca09f3c3fea8faf |
c22a020a | 17 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 18 | BuildRequires: GConf2-devel >= 2.26.0 |
c22a020a | 19 | BuildRequires: ORBit2-devel >= 1:2.14.8 |
f9dd3cd2 | 20 | BuildRequires: autoconf >= 2.58 |
66171f5f | 21 | BuildRequires: automake >= 1:1.10 |
e2ebc190 | 22 | BuildRequires: bison |
8f24fc3c | 23 | BuildRequires: cyrus-sasl-devel |
353eadf1 | 24 | BuildRequires: db-devel |
d187a81d | 25 | BuildRequires: dbus-glib-devel >= 0.60 |
96160e38 | 26 | BuildRequires: docbook-dtd412-xml |
814bd254 | 27 | BuildRequires: gettext-devel |
66171f5f | 28 | BuildRequires: glib2-devel >= 1:2.26.0 |
ea3ad516 | 29 | BuildRequires: gnome-common >= 2.20.0 |
d187a81d | 30 | BuildRequires: gperf |
51cb5b15 | 31 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
814bd254 | 32 | BuildRequires: gtk-doc >= 1.9 |
b025b6f4 | 33 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 34 | BuildRequires: intltool >= 0.40.0 |
51cb5b15 | 35 | BuildRequires: libbonobo-devel >= 2.24.0 |
66171f5f | 36 | BuildRequires: libgdata-devel >= 0.6.3 |
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 |
66171f5f | 98 | Requires: glib2-devel >= 1:2.26.0 |
51cb5b15 | 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 |
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 | |
d187a81d MB |
145 | sed -i -e 's/^en@shaw//' po/LINGUAS |
146 | rm -f po/en@shaw.po | |
147 | ||
11b4e6b5 | 148 | %build |
df83f2ab | 149 | %{__gtkdocize} |
8f8bf49b | 150 | %{__glib_gettextize} |
151 | %{__intltoolize} | |
46c4d742 | 152 | %{__libtoolize} |
f9dd3cd2 | 153 | %{__aclocal} -I m4 |
46c4d742 | 154 | %{__autoheader} |
155 | %{__autoconf} | |
156 | %{__automake} | |
0f23eebb | 157 | |
a33049a0 JR |
158 | # Set LIBS so that configure will be able to link with static LDAP libraries, |
159 | # which depend on Cyrus SASL and OpenSSL. | |
160 | if pkg-config openssl ; then | |
161 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
162 | else | |
163 | LIBS="-lsasl2 -lssl -lcrypto" | |
164 | fi | |
165 | export LIBS | |
166 | ||
46c4d742 | 167 | %configure \ |
a99ed00a | 168 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ |
51160b41 | 169 | %{!?with_kerberos5:--with-krb5=no} \ |
a33049a0 JR |
170 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
171 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 172 | %{!?with_ldap:--with-openldap=no} \ |
aeafa52e | 173 | --enable-gnome-keyring=yes \ |
8a5a422a | 174 | --enable-gtk-doc \ |
175 | --enable-static \ | |
51cb5b15 | 176 | --with-libdb=%{_libdir} \ |
d187a81d MB |
177 | --with-html-dir=%{_gtkdocdir} \ |
178 | --disable-silent-rules | |
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 | ||
46c4d742 | 194 | %find_lang %{name} --all-name |
11b4e6b5 | 195 | |
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
73b9c62c | 199 | %post libs -p /sbin/ldconfig |
200 | %postun libs -p /sbin/ldconfig | |
201 | ||
9b5d553a | 202 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
203 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
204 | %service -q ldap restart | |
9b5d553a ER |
205 | |
206 | %postun -n openldap-schema-evolutionperson | |
207 | if [ "$1" = "0" ]; then | |
7937d160 ER |
208 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
209 | %service -q ldap restart | |
9b5d553a ER |
210 | fi |
211 | ||
46c4d742 | 212 | %files -f %{name}.lang |
11b4e6b5 | 213 | %defattr(644,root,root,755) |
46c4d742 | 214 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 215 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
216 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
d187a81d MB |
217 | %attr(755,root,root) %{_libdir}/e-addressbook-factory |
218 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
e2ebc190 | 219 | %dir %{_libdir}/%{name}-%{apiver} |
220 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
e2ebc190 | 221 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so |
222 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
223 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
224 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
e2ebc190 | 225 | |
be45f956 | 226 | %if %{with ldap} |
e3a9d40d | 227 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 228 | %endif |
229 | ||
d187a81d MB |
230 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service |
231 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
232 | ||
e2ebc190 | 233 | %dir %{_datadir}/%{name}-%{basever} |
d187a81d | 234 | %{_datadir}/%{name}-%{basever}/ui |
e2ebc190 | 235 | %{_datadir}/%{name}-%{basever}/weather |
042cdced | 236 | %{_pixmapsdir}/%{name} |
46c4d742 | 237 | |
9b5d553a ER |
238 | %files -n openldap-schema-evolutionperson |
239 | %defattr(644,root,root,755) | |
814bd254 | 240 | %{schemadir}/evolutionperson.schema |
9b5d553a | 241 | |
0931c5d7 JB |
242 | %files libs |
243 | %defattr(644,root,root,755) | |
814bd254 | 244 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* |
66171f5f | 245 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.19 |
814bd254 | 246 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* |
66171f5f | 247 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.19 |
bf160059 MB |
248 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
249 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0 | |
814bd254 | 250 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* |
66171f5f | 251 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.10 |
814bd254 | 252 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* |
66171f5f | 253 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.8 |
814bd254 | 254 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* |
66171f5f | 255 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.8 |
814bd254 | 256 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* |
66171f5f | 257 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.10 |
814bd254 | 258 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
66171f5f | 259 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.14 |
814bd254 | 260 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.* |
66171f5f | 261 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.11 |
814bd254 MB |
262 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* |
263 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
0931c5d7 | 264 | |
46c4d742 | 265 | %files devel |
11b4e6b5 | 266 | %defattr(644,root,root,755) |
814bd254 MB |
267 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so |
268 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
bf160059 | 269 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so |
814bd254 MB |
270 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so |
271 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
272 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
273 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
274 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
275 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so | |
276 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
814bd254 MB |
277 | %{_libdir}/libcamel-%{apiver}.la |
278 | %{_libdir}/libcamel-provider-%{apiver}.la | |
bf160059 | 279 | %{_libdir}/libebackend-%{apiver}.la |
814bd254 MB |
280 | %{_libdir}/libebook-%{apiver}.la |
281 | %{_libdir}/libecal-%{apiver}.la | |
282 | %{_libdir}/libedata-book-%{apiver}.la | |
283 | %{_libdir}/libedata-cal-%{apiver}.la | |
284 | %{_libdir}/libedataserver-%{apiver}.la | |
285 | %{_libdir}/libedataserverui-%{apiver}.la | |
286 | %{_libdir}/libegroupwise-%{apiver}.la | |
814bd254 MB |
287 | %{_includedir}/evolution-data-server-%{basever} |
288 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
289 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
290 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
bf160059 | 291 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
292 | %{_pkgconfigdir}/libebook-%{apiver}.pc |
293 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
294 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
295 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
296 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
297 | %{_pkgconfigdir}/libedataserverui-%{apiver}.pc | |
298 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
8a5a422a | 299 | |
300 | %files static | |
301 | %defattr(644,root,root,755) | |
814bd254 MB |
302 | %{_libdir}/libcamel-%{apiver}.a |
303 | %{_libdir}/libcamel-provider-%{apiver}.a | |
bf160059 | 304 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
305 | %{_libdir}/libebook-%{apiver}.a |
306 | %{_libdir}/libecal-%{apiver}.a | |
307 | %{_libdir}/libedata-book-%{apiver}.a | |
308 | %{_libdir}/libedata-cal-%{apiver}.a | |
309 | %{_libdir}/libedataserver-%{apiver}.a | |
310 | %{_libdir}/libedataserverui-%{apiver}.a | |
311 | %{_libdir}/libegroupwise-%{apiver}.a | |
ac5ccf41 | 312 | |
313 | %files apidocs | |
314 | %defattr(644,root,root,755) | |
814bd254 | 315 | %{_gtkdocdir}/camel |
bf160059 | 316 | %{_gtkdocdir}/libebackend |
814bd254 MB |
317 | %{_gtkdocdir}/libebook |
318 | %{_gtkdocdir}/libecal | |
319 | %{_gtkdocdir}/libedata-book | |
320 | %{_gtkdocdir}/libedata-cal | |
321 | %{_gtkdocdir}/libedataserver | |
322 | %{_gtkdocdir}/libedataserverui |