]>
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.32 | |
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.32.0 | |
12 | Release: 3 | |
13 | License: LGPL v2+ | |
14 | Group: X11/Libraries | |
15 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.32/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: c5965a300d04a8ab484bf9ca0959dcdf | |
17 | URL: http://www.gnome.org/projects/evolution/ | |
18 | BuildRequires: GConf2-devel >= 2.26.0 | |
19 | BuildRequires: ORBit2-devel >= 1:2.14.8 | |
20 | BuildRequires: autoconf >= 2.58 | |
21 | BuildRequires: automake >= 1:1.10 | |
22 | BuildRequires: bison | |
23 | BuildRequires: cyrus-sasl-devel | |
24 | BuildRequires: db-devel | |
25 | BuildRequires: dbus-glib-devel >= 0.60 | |
26 | BuildRequires: docbook-dtd412-xml | |
27 | BuildRequires: gettext-devel | |
28 | BuildRequires: glib2-devel >= 1:2.26.0 | |
29 | BuildRequires: gnome-common >= 2.20.0 | |
30 | BuildRequires: gperf | |
31 | BuildRequires: gtk+2-devel >= 2:2.16.0 | |
32 | BuildRequires: gtk-doc >= 1.9 | |
33 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
34 | BuildRequires: intltool >= 0.40.0 | |
35 | BuildRequires: libbonobo-devel >= 2.24.0 | |
36 | BuildRequires: libgdata-devel >= 0.6.3 | |
37 | BuildRequires: libgnome-keyring-devel >= 2.26.0 | |
38 | BuildRequires: libgweather-devel >= 2.26.0 | |
39 | BuildRequires: libical-devel >= 0.43 | |
40 | BuildRequires: libsoup-devel >= 2.26.0 | |
41 | BuildRequires: libstdc++-devel | |
42 | BuildRequires: libtool | |
43 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
44 | BuildRequires: nspr-devel | |
45 | BuildRequires: nss-devel | |
46 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} | |
47 | BuildRequires: openssl-devel | |
48 | BuildRequires: pkgconfig | |
49 | BuildRequires: rpmbuild(macros) >= 1.304 | |
50 | BuildRequires: sed >= 4.0 | |
51 | BuildRequires: sqlite3-devel >= 3.5 | |
52 | BuildRequires: zlib-devel | |
53 | Requires: %{name}-libs = %{version}-%{release} | |
54 | # sr@Latn vs. sr@latin | |
55 | Conflicts: glibc-misc < 6:2.7 | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %define schemadir /usr/share/openldap/schema | |
59 | ||
60 | %description | |
61 | The Evolution data server for the calendar and addressbook. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
65 | ||
66 | %package -n openldap-schema-evolutionperson | |
67 | Summary: evolutionperson LDAP schema | |
68 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
69 | Group: Networking/Daemons | |
70 | Requires(post,postun): sed >= 4.0 | |
71 | Requires: openldap-servers | |
72 | ||
73 | %description -n openldap-schema-evolutionperson | |
74 | This package contains evolutionperson.schema for openldap server. | |
75 | ||
76 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 | |
77 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. | |
78 | ||
79 | %package libs | |
80 | Summary: Evolution Data Server library | |
81 | Summary(pl.UTF-8): Biblioteka Evolution Data Server | |
82 | Group: X11/Libraries | |
83 | Requires: libsoup >= 2.26.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.26.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: 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 | ||
142 | # kill -L$withval/lib | |
143 | sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac | |
144 | ||
145 | sed -i -e 's/^en@shaw//' po/LINGUAS | |
146 | rm -f po/en@shaw.po | |
147 | ||
148 | %build | |
149 | %{__gtkdocize} | |
150 | %{__glib_gettextize} | |
151 | %{__intltoolize} | |
152 | %{__libtoolize} | |
153 | %{__aclocal} -I m4 | |
154 | %{__autoheader} | |
155 | %{__autoconf} | |
156 | %{__automake} | |
157 | ||
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 | ||
167 | %configure \ | |
168 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ | |
169 | %{!?with_kerberos5:--with-krb5=no} \ | |
170 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ | |
171 | %{?with_ldap:--with-static-ldap=yes} \ | |
172 | %{!?with_ldap:--with-openldap=no} \ | |
173 | --enable-gnome-keyring=yes \ | |
174 | --enable-gtk-doc \ | |
175 | --enable-static \ | |
176 | --with-libdb=%{_libdir} \ | |
177 | --with-html-dir=%{_gtkdocdir} \ | |
178 | --disable-silent-rules | |
179 | ||
180 | %{__make} | |
181 | ||
182 | %install | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | install -d $RPM_BUILD_ROOT%{schemadir} | |
185 | ||
186 | %{__make} install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT \ | |
188 | HTML_DIR=%{_gtkdocdir} | |
189 | ||
190 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
191 | ||
192 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} | |
193 | ||
194 | %find_lang %{name} --all-name | |
195 | ||
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
199 | %post libs -p /sbin/ldconfig | |
200 | %postun libs -p /sbin/ldconfig | |
201 | ||
202 | %post -n openldap-schema-evolutionperson | |
203 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
204 | %service -q ldap restart | |
205 | ||
206 | %postun -n openldap-schema-evolutionperson | |
207 | if [ "$1" = "0" ]; then | |
208 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
209 | %service -q ldap restart | |
210 | fi | |
211 | ||
212 | %files -f %{name}.lang | |
213 | %defattr(644,root,root,755) | |
214 | %doc AUTHORS ChangeLog NEWS* README | |
215 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
216 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
217 | %attr(755,root,root) %{_libdir}/e-addressbook-factory | |
218 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
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 | ||
226 | %if %{with ldap} | |
227 | %{_datadir}/%{name}-%{basever}/*.schema | |
228 | %endif | |
229 | ||
230 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
231 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
232 | ||
233 | %dir %{_datadir}/%{name}-%{basever} | |
234 | %{_datadir}/%{name}-%{basever}/ui | |
235 | %{_datadir}/%{name}-%{basever}/weather | |
236 | %{_pixmapsdir}/%{name} | |
237 | ||
238 | %files -n openldap-schema-evolutionperson | |
239 | %defattr(644,root,root,755) | |
240 | %{schemadir}/evolutionperson.schema | |
241 | ||
242 | %files libs | |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
245 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.19 | |
246 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.19 | |
248 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
249 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0 | |
250 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
251 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.10 | |
252 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
253 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.8 | |
254 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
255 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.8 | |
256 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
257 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.10 | |
258 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
259 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.14 | |
260 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.* | |
261 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.11 | |
262 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* | |
263 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
264 | ||
265 | %files devel | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
268 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
269 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
270 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so | |
271 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
272 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
273 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
274 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
275 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so | |
276 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
277 | %{_libdir}/libcamel-%{apiver}.la | |
278 | %{_libdir}/libcamel-provider-%{apiver}.la | |
279 | %{_libdir}/libebackend-%{apiver}.la | |
280 | %{_libdir}/libebook-%{apiver}.la | |
281 | %{_libdir}/libecal-%{apiver}.la | |
282 | %{_libdir}/libedata-book-%{apiver}.la | |
283 | %{_libdir}/libedata-cal-%{apiver}.la | |
284 | %{_libdir}/libedataserver-%{apiver}.la | |
285 | %{_libdir}/libedataserverui-%{apiver}.la | |
286 | %{_libdir}/libegroupwise-%{apiver}.la | |
287 | %{_includedir}/evolution-data-server-%{basever} | |
288 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
289 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
290 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
291 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
292 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
293 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
294 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
295 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
296 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
297 | %{_pkgconfigdir}/libedataserverui-%{apiver}.pc | |
298 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
299 | ||
300 | %files static | |
301 | %defattr(644,root,root,755) | |
302 | %{_libdir}/libcamel-%{apiver}.a | |
303 | %{_libdir}/libcamel-provider-%{apiver}.a | |
304 | %{_libdir}/libebackend-%{apiver}.a | |
305 | %{_libdir}/libebook-%{apiver}.a | |
306 | %{_libdir}/libecal-%{apiver}.a | |
307 | %{_libdir}/libedata-book-%{apiver}.a | |
308 | %{_libdir}/libedata-cal-%{apiver}.a | |
309 | %{_libdir}/libedataserver-%{apiver}.a | |
310 | %{_libdir}/libedataserverui-%{apiver}.a | |
311 | %{_libdir}/libegroupwise-%{apiver}.a | |
312 | ||
313 | %files apidocs | |
314 | %defattr(644,root,root,755) | |
315 | %{_gtkdocdir}/camel | |
316 | %{_gtkdocdir}/libebackend | |
317 | %{_gtkdocdir}/libebook | |
318 | %{_gtkdocdir}/libecal | |
319 | %{_gtkdocdir}/libedata-book | |
320 | %{_gtkdocdir}/libedata-cal | |
321 | %{_gtkdocdir}/libedataserver | |
322 | %{_gtkdocdir}/libedataserverui |