]>
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.26 | |
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.26.3 | |
12 | Release: 2 | |
13 | License: LGPL v2+ | |
14 | Group: X11/Libraries | |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.26/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: 01205605a598253bc227ff360c7c3dad | |
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.52 | |
22 | BuildRequires: automake | |
23 | BuildRequires: bison | |
24 | BuildRequires: cyrus-sasl-devel | |
25 | BuildRequires: db-devel | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: glib2-devel >= 1:2.20.0 | |
28 | BuildRequires: gnome-common >= 2.20.0 | |
29 | BuildRequires: gnome-keyring-devel >= 2.26.0 | |
30 | BuildRequires: gtk+2-devel >= 2:2.16.0 | |
31 | BuildRequires: gtk-doc >= 1.9 | |
32 | BuildRequires: intltool >= 0.40.0 | |
33 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
34 | BuildRequires: libbonobo-devel >= 2.24.0 | |
35 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
36 | BuildRequires: libgnomeui-devel >= 2.24.0 | |
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 | |
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: libgnomeui >= 2.24.0 | |
83 | Requires: libsoup >= 2.4.0 | |
84 | ||
85 | %description libs | |
86 | This package contains Evolution Data Server library. | |
87 | ||
88 | %description libs -l pl.UTF-8 | |
89 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
90 | ||
91 | %package devel | |
92 | Summary: Evolution data server development files | |
93 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution | |
94 | Group: X11/Development/Libraries | |
95 | Requires: %{name}-libs = %{version}-%{release} | |
96 | Requires: GConf2-devel >= 2.26.0 | |
97 | Requires: ORBit2-devel >= 1:2.14.8 | |
98 | Requires: glib2-devel >= 1:2.20.0 | |
99 | Requires: gtk+2-devel >= 2:2.16.0 | |
100 | %{?with_kerberos5:Requires: heimdal-devel} | |
101 | Requires: libbonobo-devel >= 2.24.0 | |
102 | Requires: libglade2-devel >= 1:2.6.2 | |
103 | Requires: libical-devel >= 0.43 | |
104 | Requires: libsoup-devel >= 2.26.0 | |
105 | Requires: libxml2-devel >= 1:2.6.31 | |
106 | Requires: sqlite3-devel | |
107 | ||
108 | %description devel | |
109 | This package contains the files necessary to develop applications | |
110 | using Evolution's data server libraries. | |
111 | ||
112 | %description devel -l pl.UTF-8 | |
113 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
114 | korzystających z bibliotek serwera danych Evolution. | |
115 | ||
116 | %package static | |
117 | Summary: Evolution data server static libraries | |
118 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
119 | Group: X11/Development/Libraries | |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | ||
122 | %description static | |
123 | Evolution data server static libraries. | |
124 | ||
125 | %description static -l pl.UTF-8 | |
126 | Statyczne biblioteki serwera danych Evolution. | |
127 | ||
128 | %package apidocs | |
129 | Summary: e-d-s API documentation | |
130 | Summary(pl.UTF-8): Dokumentacja API e-d-s | |
131 | Group: Documentation | |
132 | Requires: gtk-doc-common | |
133 | ||
134 | %description apidocs | |
135 | e-d-s API documentation. | |
136 | ||
137 | %description apidocs -l pl.UTF-8 | |
138 | Dokumentacja API e-d-s. | |
139 | ||
140 | %prep | |
141 | %setup -q | |
142 | %patch0 -p1 | |
143 | ||
144 | # kill -L$withval/lib | |
145 | sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.in | |
146 | ||
147 | %build | |
148 | %{__gtkdocize} | |
149 | %{__glib_gettextize} | |
150 | %{__intltoolize} | |
151 | %{__libtoolize} | |
152 | %{__aclocal} | |
153 | %{__autoheader} | |
154 | %{__autoconf} | |
155 | %{__automake} | |
156 | ||
157 | # Set LIBS so that configure will be able to link with static LDAP libraries, | |
158 | # which depend on Cyrus SASL and OpenSSL. | |
159 | if pkg-config openssl ; then | |
160 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
161 | else | |
162 | LIBS="-lsasl2 -lssl -lcrypto" | |
163 | fi | |
164 | export LIBS | |
165 | ||
166 | %configure \ | |
167 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ | |
168 | %{!?with_kerberos5:--with-krb5=no} \ | |
169 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ | |
170 | %{?with_ldap:--with-static-ldap=yes} \ | |
171 | %{!?with_ldap:--with-openldap=no} \ | |
172 | --enable-gnome-keyring=yes \ | |
173 | --enable-gtk-doc \ | |
174 | --enable-static \ | |
175 | --with-nspr-includes=%{_includedir}/nspr \ | |
176 | --with-nspr-libs=%{_libdir} \ | |
177 | --with-nss-includes=%{_includedir}/nss \ | |
178 | --with-nss-libs=%{_libdir} \ | |
179 | --with-libdb=%{_libdir} \ | |
180 | --with-html-dir=%{_gtkdocdir} | |
181 | ||
182 | %{__make} | |
183 | ||
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | install -d $RPM_BUILD_ROOT%{schemadir} | |
187 | ||
188 | %{__make} install \ | |
189 | DESTDIR=$RPM_BUILD_ROOT \ | |
190 | HTML_DIR=%{_gtkdocdir} | |
191 | ||
192 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
193 | ||
194 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} | |
195 | ||
196 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/la | |
197 | ||
198 | %find_lang %{name} --all-name | |
199 | ||
200 | %clean | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %post libs -p /sbin/ldconfig | |
204 | %postun libs -p /sbin/ldconfig | |
205 | ||
206 | %post -n openldap-schema-evolutionperson | |
207 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
208 | %service -q ldap restart | |
209 | ||
210 | %postun -n openldap-schema-evolutionperson | |
211 | if [ "$1" = "0" ]; then | |
212 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
213 | %service -q ldap restart | |
214 | fi | |
215 | ||
216 | %files -f %{name}.lang | |
217 | %defattr(644,root,root,755) | |
218 | %doc AUTHORS ChangeLog NEWS* README | |
219 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
220 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
221 | %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever} | |
222 | %dir %{_libdir}/%{name}-%{apiver} | |
223 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
224 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so | |
225 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
226 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
227 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
228 | %{_libdir}/bonobo/servers/GNOME_Evolution_DataServer_1.2.server | |
229 | ||
230 | %if %{with ldap} | |
231 | %{_datadir}/%{name}-%{basever}/*.schema | |
232 | %endif | |
233 | ||
234 | %dir %{_datadir}/%{name}-%{basever} | |
235 | %{_datadir}/%{name}-%{basever}/glade | |
236 | %{_datadir}/%{name}-%{basever}/weather | |
237 | %{_pixmapsdir}/%{name} | |
238 | ||
239 | %files -n openldap-schema-evolutionperson | |
240 | %defattr(644,root,root,755) | |
241 | %{schemadir}/evolutionperson.schema | |
242 | ||
243 | %files libs | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
246 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.14 | |
247 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* | |
248 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.14 | |
249 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0 | |
251 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
252 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9 | |
253 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7 | |
255 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
256 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2 | |
257 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
258 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.6 | |
259 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
260 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.11 | |
261 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8 | |
263 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
265 | %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libexchange-storage-%{apiver}.so.3 | |
267 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1 | |
269 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1 | |
271 | %{_datadir}/idl/%{name}-%{apiver} | |
272 | ||
273 | %files devel | |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
276 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
277 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
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 | |
283 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so | |
284 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
285 | %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so | |
286 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so | |
287 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so | |
288 | %{_libdir}/libcamel-%{apiver}.la | |
289 | %{_libdir}/libcamel-provider-%{apiver}.la | |
290 | %{_libdir}/libebackend-%{apiver}.la | |
291 | %{_libdir}/libebook-%{apiver}.la | |
292 | %{_libdir}/libecal-%{apiver}.la | |
293 | %{_libdir}/libedata-book-%{apiver}.la | |
294 | %{_libdir}/libedata-cal-%{apiver}.la | |
295 | %{_libdir}/libedataserver-%{apiver}.la | |
296 | %{_libdir}/libedataserverui-%{apiver}.la | |
297 | %{_libdir}/libegroupwise-%{apiver}.la | |
298 | %{_libdir}/libexchange-storage-%{apiver}.la | |
299 | %{_libdir}/libgdata-%{apiver}.la | |
300 | %{_libdir}/libgdata-google-%{apiver}.la | |
301 | %{_includedir}/evolution-data-server-%{basever} | |
302 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
303 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
304 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
305 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
306 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
307 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
308 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
309 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
310 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
311 | %{_pkgconfigdir}/libedataserverui-%{apiver}.pc | |
312 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
313 | %{_pkgconfigdir}/libexchange-storage-%{apiver}.pc | |
314 | %{_pkgconfigdir}/libgdata-%{apiver}.pc | |
315 | %{_pkgconfigdir}/libgdata-google-%{apiver}.pc | |
316 | ||
317 | %files static | |
318 | %defattr(644,root,root,755) | |
319 | %{_libdir}/libcamel-%{apiver}.a | |
320 | %{_libdir}/libcamel-provider-%{apiver}.a | |
321 | %{_libdir}/libebackend-%{apiver}.a | |
322 | %{_libdir}/libebook-%{apiver}.a | |
323 | %{_libdir}/libecal-%{apiver}.a | |
324 | %{_libdir}/libedata-book-%{apiver}.a | |
325 | %{_libdir}/libedata-cal-%{apiver}.a | |
326 | %{_libdir}/libedataserver-%{apiver}.a | |
327 | %{_libdir}/libedataserverui-%{apiver}.a | |
328 | %{_libdir}/libegroupwise-%{apiver}.a | |
329 | %{_libdir}/libexchange-storage-%{apiver}.a | |
330 | %{_libdir}/libgdata-%{apiver}.a | |
331 | %{_libdir}/libgdata-google-%{apiver}.a | |
332 | ||
333 | %files apidocs | |
334 | %defattr(644,root,root,755) | |
335 | %{_gtkdocdir}/camel | |
336 | %{_gtkdocdir}/libebackend | |
337 | %{_gtkdocdir}/libebook | |
338 | %{_gtkdocdir}/libecal | |
339 | %{_gtkdocdir}/libedata-book | |
340 | %{_gtkdocdir}/libedata-cal | |
341 | %{_gtkdocdir}/libedataserver | |
342 | %{_gtkdocdir}/libedataserverui |