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