]>
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 | # |
c605b556 | 6 | %define basever 3.0 |
e2ebc190 | 7 | %define apiver 1.2 |
c605b556 | 8 | %define apiver2 3.0 |
8c6c91f2 | 9 | # |
11b4e6b5 | 10 | Summary: Evolution data server |
7628f827 | 11 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 12 | Name: evolution-data-server |
58b6c639 | 13 | Version: 3.0.3 |
21bfb114 | 14 | Release: 2 |
814bd254 MB |
15 | License: LGPL v2+ |
16 | Group: X11/Libraries | |
c605b556 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.0/%{name}-%{version}.tar.bz2 |
58b6c639 | 18 | # Source0-md5: e19d404f5785fbe39c303b675e23e15c |
c22a020a | 19 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 20 | BuildRequires: GConf2-devel >= 2.26.0 |
c605b556 | 21 | BuildRequires: autoconf >= 2.62 |
66171f5f | 22 | BuildRequires: automake >= 1:1.10 |
e2ebc190 | 23 | BuildRequires: bison |
96160e38 | 24 | BuildRequires: docbook-dtd412-xml |
c605b556 | 25 | BuildRequires: gettext-devel >= 0.18.1 |
26 | BuildRequires: glib2-devel >= 1:2.28.0 | |
ea3ad516 | 27 | BuildRequires: gnome-common >= 2.20.0 |
c605b556 | 28 | BuildRequires: gobject-introspection-devel >= 0.9.12 |
d187a81d | 29 | BuildRequires: gperf |
c605b556 | 30 | BuildRequires: gtk+3-devel >= 3.0.0 |
814bd254 | 31 | BuildRequires: gtk-doc >= 1.9 |
b025b6f4 | 32 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 33 | BuildRequires: intltool >= 0.40.0 |
c605b556 | 34 | BuildRequires: libgdata-devel >= 0.7.0 |
d187a81d | 35 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
9001a962 | 36 | BuildRequires: libgweather-devel >= 3.0.0 |
51cb5b15 PZ |
37 | BuildRequires: libical-devel >= 0.43 |
38 | BuildRequires: libsoup-devel >= 2.26.0 | |
e2c48f95 | 39 | BuildRequires: libstdc++-devel |
c605b556 | 40 | BuildRequires: libtool >= 2:2.2 |
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 |
c605b556 | 95 | Requires: glib2-devel >= 1:2.28.0 |
96 | Requires: gtk+3-devel >= 3.0.0 | |
b025b6f4 | 97 | %{?with_kerberos5:Requires: heimdal-devel} |
9339a81d | 98 | Requires: libgdata-devel >= 0.6.3 |
51cb5b15 PZ |
99 | Requires: libical-devel >= 0.43 |
100 | Requires: libsoup-devel >= 2.26.0 | |
814bd254 | 101 | Requires: libxml2-devel >= 1:2.6.31 |
78e9ab13 | 102 | Requires: nspr-devel |
103 | Requires: nss-devel | |
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 |
59a68038 JB |
127 | Summary: Evolution data server API documentation |
128 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
ac5ccf41 | 129 | Group: Documentation |
130 | Requires: gtk-doc-common | |
131 | ||
132 | %description apidocs | |
59a68038 | 133 | Evolution data server API documentation. |
ac5ccf41 | 134 | |
5f6b5ac6 | 135 | %description apidocs -l pl.UTF-8 |
59a68038 | 136 | Dokumentacja API serwera danych Evolution. |
ac5ccf41 | 137 | |
11b4e6b5 | 138 | %prep |
4ff8ccbf | 139 | %setup -q |
11b4e6b5 | 140 | |
a99ed00a | 141 | # kill -L$withval/lib |
c605b556 | 142 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac |
a99ed00a | 143 | |
6fb1990c MB |
144 | # fix broken tarball |
145 | mkdir vala | |
146 | touch vala/Makefile.in | |
147 | ||
11b4e6b5 | 148 | %build |
df83f2ab | 149 | %{__gtkdocize} |
c605b556 | 150 | %{__gettextize} |
8f8bf49b | 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} \ |
c605b556 | 173 | --enable-ssl \ |
174 | --enable-smime \ | |
175 | --enable-ipv6 \ | |
176 | --enable-calendar \ | |
177 | --enable-nntp \ | |
8a5a422a | 178 | --enable-gtk-doc \ |
179 | --enable-static \ | |
51cb5b15 | 180 | --with-libdb=%{_libdir} \ |
d187a81d MB |
181 | --with-html-dir=%{_gtkdocdir} \ |
182 | --disable-silent-rules | |
52730793 | 183 | |
51cb5b15 | 184 | %{__make} |
11b4e6b5 | 185 | |
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
51cb5b15 | 188 | install -d $RPM_BUILD_ROOT%{schemadir} |
11b4e6b5 | 189 | |
190 | %{__make} install \ | |
46c4d742 | 191 | DESTDIR=$RPM_BUILD_ROOT \ |
51cb5b15 | 192 | HTML_DIR=%{_gtkdocdir} |
94fa296c | 193 | |
9b5d553a ER |
194 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} |
195 | ||
c605b556 | 196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
51cb5b15 | 198 | |
46c4d742 | 199 | %find_lang %{name} --all-name |
11b4e6b5 | 200 | |
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
73b9c62c | 204 | %post libs -p /sbin/ldconfig |
205 | %postun libs -p /sbin/ldconfig | |
206 | ||
9b5d553a | 207 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
208 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
209 | %service -q ldap restart | |
9b5d553a ER |
210 | |
211 | %postun -n openldap-schema-evolutionperson | |
212 | if [ "$1" = "0" ]; then | |
7937d160 ER |
213 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
214 | %service -q ldap restart | |
9b5d553a ER |
215 | fi |
216 | ||
46c4d742 | 217 | %files -f %{name}.lang |
11b4e6b5 | 218 | %defattr(644,root,root,755) |
46c4d742 | 219 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 220 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
221 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
d187a81d MB |
222 | %attr(755,root,root) %{_libdir}/e-addressbook-factory |
223 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
c605b556 | 224 | %dir %{_libdir}/%{name} |
225 | %dir %{_libdir}/%{name}/camel-providers | |
226 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
227 | %{_libdir}/%{name}/camel-providers/*.urls | |
228 | %dir %{_libdir}/%{name}/addressbook-backends | |
229 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
230 | %dir %{_libdir}/%{name}/calendar-backends | |
231 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
e2ebc190 | 232 | |
be45f956 | 233 | %if %{with ldap} |
e3a9d40d | 234 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 235 | %endif |
236 | ||
d187a81d MB |
237 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service |
238 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
239 | ||
e2ebc190 | 240 | %dir %{_datadir}/%{name}-%{basever} |
042cdced | 241 | %{_pixmapsdir}/%{name} |
46c4d742 | 242 | |
9b5d553a ER |
243 | %files -n openldap-schema-evolutionperson |
244 | %defattr(644,root,root,755) | |
814bd254 | 245 | %{schemadir}/evolutionperson.schema |
9b5d553a | 246 | |
0931c5d7 JB |
247 | %files libs |
248 | %defattr(644,root,root,755) | |
814bd254 | 249 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* |
c605b556 | 250 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.23 |
814bd254 | 251 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* |
c605b556 | 252 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.23 |
bf160059 | 253 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
c605b556 | 254 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.1 |
814bd254 | 255 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* |
66171f5f | 256 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.10 |
814bd254 | 257 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* |
66171f5f | 258 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.8 |
814bd254 | 259 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* |
c605b556 | 260 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.9 |
814bd254 | 261 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* |
c605b556 | 262 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.11 |
814bd254 | 263 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
66171f5f | 264 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.14 |
c605b556 | 265 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* |
266 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.0 | |
814bd254 MB |
267 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* |
268 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
6fb1990c | 269 | %{_libdir}/girepository-1.0/EBook-1.2.typelib |
c605b556 | 270 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib |
271 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
0931c5d7 | 272 | |
46c4d742 | 273 | %files devel |
11b4e6b5 | 274 | %defattr(644,root,root,755) |
814bd254 MB |
275 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so |
276 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
bf160059 | 277 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so |
814bd254 MB |
278 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so |
279 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
280 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
281 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
282 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
c605b556 | 283 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so |
814bd254 | 284 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so |
814bd254 MB |
285 | %{_includedir}/evolution-data-server-%{basever} |
286 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
287 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
288 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
bf160059 | 289 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
290 | %{_pkgconfigdir}/libebook-%{apiver}.pc |
291 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
292 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
293 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
294 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
c605b556 | 295 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc |
814bd254 | 296 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc |
6fb1990c | 297 | %{_datadir}/gir-1.0/EBook-1.2.gir |
c605b556 | 298 | %{_datadir}/gir-1.0/ECalendar-1.2.gir |
299 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
8a5a422a | 300 | |
301 | %files static | |
302 | %defattr(644,root,root,755) | |
814bd254 MB |
303 | %{_libdir}/libcamel-%{apiver}.a |
304 | %{_libdir}/libcamel-provider-%{apiver}.a | |
bf160059 | 305 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
306 | %{_libdir}/libebook-%{apiver}.a |
307 | %{_libdir}/libecal-%{apiver}.a | |
308 | %{_libdir}/libedata-book-%{apiver}.a | |
309 | %{_libdir}/libedata-cal-%{apiver}.a | |
310 | %{_libdir}/libedataserver-%{apiver}.a | |
c605b556 | 311 | %{_libdir}/libedataserverui-%{apiver2}.a |
814bd254 | 312 | %{_libdir}/libegroupwise-%{apiver}.a |
ac5ccf41 | 313 | |
314 | %files apidocs | |
315 | %defattr(644,root,root,755) | |
814bd254 | 316 | %{_gtkdocdir}/camel |
bf160059 | 317 | %{_gtkdocdir}/libebackend |
814bd254 MB |
318 | %{_gtkdocdir}/libebook |
319 | %{_gtkdocdir}/libecal | |
320 | %{_gtkdocdir}/libedata-book | |
321 | %{_gtkdocdir}/libedata-cal | |
322 | %{_gtkdocdir}/libedataserver | |
323 | %{_gtkdocdir}/libedataserverui |