]>
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 3.0 | |
7 | %define apiver 1.2 | |
8 | %define apiver2 3.0 | |
9 | # | |
10 | Summary: Evolution data server | |
11 | Summary(pl.UTF-8): Serwer danych Evolution | |
12 | Name: evolution-data-server | |
13 | Version: 3.0.3 | |
14 | Release: 2 | |
15 | License: LGPL v2+ | |
16 | Group: X11/Libraries | |
17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.0/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: e19d404f5785fbe39c303b675e23e15c | |
19 | URL: http://www.gnome.org/projects/evolution/ | |
20 | BuildRequires: GConf2-devel >= 2.26.0 | |
21 | BuildRequires: autoconf >= 2.62 | |
22 | BuildRequires: automake >= 1:1.10 | |
23 | BuildRequires: bison | |
24 | BuildRequires: docbook-dtd412-xml | |
25 | BuildRequires: gettext-devel >= 0.18.1 | |
26 | BuildRequires: glib2-devel >= 1:2.28.0 | |
27 | BuildRequires: gnome-common >= 2.20.0 | |
28 | BuildRequires: gobject-introspection-devel >= 0.9.12 | |
29 | BuildRequires: gperf | |
30 | BuildRequires: gtk+3-devel >= 3.0.0 | |
31 | BuildRequires: gtk-doc >= 1.9 | |
32 | %{?with_kerberos5:BuildRequires: heimdal-devel} | |
33 | BuildRequires: intltool >= 0.40.0 | |
34 | BuildRequires: libgdata-devel >= 0.7.0 | |
35 | BuildRequires: libgnome-keyring-devel >= 2.26.0 | |
36 | BuildRequires: libgweather-devel >= 3.0.0 | |
37 | BuildRequires: libical-devel >= 0.43 | |
38 | BuildRequires: libsoup-devel >= 2.26.0 | |
39 | BuildRequires: libstdc++-devel | |
40 | BuildRequires: libtool >= 2:2.2 | |
41 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
42 | BuildRequires: nspr-devel | |
43 | BuildRequires: nss-devel | |
44 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} | |
45 | BuildRequires: openssl-devel | |
46 | BuildRequires: pkgconfig | |
47 | BuildRequires: rpmbuild(macros) >= 1.304 | |
48 | BuildRequires: sed >= 4.0 | |
49 | BuildRequires: sqlite3-devel >= 3.5 | |
50 | BuildRequires: zlib-devel | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
52 | # sr@Latn vs. sr@latin | |
53 | Conflicts: glibc-misc < 6:2.7 | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %define schemadir /usr/share/openldap/schema | |
57 | ||
58 | %description | |
59 | The Evolution data server for the calendar and addressbook. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
63 | ||
64 | %package -n openldap-schema-evolutionperson | |
65 | Summary: evolutionperson LDAP schema | |
66 | Summary(pl.UTF-8): Schemat LDAP evolutionperson | |
67 | Group: Networking/Daemons | |
68 | Requires(post,postun): sed >= 4.0 | |
69 | Requires: openldap-servers | |
70 | ||
71 | %description -n openldap-schema-evolutionperson | |
72 | This package contains evolutionperson.schema for openldap server. | |
73 | ||
74 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 | |
75 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. | |
76 | ||
77 | %package libs | |
78 | Summary: Evolution Data Server library | |
79 | Summary(pl.UTF-8): Biblioteka Evolution Data Server | |
80 | Group: X11/Libraries | |
81 | Requires: libsoup >= 2.26.0 | |
82 | ||
83 | %description libs | |
84 | This package contains Evolution Data Server library. | |
85 | ||
86 | %description libs -l pl.UTF-8 | |
87 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
88 | ||
89 | %package devel | |
90 | Summary: Evolution data server development files | |
91 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution | |
92 | Group: X11/Development/Libraries | |
93 | Requires: %{name}-libs = %{version}-%{release} | |
94 | Requires: GConf2-devel >= 2.26.0 | |
95 | Requires: glib2-devel >= 1:2.28.0 | |
96 | Requires: gtk+3-devel >= 3.0.0 | |
97 | %{?with_kerberos5:Requires: heimdal-devel} | |
98 | Requires: libgdata-devel >= 0.6.3 | |
99 | Requires: libical-devel >= 0.43 | |
100 | Requires: libsoup-devel >= 2.26.0 | |
101 | Requires: libxml2-devel >= 1:2.6.31 | |
102 | Requires: nspr-devel | |
103 | Requires: nss-devel | |
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: Evolution data server API documentation | |
128 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
129 | Group: Documentation | |
130 | Requires: gtk-doc-common | |
131 | ||
132 | %description apidocs | |
133 | Evolution data server API documentation. | |
134 | ||
135 | %description apidocs -l pl.UTF-8 | |
136 | Dokumentacja API serwera danych Evolution. | |
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 | # fix broken tarball | |
145 | mkdir vala | |
146 | touch vala/Makefile.in | |
147 | ||
148 | %build | |
149 | %{__gtkdocize} | |
150 | %{__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-ssl \ | |
174 | --enable-smime \ | |
175 | --enable-ipv6 \ | |
176 | --enable-calendar \ | |
177 | --enable-nntp \ | |
178 | --enable-gtk-doc \ | |
179 | --enable-static \ | |
180 | --with-libdb=%{_libdir} \ | |
181 | --with-html-dir=%{_gtkdocdir} \ | |
182 | --disable-silent-rules | |
183 | ||
184 | %{__make} | |
185 | ||
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
188 | install -d $RPM_BUILD_ROOT%{schemadir} | |
189 | ||
190 | %{__make} install \ | |
191 | DESTDIR=$RPM_BUILD_ROOT \ | |
192 | HTML_DIR=%{_gtkdocdir} | |
193 | ||
194 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} | |
195 | ||
196 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} | |
197 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
198 | ||
199 | %find_lang %{name} --all-name | |
200 | ||
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
204 | %post libs -p /sbin/ldconfig | |
205 | %postun libs -p /sbin/ldconfig | |
206 | ||
207 | %post -n openldap-schema-evolutionperson | |
208 | %openldap_schema_register %{schemadir}/evolutionperson.schema | |
209 | %service -q ldap restart | |
210 | ||
211 | %postun -n openldap-schema-evolutionperson | |
212 | if [ "$1" = "0" ]; then | |
213 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema | |
214 | %service -q ldap restart | |
215 | fi | |
216 | ||
217 | %files -f %{name}.lang | |
218 | %defattr(644,root,root,755) | |
219 | %doc AUTHORS ChangeLog NEWS* README | |
220 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} | |
221 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
222 | %attr(755,root,root) %{_libdir}/e-addressbook-factory | |
223 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
224 | %dir %{_libdir}/%{name} | |
225 | %dir %{_libdir}/%{name}/camel-providers | |
226 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
227 | %{_libdir}/%{name}/camel-providers/*.urls | |
228 | %dir %{_libdir}/%{name}/addressbook-backends | |
229 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
230 | %dir %{_libdir}/%{name}/calendar-backends | |
231 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
232 | ||
233 | %if %{with ldap} | |
234 | %{_datadir}/%{name}-%{basever}/*.schema | |
235 | %endif | |
236 | ||
237 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service | |
238 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
239 | ||
240 | %dir %{_datadir}/%{name}-%{basever} | |
241 | %{_pixmapsdir}/%{name} | |
242 | ||
243 | %files -n openldap-schema-evolutionperson | |
244 | %defattr(644,root,root,755) | |
245 | %{schemadir}/evolutionperson.schema | |
246 | ||
247 | %files libs | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.23 | |
251 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* | |
252 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.23 | |
253 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.1 | |
255 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* | |
256 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.10 | |
257 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* | |
258 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.8 | |
259 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* | |
260 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.9 | |
261 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* | |
262 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.11 | |
263 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.14 | |
265 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.0 | |
267 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13 | |
269 | %{_libdir}/girepository-1.0/EBook-1.2.typelib | |
270 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib | |
271 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
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-%{apiver2}.so | |
284 | %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so | |
285 | %{_includedir}/evolution-data-server-%{basever} | |
286 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
287 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
288 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
289 | %{_pkgconfigdir}/libebackend-%{apiver}.pc | |
290 | %{_pkgconfigdir}/libebook-%{apiver}.pc | |
291 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
292 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
293 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
294 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
295 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc | |
296 | %{_pkgconfigdir}/libegroupwise-%{apiver}.pc | |
297 | %{_datadir}/gir-1.0/EBook-1.2.gir | |
298 | %{_datadir}/gir-1.0/ECalendar-1.2.gir | |
299 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
300 | ||
301 | %files static | |
302 | %defattr(644,root,root,755) | |
303 | %{_libdir}/libcamel-%{apiver}.a | |
304 | %{_libdir}/libcamel-provider-%{apiver}.a | |
305 | %{_libdir}/libebackend-%{apiver}.a | |
306 | %{_libdir}/libebook-%{apiver}.a | |
307 | %{_libdir}/libecal-%{apiver}.a | |
308 | %{_libdir}/libedata-book-%{apiver}.a | |
309 | %{_libdir}/libedata-cal-%{apiver}.a | |
310 | %{_libdir}/libedataserver-%{apiver}.a | |
311 | %{_libdir}/libedataserverui-%{apiver2}.a | |
312 | %{_libdir}/libegroupwise-%{apiver}.a | |
313 | ||
314 | %files apidocs | |
315 | %defattr(644,root,root,755) | |
316 | %{_gtkdocdir}/camel | |
317 | %{_gtkdocdir}/libebackend | |
318 | %{_gtkdocdir}/libebook | |
319 | %{_gtkdocdir}/libecal | |
320 | %{_gtkdocdir}/libedata-book | |
321 | %{_gtkdocdir}/libedata-cal | |
322 | %{_gtkdocdir}/libedataserver | |
323 | %{_gtkdocdir}/libedataserverui |