]>
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 |
11b4e6b5 | 9 | Summary: Evolution data server |
7628f827 | 10 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 11 | Name: evolution-data-server |
c605b556 | 12 | Version: 3.0.0 |
fa711388 | 13 | Release: 0.1 |
814bd254 MB |
14 | License: LGPL v2+ |
15 | Group: X11/Libraries | |
c605b556 | 16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.0/%{name}-%{version}.tar.bz2 |
17 | # Source0-md5: fdb3cd7f295fc75ef6888fca2918ee96 | |
c22a020a | 18 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 19 | BuildRequires: GConf2-devel >= 2.26.0 |
c605b556 | 20 | BuildRequires: autoconf >= 2.62 |
66171f5f | 21 | BuildRequires: automake >= 1:1.10 |
e2ebc190 | 22 | BuildRequires: bison |
96160e38 | 23 | BuildRequires: docbook-dtd412-xml |
c605b556 | 24 | BuildRequires: gettext-devel >= 0.18.1 |
25 | BuildRequires: glib2-devel >= 1:2.28.0 | |
ea3ad516 | 26 | BuildRequires: gnome-common >= 2.20.0 |
c605b556 | 27 | BuildRequires: gobject-introspection-devel >= 0.9.12 |
d187a81d | 28 | BuildRequires: gperf |
c605b556 | 29 | BuildRequires: gtk+3-devel >= 3.0.0 |
814bd254 | 30 | BuildRequires: gtk-doc >= 1.9 |
b025b6f4 | 31 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 32 | BuildRequires: intltool >= 0.40.0 |
c605b556 | 33 | BuildRequires: libgdata-devel >= 0.7.0 |
d187a81d | 34 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
c605b556 | 35 | BuildRequires: libgweather-devel >= 2.91.0 |
51cb5b15 PZ |
36 | BuildRequires: libical-devel >= 0.43 |
37 | BuildRequires: libsoup-devel >= 2.26.0 | |
e2c48f95 | 38 | BuildRequires: libstdc++-devel |
c605b556 | 39 | BuildRequires: libtool >= 2:2.2 |
814bd254 | 40 | BuildRequires: libxml2-devel >= 1:2.6.31 |
94fa296c | 41 | BuildRequires: nspr-devel |
4e7b9656 | 42 | BuildRequires: nss-devel |
a33049a0 | 43 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} |
8f24fc3c | 44 | BuildRequires: openssl-devel |
353eadf1 | 45 | BuildRequires: pkgconfig |
7937d160 | 46 | BuildRequires: rpmbuild(macros) >= 1.304 |
483474c5 | 47 | BuildRequires: sed >= 4.0 |
f9dd3cd2 | 48 | BuildRequires: sqlite3-devel >= 3.5 |
814bd254 | 49 | BuildRequires: zlib-devel |
73b9c62c | 50 | Requires: %{name}-libs = %{version}-%{release} |
b11884f3 | 51 | # sr@Latn vs. sr@latin |
52 | Conflicts: glibc-misc < 6:2.7 | |
353eadf1 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 54 | |
9b5d553a ER |
55 | %define schemadir /usr/share/openldap/schema |
56 | ||
11b4e6b5 | 57 | %description |
353eadf1 JB |
58 | The Evolution data server for the calendar and addressbook. |
59 | ||
5f6b5ac6 JR |
60 | %description -l pl.UTF-8 |
61 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 62 | |
9b5d553a ER |
63 | %package -n openldap-schema-evolutionperson |
64 | Summary: evolutionperson LDAP schema | |
7628f827 | 65 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
66 | Group: Networking/Daemons |
67 | Requires(post,postun): sed >= 4.0 | |
68 | Requires: openldap-servers | |
69 | ||
70 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
71 | This package contains evolutionperson.schema for openldap server. |
72 | ||
5f6b5ac6 | 73 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 74 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 75 | |
0931c5d7 JB |
76 | %package libs |
77 | Summary: Evolution Data Server library | |
7628f827 | 78 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
814bd254 | 79 | Group: X11/Libraries |
f9dd3cd2 | 80 | Requires: libsoup >= 2.26.0 |
0931c5d7 JB |
81 | |
82 | %description libs | |
83 | This package contains Evolution Data Server library. | |
84 | ||
5f6b5ac6 JR |
85 | %description libs -l pl.UTF-8 |
86 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 87 | |
11b4e6b5 | 88 | %package devel |
89 | Summary: Evolution data server development files | |
7628f827 | 90 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
814bd254 | 91 | Group: X11/Development/Libraries |
0931c5d7 | 92 | Requires: %{name}-libs = %{version}-%{release} |
51cb5b15 | 93 | Requires: GConf2-devel >= 2.26.0 |
c605b556 | 94 | Requires: glib2-devel >= 1:2.28.0 |
95 | Requires: gtk+3-devel >= 3.0.0 | |
b025b6f4 | 96 | %{?with_kerberos5:Requires: heimdal-devel} |
9339a81d | 97 | Requires: libgdata-devel >= 0.6.3 |
51cb5b15 PZ |
98 | Requires: libical-devel >= 0.43 |
99 | Requires: libsoup-devel >= 2.26.0 | |
814bd254 | 100 | Requires: libxml2-devel >= 1:2.6.31 |
78e9ab13 | 101 | Requires: nspr-devel |
102 | Requires: nss-devel | |
51cb5b15 | 103 | Requires: sqlite3-devel |
11b4e6b5 | 104 | |
105 | %description devel | |
46c4d742 | 106 | This package contains the files necessary to develop applications |
107 | using Evolution's data server libraries. | |
11b4e6b5 | 108 | |
5f6b5ac6 | 109 | %description devel -l pl.UTF-8 |
353eadf1 | 110 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 111 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 112 | |
8a5a422a | 113 | %package static |
114 | Summary: Evolution data server static libraries | |
7628f827 | 115 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
814bd254 | 116 | Group: X11/Development/Libraries |
f1e06abe | 117 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 118 | |
119 | %description static | |
120 | Evolution data server static libraries. | |
121 | ||
5f6b5ac6 | 122 | %description static -l pl.UTF-8 |
353eadf1 JB |
123 | Statyczne biblioteki serwera danych Evolution. |
124 | ||
ac5ccf41 | 125 | %package apidocs |
59a68038 JB |
126 | Summary: Evolution data server API documentation |
127 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
ac5ccf41 | 128 | Group: Documentation |
129 | Requires: gtk-doc-common | |
130 | ||
131 | %description apidocs | |
59a68038 | 132 | Evolution data server API documentation. |
ac5ccf41 | 133 | |
5f6b5ac6 | 134 | %description apidocs -l pl.UTF-8 |
59a68038 | 135 | Dokumentacja API serwera danych Evolution. |
ac5ccf41 | 136 | |
11b4e6b5 | 137 | %prep |
4ff8ccbf | 138 | %setup -q |
11b4e6b5 | 139 | |
a99ed00a | 140 | # kill -L$withval/lib |
c605b556 | 141 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac |
a99ed00a | 142 | |
11b4e6b5 | 143 | %build |
df83f2ab | 144 | %{__gtkdocize} |
c605b556 | 145 | %{__gettextize} |
8f8bf49b | 146 | %{__intltoolize} |
46c4d742 | 147 | %{__libtoolize} |
f9dd3cd2 | 148 | %{__aclocal} -I m4 |
46c4d742 | 149 | %{__autoheader} |
150 | %{__autoconf} | |
151 | %{__automake} | |
0f23eebb | 152 | |
a33049a0 JR |
153 | # Set LIBS so that configure will be able to link with static LDAP libraries, |
154 | # which depend on Cyrus SASL and OpenSSL. | |
155 | if pkg-config openssl ; then | |
156 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
157 | else | |
158 | LIBS="-lsasl2 -lssl -lcrypto" | |
159 | fi | |
160 | export LIBS | |
161 | ||
46c4d742 | 162 | %configure \ |
a99ed00a | 163 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ |
51160b41 | 164 | %{!?with_kerberos5:--with-krb5=no} \ |
a33049a0 JR |
165 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
166 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 167 | %{!?with_ldap:--with-openldap=no} \ |
c605b556 | 168 | --enable-ssl \ |
169 | --enable-smime \ | |
170 | --enable-ipv6 \ | |
171 | --enable-calendar \ | |
172 | --enable-nntp \ | |
8a5a422a | 173 | --enable-gtk-doc \ |
174 | --enable-static \ | |
51cb5b15 | 175 | --with-libdb=%{_libdir} \ |
d187a81d MB |
176 | --with-html-dir=%{_gtkdocdir} \ |
177 | --disable-silent-rules | |
52730793 | 178 | |
51cb5b15 | 179 | %{__make} |
11b4e6b5 | 180 | |
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
51cb5b15 | 183 | install -d $RPM_BUILD_ROOT%{schemadir} |
11b4e6b5 | 184 | |
185 | %{__make} install \ | |
46c4d742 | 186 | DESTDIR=$RPM_BUILD_ROOT \ |
51cb5b15 | 187 | HTML_DIR=%{_gtkdocdir} |
94fa296c | 188 | |
9b5d553a ER |
189 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} |
190 | ||
c605b556 | 191 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} |
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
51cb5b15 | 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 | |
c605b556 | 219 | %dir %{_libdir}/%{name} |
220 | %dir %{_libdir}/%{name}/camel-providers | |
221 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
222 | %{_libdir}/%{name}/camel-providers/*.urls | |
223 | %dir %{_libdir}/%{name}/addressbook-backends | |
224 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
225 | %dir %{_libdir}/%{name}/calendar-backends | |
226 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.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} |
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.*.*.* |
c605b556 | 245 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.23 |
814bd254 | 246 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* |
c605b556 | 247 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.23 |
bf160059 | 248 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
c605b556 | 249 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.1 |
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.*.*.* |
c605b556 | 255 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.9 |
814bd254 | 256 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* |
c605b556 | 257 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.11 |
814bd254 | 258 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
66171f5f | 259 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.14 |
c605b556 | 260 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* |
261 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.0 | |
814bd254 MB |
262 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* |
263 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
c605b556 | 264 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib |
265 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
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 | |
c605b556 | 277 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so |
814bd254 | 278 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so |
814bd254 MB |
279 | %{_includedir}/evolution-data-server-%{basever} |
280 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
281 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
282 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
bf160059 | 283 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
284 | %{_pkgconfigdir}/libebook-%{apiver}.pc |
285 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
286 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
287 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
288 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
c605b556 | 289 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc |
814bd254 | 290 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc |
c605b556 | 291 | %{_datadir}/gir-1.0/ECalendar-1.2.gir |
292 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
8a5a422a | 293 | |
294 | %files static | |
295 | %defattr(644,root,root,755) | |
814bd254 MB |
296 | %{_libdir}/libcamel-%{apiver}.a |
297 | %{_libdir}/libcamel-provider-%{apiver}.a | |
bf160059 | 298 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
299 | %{_libdir}/libebook-%{apiver}.a |
300 | %{_libdir}/libecal-%{apiver}.a | |
301 | %{_libdir}/libedata-book-%{apiver}.a | |
302 | %{_libdir}/libedata-cal-%{apiver}.a | |
303 | %{_libdir}/libedataserver-%{apiver}.a | |
c605b556 | 304 | %{_libdir}/libedataserverui-%{apiver2}.a |
814bd254 | 305 | %{_libdir}/libegroupwise-%{apiver}.a |
ac5ccf41 | 306 | |
307 | %files apidocs | |
308 | %defattr(644,root,root,755) | |
814bd254 | 309 | %{_gtkdocdir}/camel |
bf160059 | 310 | %{_gtkdocdir}/libebackend |
814bd254 MB |
311 | %{_gtkdocdir}/libebook |
312 | %{_gtkdocdir}/libecal | |
313 | %{_gtkdocdir}/libedata-book | |
314 | %{_gtkdocdir}/libedata-cal | |
315 | %{_gtkdocdir}/libedataserver | |
316 | %{_gtkdocdir}/libedataserverui |