]> git.pld-linux.org Git - packages/evolution-data-server.git/blob - evolution-data-server.spec
- release 2
[packages/evolution-data-server.git] / evolution-data-server.spec
1 #
2 # todo:
3 # - system libical
4 #
5 # Conditional build:
6 %bcond_without  kerberos5       # build without kerberos5 support
7 %bcond_without  ldap            # build without ldap support
8 #
9 %define         basever         2.22
10 %define         apiver          1.2
11 Summary:        Evolution data server
12 Summary(pl.UTF-8):      Serwer danych Evolution
13 Name:           evolution-data-server
14 Version:        2.22.3
15 Release:        2
16 License:        LGPL v2+
17 Group:          X11/Libraries
18 Source0:        http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/2.22/%{name}-%{version}.tar.bz2
19 # Source0-md5:  7552919fa10a04a09130e29540482fdf
20 Patch0:         %{name}-ntlm-ldap.patch
21 URL:            http://www.gnome.org/projects/evolution/
22 BuildRequires:  GConf2-devel >= 2.22.0
23 BuildRequires:  ORBit2-devel >= 1:2.14.8
24 BuildRequires:  autoconf >= 2.52
25 BuildRequires:  automake
26 BuildRequires:  bison
27 BuildRequires:  cyrus-sasl-devel
28 BuildRequires:  db-devel
29 BuildRequires:  gettext-devel
30 BuildRequires:  glib2-devel >= 1:2.16.1
31 BuildRequires:  gnome-common >= 2.20.0
32 BuildRequires:  gnome-keyring-devel >= 2.22.0
33 BuildRequires:  gnome-vfs2-devel >= 2.22.0
34 BuildRequires:  gtk+2-devel >= 2:2.12.8
35 BuildRequires:  gtk-doc >= 1.9
36 BuildRequires:  intltool >= 0.37.0
37 %{?with_kerberos5:BuildRequires:        krb5-devel}
38 BuildRequires:  libglade2-devel >= 1:2.6.2
39 BuildRequires:  libgnomeui-devel >= 2.22.01
40 BuildRequires:  libsoup-devel >= 2.4.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:  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.22.01
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 %{?with_kerberos5:Requires:     krb5-devel}
97 # for all but libegroupwise
98 Requires:       GConf2-devel >= 2.22.0
99 Requires:       ORBit2-devel >= 1:2.14.8
100 Requires:       glib2-devel >= 1:2.16.1
101 Requires:       gtk+2-devel >= 2:2.12.8
102 Requires:       libglade2-devel >= 1:2.6.2
103 Requires:       libgnomeui-devel >= 2.22.0
104 Requires:       libxml2-devel >= 1:2.6.31
105 # for libegroupwise
106 Requires:       libsoup-devel >= 2.4.0
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 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
145 mv po/sr@{Latn,latin}.po
146
147 # kill -L$withval/lib
148 sed -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.in
149
150 %build
151 %{__gtkdocize}
152 %{__glib_gettextize}
153 %{__intltoolize}
154 %{__libtoolize}
155 %{__aclocal}
156 %{__autoheader}
157 %{__autoconf}
158 %{__automake}
159
160 cd calendar/libical
161 %{__libtoolize}
162 %{__aclocal}
163 %{__autoheader}
164 %{__autoconf}
165 %{__automake}
166 cd ../..
167
168 # Set LIBS so that configure will be able to link with static LDAP libraries,
169 # which depend on Cyrus SASL and OpenSSL.
170 if pkg-config openssl ; then
171         LIBS="-lsasl2 `pkg-config --libs openssl`"
172 else
173         LIBS="-lsasl2 -lssl -lcrypto"
174 fi
175 export LIBS
176
177 %configure \
178         %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \
179         %{!?with_kerberos5:--with-krb5=no} \
180         %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
181         %{?with_ldap:--with-static-ldap=yes} \
182         %{!?with_ldap:--with-openldap=no} \
183         --enable-gnome-keyring=yes \
184         --enable-gtk-doc \
185         --enable-static \
186         --with-nspr-includes=%{_includedir}/nspr \
187         --with-nspr-libs=%{_libdir} \
188         --with-nss-includes=%{_includedir}/nss \
189         --with-nss-libs=%{_libdir} \
190         --with-libdb=%{_libdir}
191
192 %{__make} \
193         HTML_DIR=%{_gtkdocdir} \
194         GTKHTML_DATADIR=%{_datadir}/idl
195
196 %install
197 rm -rf $RPM_BUILD_ROOT
198
199 %{__make} install \
200         DESTDIR=$RPM_BUILD_ROOT \
201         GTKHTML_DATADIR=%{_datadir}/idl \
202         HTML_DIR=%{_gtkdocdir} \
203         pkgconfigdir=%{_pkgconfigdir}
204
205 rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
206
207 install -d $RPM_BUILD_ROOT%{schemadir}
208 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
209
210 %find_lang %{name} --all-name
211
212 %clean
213 rm -rf $RPM_BUILD_ROOT
214
215 %post   libs -p /sbin/ldconfig
216 %postun libs -p /sbin/ldconfig
217
218 %post -n openldap-schema-evolutionperson
219 %openldap_schema_register %{schemadir}/evolutionperson.schema
220 %service -q ldap restart
221
222 %postun -n openldap-schema-evolutionperson
223 if [ "$1" = "0" ]; then
224         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
225         %service -q ldap restart
226 fi
227
228 %files -f %{name}.lang
229 %defattr(644,root,root,755)
230 %doc AUTHORS ChangeLog NEWS* README
231 %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
232 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
233 %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
234 %dir %{_libdir}/%{name}-%{apiver}
235 %dir %{_libdir}/%{name}-%{apiver}/camel-providers
236 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
237 %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
238 %dir %{_libdir}/%{name}-%{apiver}/extensions
239 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
240 %{_libdir}/bonobo/servers/GNOME_Evolution_DataServer_1.2.server
241
242 %if %{with ldap}
243 %{_datadir}/%{name}-%{basever}/*.schema
244 %endif
245
246 %dir %{_datadir}/%{name}-%{basever}
247 %{_datadir}/%{name}-%{basever}/glade
248 %{_datadir}/%{name}-%{basever}/weather
249 %{_pixmapsdir}/%{name}
250
251 %files -n openldap-schema-evolutionperson
252 %defattr(644,root,root,755)
253 %{schemadir}/evolutionperson.schema
254
255 %files libs
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
258 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.11
259 %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.*
260 %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.11
261 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
262 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9
263 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
264 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7
265 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
266 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2
267 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
268 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.6
269 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
270 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.9
271 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
272 %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8
273 %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.*
274 %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13
275 %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libexchange-storage-%{apiver}.so.3
277 %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.*
278 %attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1
279 %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.*
280 %attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1
281 %{_datadir}/idl/%{name}-%{apiver}
282
283 %files devel
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
286 %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so
287 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
288 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
289 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
290 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
291 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
292 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
293 %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so
294 %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so
295 %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so
296 %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so
297 %{_libdir}/libcamel-%{apiver}.la
298 %{_libdir}/libcamel-provider-%{apiver}.la
299 %{_libdir}/libebook-%{apiver}.la
300 %{_libdir}/libecal-%{apiver}.la
301 %{_libdir}/libedata-book-%{apiver}.la
302 %{_libdir}/libedata-cal-%{apiver}.la
303 %{_libdir}/libedataserver-%{apiver}.la
304 %{_libdir}/libedataserverui-%{apiver}.la
305 %{_libdir}/libegroupwise-%{apiver}.la
306 %{_libdir}/libexchange-storage-%{apiver}.la
307 %{_libdir}/libgdata-%{apiver}.la
308 %{_libdir}/libgdata-google-%{apiver}.la
309 %{_includedir}/evolution-data-server-%{basever}
310 %{_pkgconfigdir}/camel-%{apiver}.pc
311 %{_pkgconfigdir}/camel-provider-%{apiver}.pc
312 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
313 %{_pkgconfigdir}/libebook-%{apiver}.pc
314 %{_pkgconfigdir}/libecal-%{apiver}.pc
315 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
316 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
317 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
318 %{_pkgconfigdir}/libedataserverui-%{apiver}.pc
319 %{_pkgconfigdir}/libegroupwise-%{apiver}.pc
320 %{_pkgconfigdir}/libexchange-storage-%{apiver}.pc
321 %{_pkgconfigdir}/libgdata-%{apiver}.pc
322 %{_pkgconfigdir}/libgdata-google-%{apiver}.pc
323
324 %files static
325 %defattr(644,root,root,755)
326 %{_libdir}/libcamel-%{apiver}.a
327 %{_libdir}/libcamel-provider-%{apiver}.a
328 %{_libdir}/libebook-%{apiver}.a
329 %{_libdir}/libecal-%{apiver}.a
330 %{_libdir}/libedata-book-%{apiver}.a
331 %{_libdir}/libedata-cal-%{apiver}.a
332 %{_libdir}/libedataserver-%{apiver}.a
333 %{_libdir}/libedataserverui-%{apiver}.a
334 %{_libdir}/libegroupwise-%{apiver}.a
335 %{_libdir}/libexchange-storage-%{apiver}.a
336 %{_libdir}/libgdata-%{apiver}.a
337 %{_libdir}/libgdata-google-%{apiver}.a
338
339 %files apidocs
340 %defattr(644,root,root,755)
341 %{_gtkdocdir}/camel
342 %{_gtkdocdir}/libebook
343 %{_gtkdocdir}/libecal
344 %{_gtkdocdir}/libedata-book
345 %{_gtkdocdir}/libedata-cal
346 %{_gtkdocdir}/libedataserver
347 %{_gtkdocdir}/libedataserverui
This page took 0.061929 seconds and 3 git commands to generate.