e07c5a315e9b4a1c64be2d60473abbe99d9287d6
[packages/evolution-data-server.git] / evolution-data-server.spec
1 # TODO: uoa (BR: libaccounts-glib >= 1.4, libsignon-glib >= 1.8, json-glib, rest >= 0.7)
2 #
3 # Conditional build:
4 %bcond_without  apidocs         # do not build and package API docs
5 %bcond_without  kerberos5       # build without kerberos5 support
6 %bcond_without  ldap            # build without ldap support
7 %bcond_without  static_libs     # do not build static libs
8 %bcond_without  vala            # do not build Vala API
9
10 %define         basever         3.10
11 %define         apiver          1.2
12 Summary:        Evolution data server
13 Summary(pl.UTF-8):      Serwer danych Evolution
14 Name:           evolution-data-server
15 Version:        3.10.4
16 Release:        1
17 License:        LGPL v2+
18 Group:          X11/Libraries
19 Source0:        http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.10/%{name}-%{version}.tar.xz
20 # Source0-md5:  62b365fa50f13a0be85eec67115742c8
21 URL:            http://www.gnome.org/projects/evolution/
22 BuildRequires:  autoconf >= 2.62
23 BuildRequires:  automake >= 1:1.11
24 BuildRequires:  docbook-dtd412-xml
25 BuildRequires:  gcr-devel >= 3.4.0
26 BuildRequires:  gettext-devel >= 0.18.1
27 BuildRequires:  glib2-devel >= 1:2.34.0
28 BuildRequires:  gnome-common >= 2.20.0
29 BuildRequires:  gnome-online-accounts-devel >= 3.8.0
30 BuildRequires:  gobject-introspection-devel >= 0.10.0
31 BuildRequires:  gperf
32 BuildRequires:  gtk+3-devel >= 3.2.0
33 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.14}
34 %{?with_kerberos5:BuildRequires:        heimdal-devel}
35 BuildRequires:  intltool >= 0.40.0
36 BuildRequires:  libgdata-devel >= 0.10.0
37 BuildRequires:  libgweather-devel >= 3.8
38 BuildRequires:  libical-devel >= 0.43
39 BuildRequires:  libsecret-devel >= 0.5
40 BuildRequires:  libsoup-devel >= 2.40.3
41 BuildRequires:  libstdc++-devel
42 BuildRequires:  libtool >= 2:2.2
43 BuildRequires:  libxml2-devel >= 1:2.6.31
44 BuildRequires:  nspr-devel >= 4
45 BuildRequires:  nss-devel >= 3
46 %{?with_ldap:BuildRequires:     openldap-evolution-devel >= 2.4.6}
47 BuildRequires:  pkgconfig
48 BuildRequires:  rpmbuild(macros) >= 1.304
49 BuildRequires:  sed >= 4.0
50 BuildRequires:  sqlite3-devel >= 3.5
51 BuildRequires:  tar >= 1:1.22
52 %{?with_vala:BuildRequires:     vala >= 2:0.14.0}
53 BuildRequires:  xz
54 BuildRequires:  zlib-devel
55 Requires(post,postun):  glib2 >= 1:2.34.0
56 Requires:       %{name}-libs = %{version}-%{release}
57 Requires:       gnome-online-accounts-libs >= 3.8.0
58 Requires:       gtk+3 >= 3.2.0
59 Requires:       libgdata >= 0.10.0
60 Requires:       libgweather >= 3.8
61 # sr@Latn vs. sr@latin
62 Conflicts:      glibc-misc < 6:2.7
63 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64
65 %define         schemadir       /usr/share/openldap/schema
66
67 %description
68 The Evolution data server for the calendar and addressbook.
69
70 %description -l pl.UTF-8
71 Serwer danych Evolution dla kalendarza i książki adresowej.
72
73 %package -n openldap-schema-evolutionperson
74 Summary:        evolutionperson LDAP schema
75 Summary(pl.UTF-8):      Schemat LDAP evolutionperson
76 Group:          Networking/Daemons
77 Requires(post,postun):  sed >= 4.0
78 Requires:       openldap-servers
79 %if "%{_rpmversion}" >= "5"
80 BuildArch:      noarch
81 %endif
82
83 %description -n openldap-schema-evolutionperson
84 This package contains evolutionperson.schema for OpenLDAP server.
85
86 %description -n openldap-schema-evolutionperson -l pl.UTF-8
87 Ten pakiet zawiera evolutionperson.schema dla serwera OpenLDAP.
88
89 %package libs
90 Summary:        Evolution Data Server library
91 Summary(pl.UTF-8):      Biblioteka Evolution Data Server
92 Group:          X11/Libraries
93 Requires:       gcr-libs >= 3.4.0
94 Requires:       glib2 >= 1:2.34.0
95 Requires:       libical >= 0.43
96 Requires:       libsecret >= 0.5
97 Requires:       libsoup >= 2.40.3
98 Requires:       libxml2 >= 1:2.6.31
99 Requires:       sqlite3 >= 3.5
100
101 %description libs
102 This package contains Evolution Data Server library.
103
104 %description libs -l pl.UTF-8
105 Ten pakiet zawiera bibliotekę Evolution Data Server.
106
107 %package devel
108 Summary:        Evolution data server development files
109 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
110 Group:          X11/Development/Libraries
111 Requires:       %{name}-libs = %{version}-%{release}
112 Requires:       gcr-devel >= 3.4.0
113 Requires:       glib2-devel >= 1:2.34.0
114 %{?with_kerberos5:Requires:     heimdal-devel}
115 Requires:       libgdata-devel >= 0.10.0
116 Requires:       libical-devel >= 0.43
117 Requires:       libsecret-devel >= 0.5
118 Requires:       libsoup-devel >= 2.40.3
119 Requires:       libxml2-devel >= 1:2.6.31
120 Requires:       nspr-devel >= 4
121 Requires:       nss-devel >= 3
122 Requires:       sqlite3-devel >= 3.5
123
124 %description devel
125 This package contains the files necessary to develop applications
126 using Evolution's data server libraries.
127
128 %description devel -l pl.UTF-8
129 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
130 korzystających z bibliotek serwera danych Evolution.
131
132 %package static
133 Summary:        Evolution data server static libraries
134 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
135 Group:          X11/Development/Libraries
136 Requires:       %{name}-devel = %{version}-%{release}
137
138 %description static
139 Evolution data server static libraries.
140
141 %description static -l pl.UTF-8
142 Statyczne biblioteki serwera danych Evolution.
143
144 %package apidocs
145 Summary:        Evolution data server API documentation
146 Summary(pl.UTF-8):      Dokumentacja API serwera danych Evolution
147 Group:          Documentation
148 Requires:       gtk-doc-common
149
150 %description apidocs
151 Evolution data server API documentation.
152
153 %description apidocs -l pl.UTF-8
154 Dokumentacja API serwera danych Evolution.
155
156 %package -n vala-evolution-data-server
157 Summary:        Evolution data server API for Vala language
158 Summary(pl.UTF-8):      API serwera danych Evolution dla języka Vala
159 Group:          Development/Libraries
160 Requires:       %{name}-devel = %{version}-%{release}
161 Requires:       vala >= 2:0.14.0
162
163 %description -n vala-evolution-data-server
164 Evolution data server API for Vala language.
165
166 %description -n vala-evolution-data-server -l pl.UTF-8
167 API serwera danych Evolution dla języka Vala.
168
169 %prep
170 %setup -q
171
172 # kill -L$withval/lib
173 %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac
174
175 %build
176 %{__gtkdocize}
177 %{__intltoolize}
178 %{__libtoolize}
179 %{__aclocal} -I m4
180 %{__autoheader}
181 %{__autoconf}
182 %{__automake}
183
184 # Set LIBS so that configure will be able to link with static LDAP libraries,
185 # which depend on Cyrus SASL and OpenSSL.
186 if pkg-config openssl ; then
187         LIBS="-lsasl2 `pkg-config --libs openssl`"
188 else
189         LIBS="-lsasl2 -lssl -lcrypto"
190 fi
191 export LIBS
192
193 %configure \
194         %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
195         %{!?with_kerberos5:--with-krb5=no} \
196         %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
197         %{?with_ldap:--with-static-ldap=yes} \
198         %{!?with_ldap:--with-openldap=no} \
199         --enable-smime \
200         --enable-ipv6 \
201         --enable-nntp \
202         %{__enable_disable apidocs gtk-doc} \
203         %{__enable_disable static_libs static} \
204         %{__enable_disable vala vala-bindings} \
205         --disable-uoa \
206         --with-libdb=%{_libdir} \
207         --with-html-dir=%{_gtkdocdir} \
208         --disable-silent-rules
209
210 %{__make}
211
212 %install
213 rm -rf $RPM_BUILD_ROOT
214 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-%{basever}
215 install -d $RPM_BUILD_ROOT%{schemadir}
216
217 %{__make} install \
218         DESTDIR=$RPM_BUILD_ROOT \
219         HTML_DIR=%{_gtkdocdir}
220
221 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
222
223 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends,registry-modules}/*.{la,a}
224 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
225
226 %find_lang %{name}-%{basever}
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %post
232 %glib_compile_schemas
233
234 %postun
235 %glib_compile_schemas
236
237 %post   libs -p /sbin/ldconfig
238 %postun libs -p /sbin/ldconfig
239
240 %post -n openldap-schema-evolutionperson
241 %openldap_schema_register %{schemadir}/evolutionperson.schema
242 %service -q ldap restart
243
244 %postun -n openldap-schema-evolutionperson
245 if [ "$1" = "0" ]; then
246         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
247         %service -q ldap restart
248 fi
249
250 %files -f %{name}-%{basever}.lang
251 %defattr(644,root,root,755)
252 %doc AUTHORS ChangeLog NEWS* README
253 %attr(755,root,root) %{_libexecdir}/camel-index-control-%{apiver}
254 %attr(755,root,root) %{_libexecdir}/camel-lock-helper-%{apiver}
255 %attr(755,root,root) %{_libexecdir}/evolution-addressbook-factory
256 %attr(755,root,root) %{_libexecdir}/evolution-calendar-factory
257 %attr(755,root,root) %{_libexecdir}/evolution-scan-gconf-tree-xml
258 %attr(755,root,root) %{_libexecdir}/evolution-source-registry
259 %attr(755,root,root) %{_libexecdir}/evolution-user-prompter
260 %dir %{_libdir}/%{name}
261 %dir %{_libdir}/%{name}/camel-providers
262 %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so
263 %{_libdir}/%{name}/camel-providers/*.urls
264 %dir %{_libdir}/%{name}/addressbook-backends
265 %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so
266 %dir %{_libdir}/%{name}/calendar-backends
267 %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so
268 %dir %{_libdir}/evolution-data-server/registry-modules
269 %attr(755,root,root) %{_libdir}/evolution-data-server/registry-modules/*.so
270
271 %dir %{_libdir}/%{name}-%{basever}
272
273 %dir %{_datadir}/%{name}
274 %if %{with ldap}
275 %{_datadir}/%{name}/*.schema
276 %endif
277 %{_pixmapsdir}/%{name}
278
279 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
280 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
281 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
282 %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
283
284 %{_datadir}/GConf/gsettings/evolution-data-server.convert
285 %{_datadir}/GConf/gsettings/libedataserver.convert
286 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
287 %{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
288 %{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
289 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
290 %{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
291
292 %files -n openldap-schema-evolutionperson
293 %defattr(644,root,root,755)
294 %{schemadir}/evolutionperson.schema
295
296 %files libs
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.45
300 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.*
301 %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.7
302 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.14
304 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so.*.*.*
305 %attr(755,root,root) %ghost %{_libdir}/libebook-contacts-%{apiver}.so.0
306 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
307 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.16
308 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
309 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.20
310 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
311 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.23
312 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
313 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.18
314 %{_libdir}/girepository-1.0/EBook-%{apiver}.typelib
315 %{_libdir}/girepository-1.0/EBookContacts-%{apiver}.typelib
316 %{_libdir}/girepository-1.0/EDataServer-%{apiver}.typelib
317
318 %files devel
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
321 %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so
322 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
323 %attr(755,root,root) %{_libdir}/libebook-contacts-%{apiver}.so
324 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
325 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
326 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
327 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
328 %{_includedir}/evolution-data-server
329 %{_pkgconfigdir}/camel-%{apiver}.pc
330 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
331 %{_pkgconfigdir}/libebackend-%{apiver}.pc
332 %{_pkgconfigdir}/libebook-%{apiver}.pc
333 %{_pkgconfigdir}/libebook-contacts-%{apiver}.pc
334 %{_pkgconfigdir}/libecal-%{apiver}.pc
335 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
336 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
337 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
338 %{_datadir}/gir-1.0/EBook-%{apiver}.gir
339 %{_datadir}/gir-1.0/EBookContacts-%{apiver}.gir
340 %{_datadir}/gir-1.0/EDataServer-%{apiver}.gir
341
342 %if %{with static_libs}
343 %files static
344 %defattr(644,root,root,755)
345 %{_libdir}/libcamel-%{apiver}.a
346 %{_libdir}/libebackend-%{apiver}.a
347 %{_libdir}/libebook-%{apiver}.a
348 %{_libdir}/libebook-contacts-%{apiver}.a
349 %{_libdir}/libecal-%{apiver}.a
350 %{_libdir}/libedata-book-%{apiver}.a
351 %{_libdir}/libedata-cal-%{apiver}.a
352 %{_libdir}/libedataserver-%{apiver}.a
353 %endif
354
355 %if %{with apidocs}
356 %files apidocs
357 %defattr(644,root,root,755)
358 %{_gtkdocdir}/camel
359 %{_gtkdocdir}/libebackend
360 %{_gtkdocdir}/libebook
361 %{_gtkdocdir}/libebook-contacts
362 %{_gtkdocdir}/libecal
363 %{_gtkdocdir}/libedata-book
364 %{_gtkdocdir}/libedata-cal
365 %{_gtkdocdir}/libedataserver
366 %endif
367
368 %if %{with vala}
369 %files -n vala-evolution-data-server
370 %defattr(644,root,root,755)
371 %{_datadir}/vala/vapi/libebook-%{apiver}.deps
372 %{_datadir}/vala/vapi/libebook-%{apiver}.vapi
373 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.deps
374 %{_datadir}/vala/vapi/libebook-contacts-%{apiver}.vapi
375 %{_datadir}/vala/vapi/libedataserver-%{apiver}.deps
376 %{_datadir}/vala/vapi/libedataserver-%{apiver}.vapi
377 %endif
This page took 0.094909 seconds and 2 git commands to generate.