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