]>
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.30 | |
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.30.2.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.30/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: 826d85fc6e088156154ae0c543454d7f | |
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.9 | |
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.20.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: libgnome-keyring-devel >= 2.26.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 >= 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: libical-devel >= 0.43 | |
102 | Requires: libsoup-devel >= 2.26.0 | |
103 | Requires: libxml2-devel >= 1:2.6.31 | |
104 | Requires: sqlite3-devel | |
105 | ||
106 | %description devel | |
107 | This package contains the files necessary to develop applications | |
108 | using Evolution's data server libraries. | |
109 | ||
110 | %description devel -l pl.UTF-8 | |
111 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji | |
112 | korzystających z bibliotek serwera danych Evolution. | |
113 | ||
114 | %package static | |
115 | Summary: Evolution data server static libraries | |
116 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution | |
117 | Group: X11/Development/Libraries | |
118 | Requires: %{name}-devel = %{version}-%{release} | |
119 | ||
120 | %description static | |
121 | Evolution data server static libraries. | |
122 | ||
123 | %description static -l pl.UTF-8 | |
124 | Statyczne biblioteki serwera danych Evolution. | |
125 | ||
126 | %package apidocs | |
127 | Summary: e-d-s API documentation | |
128 | Summary(pl.UTF-8): Dokumentacja API e-d-s | |
129 | Group: Documentation | |
130 | Requires: gtk-doc-common | |
131 | ||
132 | %description apidocs | |
133 | e-d-s API documentation. | |
134 | ||
135 | %description apidocs -l pl.UTF-8 | |
136 | Dokumentacja API e-d-s. | |
137 | ||
138 | %prep | |
139 | %setup -q | |
140 | ||
141 | # kill -L$withval/lib | |
142 | sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac | |
143 | ||
144 | sed -i -e 's/^en@shaw//' po/LINGUAS | |
145 | rm -f po/en@shaw.po | |
146 | ||
147 | %build | |
148 | %{__gtkdocize} | |
149 | %{__glib_gettextize} | |
150 | %{__intltoolize} | |
151 | %{__libtoolize} | |
152 | %{__aclocal} -I m4 | |
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-libdb=%{_libdir} \ | |
176 | --with-html-dir=%{_gtkdocdir} \ | |
177 | --disable-silent-rules | |
178 | ||
179 | %{__make} | |
180 | ||
181 | %install | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | install -d $RPM_BUILD_ROOT%{schemadir} | |
184 | ||
185 | %{__make} install \ | |
186 | DESTDIR=$RPM_BUILD_ROOT \ | |
187 | HTML_DIR=%{_gtkdocdir} | |
188 | ||
189 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
190 | ||
191 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a} | |
192 | ||
193 | %find_lang %{name} --all-name | |
194 | ||
195 | %clean | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | ||
198 | %post libs -p /sbin/ldconfig | |
199 | %postun libs -p /sbin/ldconfig | |
200 | ||
201 | %post -n openldap-schema-evolutionperson | |
202 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
203 | %service -q ldap restart | |
204 | ||
205 | %postun -n openldap-schema-evolutionperson | |
206 | if [ "$1" = "0" ]; then | |
207 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
208 | %service -q ldap restart | |
209 | fi | |
210 | ||
211 | %files -f %{name}.lang | |
212 | %defattr(644,root,root,755) | |
213 | %doc AUTHORS ChangeLog NEWS* README | |
214 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
215 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
216 | %attr(755,root,root) %{_libdir}/e-addressbook-factory | |
217 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
218 | %dir %{_libdir}/%{name}-%{apiver} | |
219 | %dir %{_libdir}/%{name}-%{apiver}/camel-providers | |
220 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so | |
221 | %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls | |
222 | %dir %{_libdir}/%{name}-%{apiver}/extensions | |
223 | %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so | |
224 | ||
225 | %if %{with ldap} | |
226 | %{_datadir}/%{name}-%{basever}/*.schema | |
227 | %endif | |
228 | ||
229 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
230 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
231 | ||
232 | %dir %{_datadir}/%{name}-%{basever} | |
233 | %{_datadir}/%{name}-%{basever}/ui | |
234 | %{_datadir}/%{name}-%{basever}/weather | |
235 | %{_pixmapsdir}/%{name} | |
236 | ||
237 | %files -n openldap-schema-evolutionperson | |
238 | %defattr(644,root,root,755) | |
239 | %{schemadir}/evolutionperson.schema | |
240 | ||
241 | %files libs | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
244 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.14 | |
245 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* | |
246 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.14 | |
247 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
248 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.0 | |
249 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9 | |
251 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
252 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7 | |
253 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2 | |
255 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
256 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.7 | |
257 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
258 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.13 | |
259 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.* | |
260 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8 | |
261 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
263 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1 | |
265 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1 | |
267 | ||
268 | %files devel | |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so | |
271 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
272 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so | |
273 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so | |
274 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
275 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
276 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
277 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
278 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so | |
279 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
280 | %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so | |
281 | %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so | |
282 | %{_libdir}/libcamel-%{apiver}.la | |
283 | %{_libdir}/libcamel-provider-%{apiver}.la | |
284 | %{_libdir}/libebackend-%{apiver}.la | |
285 | %{_libdir}/libebook-%{apiver}.la | |
286 | %{_libdir}/libecal-%{apiver}.la | |
287 | %{_libdir}/libedata-book-%{apiver}.la | |
288 | %{_libdir}/libedata-cal-%{apiver}.la | |
289 | %{_libdir}/libedataserver-%{apiver}.la | |
290 | %{_libdir}/libedataserverui-%{apiver}.la | |
291 | %{_libdir}/libegroupwise-%{apiver}.la | |
292 | %{_libdir}/libgdata-%{apiver}.la | |
293 | %{_libdir}/libgdata-google-%{apiver}.la | |
294 | %{_includedir}/evolution-data-server-%{basever} | |
295 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
296 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
297 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
298 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
299 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
300 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
301 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
302 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
303 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
304 | %{_pkgconfigdir}/libedataserverui-%{apiver}.pc | |
305 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
306 | %{_pkgconfigdir}/libgdata-%{apiver}.pc | |
307 | %{_pkgconfigdir}/libgdata-google-%{apiver}.pc | |
308 | ||
309 | %files static | |
310 | %defattr(644,root,root,755) | |
311 | %{_libdir}/libcamel-%{apiver}.a | |
312 | %{_libdir}/libcamel-provider-%{apiver}.a | |
313 | %{_libdir}/libebackend-%{apiver}.a | |
314 | %{_libdir}/libebook-%{apiver}.a | |
315 | %{_libdir}/libecal-%{apiver}.a | |
316 | %{_libdir}/libedata-book-%{apiver}.a | |
317 | %{_libdir}/libedata-cal-%{apiver}.a | |
318 | %{_libdir}/libedataserver-%{apiver}.a | |
319 | %{_libdir}/libedataserverui-%{apiver}.a | |
320 | %{_libdir}/libegroupwise-%{apiver}.a | |
321 | %{_libdir}/libgdata-%{apiver}.a | |
322 | %{_libdir}/libgdata-google-%{apiver}.a | |
323 | ||
324 | %files apidocs | |
325 | %defattr(644,root,root,755) | |
326 | %{_gtkdocdir}/camel | |
327 | %{_gtkdocdir}/libebackend | |
328 | %{_gtkdocdir}/libebook | |
329 | %{_gtkdocdir}/libecal | |
330 | %{_gtkdocdir}/libedata-book | |
331 | %{_gtkdocdir}/libedata-cal | |
332 | %{_gtkdocdir}/libedataserver | |
333 | %{_gtkdocdir}/libedataserverui |