]> git.pld-linux.org Git - packages/evolution-data-server.git/blob - evolution-data-server.spec
- added P1 to fix some m{in,aj}or password issues (like being unable to type in
[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.1.1
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:  53517ab651ba2a6fe57e00ef438c2ccb
20 Patch0:         %{name}-ntlm-ldap.patch
21 Patch1:         %{name}-passwords.patch
22 URL:            http://www.gnome.org/projects/evolution/
23 BuildRequires:  GConf2-devel >= 2.22.0
24 BuildRequires:  ORBit2-devel >= 1:2.14.8
25 BuildRequires:  autoconf >= 2.52
26 BuildRequires:  automake
27 BuildRequires:  bison
28 BuildRequires:  cyrus-sasl-devel
29 BuildRequires:  db-devel
30 BuildRequires:  gettext-devel
31 BuildRequires:  glib2-devel >= 1:2.16.1
32 BuildRequires:  gnome-common >= 2.20.0
33 BuildRequires:  gnome-keyring-devel >= 2.22.0
34 BuildRequires:  gnome-vfs2-devel >= 2.22.0
35 BuildRequires:  gtk+2-devel >= 2:2.12.8
36 BuildRequires:  gtk-doc >= 1.9
37 BuildRequires:  intltool >= 0.37.0
38 %{?with_kerberos5:BuildRequires:        krb5-devel}
39 BuildRequires:  libglade2-devel >= 1:2.6.2
40 BuildRequires:  libgnomeui-devel >= 2.22.01
41 BuildRequires:  libsoup-devel >= 2.4.0
42 BuildRequires:  libstdc++-devel
43 BuildRequires:  libtool
44 BuildRequires:  libxml2-devel >= 1:2.6.31
45 BuildRequires:  nspr-devel
46 BuildRequires:  nss-devel
47 %{?with_ldap:BuildRequires:     openldap-evolution-devel >= 2.4.6}
48 BuildRequires:  openssl-devel
49 BuildRequires:  pkgconfig
50 BuildRequires:  rpmbuild(macros) >= 1.304
51 BuildRequires:  sed >= 4.0
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:       libgnomeui >= 2.22.01
84 Requires:       libsoup >= 2.4.0
85
86 %description libs
87 This package contains Evolution Data Server library.
88
89 %description libs -l pl.UTF-8
90 Ten pakiet zawiera bibliotekę Evolution Data Server.
91
92 %package devel
93 Summary:        Evolution data server development files
94 Summary(pl.UTF-8):      Pliki programistyczne serwera danych evolution
95 Group:          X11/Development/Libraries
96 Requires:       %{name}-libs = %{version}-%{release}
97 %{?with_kerberos5:Requires:     krb5-devel}
98 # for all but libegroupwise
99 Requires:       GConf2-devel >= 2.22.0
100 Requires:       ORBit2-devel >= 1:2.14.8
101 Requires:       glib2-devel >= 1:2.16.1
102 Requires:       gtk+2-devel >= 2:2.12.8
103 Requires:       libglade2-devel >= 1:2.6.2
104 Requires:       libgnomeui-devel >= 2.22.0
105 Requires:       libxml2-devel >= 1:2.6.31
106 # for libegroupwise
107 Requires:       libsoup-devel >= 2.4.0
108
109 %description devel
110 This package contains the files necessary to develop applications
111 using Evolution's data server libraries.
112
113 %description devel -l pl.UTF-8
114 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
115 korzystających z bibliotek serwera danych Evolution.
116
117 %package static
118 Summary:        Evolution data server static libraries
119 Summary(pl.UTF-8):      Statyczne biblioteki serwera danych Evolution
120 Group:          X11/Development/Libraries
121 Requires:       %{name}-devel = %{version}-%{release}
122
123 %description static
124 Evolution data server static libraries.
125
126 %description static -l pl.UTF-8
127 Statyczne biblioteki serwera danych Evolution.
128
129 %package apidocs
130 Summary:        e-d-s API documentation
131 Summary(pl.UTF-8):      Dokumentacja API e-d-s
132 Group:          Documentation
133 Requires:       gtk-doc-common
134
135 %description apidocs
136 e-d-s API documentation.
137
138 %description apidocs -l pl.UTF-8
139 Dokumentacja API e-d-s.
140
141 %prep
142 %setup -q
143 %patch0 -p1
144 %patch1 -p0
145
146 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
147 mv po/sr@{Latn,latin}.po
148
149 %build
150 %{__gtkdocize}
151 %{__glib_gettextize}
152 %{__intltoolize}
153 %{__libtoolize}
154 %{__aclocal}
155 %{__autoheader}
156 %{__autoconf}
157 %{__automake}
158
159 cd calendar/libical
160 %{__libtoolize}
161 %{__aclocal}
162 %{__autoheader}
163 %{__autoconf}
164 %{__automake}
165 cd ../..
166
167 # Set LIBS so that configure will be able to link with static LDAP libraries,
168 # which depend on Cyrus SASL and OpenSSL.
169 if pkg-config openssl ; then
170         LIBS="-lsasl2 `pkg-config --libs openssl`"
171 else
172         LIBS="-lsasl2 -lssl -lcrypto"
173 fi
174 export LIBS
175
176 %configure \
177         %{?with_kerberos5:--with-krb5=%{_prefix}} \
178         %{!?with_kerberos5:--with-krb5=no} \
179         %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
180         %{?with_ldap:--with-static-ldap=yes} \
181         %{!?with_ldap:--with-openldap=no} \
182         --enable-gnome-keyring=yes \
183         --enable-gtk-doc \
184         --enable-static \
185         --with-nspr-includes=%{_includedir}/nspr \
186         --with-nspr-libs=%{_libdir} \
187         --with-nss-includes=%{_includedir}/nss \
188         --with-nss-libs=%{_libdir} \
189         --with-libdb=%{_libdir}
190
191 %{__make} \
192         HTML_DIR=%{_gtkdocdir} \
193         GTKHTML_DATADIR=%{_datadir}/idl
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT \
200         GTKHTML_DATADIR=%{_datadir}/idl \
201         HTML_DIR=%{_gtkdocdir} \
202         pkgconfigdir=%{_pkgconfigdir}
203
204 rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
205
206 install -d $RPM_BUILD_ROOT%{schemadir}
207 install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
208
209 %find_lang %{name} --all-name
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post   libs -p /sbin/ldconfig
215 %postun libs -p /sbin/ldconfig
216
217 %post -n openldap-schema-evolutionperson
218 %openldap_schema_register %{schemadir}/evolutionperson.schema
219 %service -q ldap restart
220
221 %postun -n openldap-schema-evolutionperson
222 if [ "$1" = "0" ]; then
223         %openldap_schema_unregister %{schemadir}/evolutionperson.schema
224         %service -q ldap restart
225 fi
226
227 %files -f %{name}.lang
228 %defattr(644,root,root,755)
229 %doc AUTHORS ChangeLog NEWS* README
230 %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
231 %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
232 %attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
233 %dir %{_libdir}/%{name}-%{apiver}
234 %dir %{_libdir}/%{name}-%{apiver}/camel-providers
235 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
236 %{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
237 %dir %{_libdir}/%{name}-%{apiver}/extensions
238 %attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
239 %{_libdir}/bonobo/servers/GNOME_Evolution_DataServer_1.2.server
240
241 %if %{with ldap}
242 %{_datadir}/%{name}-%{basever}/*.schema
243 %endif
244
245 %dir %{_datadir}/%{name}-%{basever}
246 %{_datadir}/%{name}-%{basever}/glade
247 %{_datadir}/%{name}-%{basever}/weather
248 %{_pixmapsdir}/%{name}
249
250 %files -n openldap-schema-evolutionperson
251 %defattr(644,root,root,755)
252 %{schemadir}/evolutionperson.schema
253
254 %files libs
255 %defattr(644,root,root,755)
256 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.*
257 %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.11
258 %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.*
259 %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.11
260 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.*
261 %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.9
262 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.*
263 %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.7
264 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.*
265 %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.2
266 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.*
267 %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.6
268 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.*
269 %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.9
270 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so.*.*.*
271 %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver}.so.8
272 %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so.*.*.*
273 %attr(755,root,root) %ghost %{_libdir}/libegroupwise-%{apiver}.so.13
274 %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so.*.*.*
275 %attr(755,root,root) %ghost %{_libdir}/libexchange-storage-%{apiver}.so.3
276 %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so.*.*.*
277 %attr(755,root,root) %ghost %{_libdir}/libgdata-%{apiver}.so.1
278 %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/libgdata-google-%{apiver}.so.1
280 %{_datadir}/idl/%{name}-%{apiver}
281
282 %files devel
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so
285 %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so
286 %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so
287 %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so
288 %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so
289 %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so
290 %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so
291 %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver}.so
292 %attr(755,root,root) %{_libdir}/libegroupwise-%{apiver}.so
293 %attr(755,root,root) %{_libdir}/libexchange-storage-%{apiver}.so
294 %attr(755,root,root) %{_libdir}/libgdata-%{apiver}.so
295 %attr(755,root,root) %{_libdir}/libgdata-google-%{apiver}.so
296 %{_libdir}/libcamel-%{apiver}.la
297 %{_libdir}/libcamel-provider-%{apiver}.la
298 %{_libdir}/libebook-%{apiver}.la
299 %{_libdir}/libecal-%{apiver}.la
300 %{_libdir}/libedata-book-%{apiver}.la
301 %{_libdir}/libedata-cal-%{apiver}.la
302 %{_libdir}/libedataserver-%{apiver}.la
303 %{_libdir}/libedataserverui-%{apiver}.la
304 %{_libdir}/libegroupwise-%{apiver}.la
305 %{_libdir}/libexchange-storage-%{apiver}.la
306 %{_libdir}/libgdata-%{apiver}.la
307 %{_libdir}/libgdata-google-%{apiver}.la
308 %{_includedir}/evolution-data-server-%{basever}
309 %{_pkgconfigdir}/camel-%{apiver}.pc
310 %{_pkgconfigdir}/camel-provider-%{apiver}.pc
311 %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc
312 %{_pkgconfigdir}/libebook-%{apiver}.pc
313 %{_pkgconfigdir}/libecal-%{apiver}.pc
314 %{_pkgconfigdir}/libedata-book-%{apiver}.pc
315 %{_pkgconfigdir}/libedata-cal-%{apiver}.pc
316 %{_pkgconfigdir}/libedataserver-%{apiver}.pc
317 %{_pkgconfigdir}/libedataserverui-%{apiver}.pc
318 %{_pkgconfigdir}/libegroupwise-%{apiver}.pc
319 %{_pkgconfigdir}/libexchange-storage-%{apiver}.pc
320 %{_pkgconfigdir}/libgdata-%{apiver}.pc
321 %{_pkgconfigdir}/libgdata-google-%{apiver}.pc
322
323 %files static
324 %defattr(644,root,root,755)
325 %{_libdir}/libcamel-%{apiver}.a
326 %{_libdir}/libcamel-provider-%{apiver}.a
327 %{_libdir}/libebook-%{apiver}.a
328 %{_libdir}/libecal-%{apiver}.a
329 %{_libdir}/libedata-book-%{apiver}.a
330 %{_libdir}/libedata-cal-%{apiver}.a
331 %{_libdir}/libedataserver-%{apiver}.a
332 %{_libdir}/libedataserverui-%{apiver}.a
333 %{_libdir}/libegroupwise-%{apiver}.a
334 %{_libdir}/libexchange-storage-%{apiver}.a
335 %{_libdir}/libgdata-%{apiver}.a
336 %{_libdir}/libgdata-google-%{apiver}.a
337
338 %files apidocs
339 %defattr(644,root,root,755)
340 %{_gtkdocdir}/camel
341 %{_gtkdocdir}/libebook
342 %{_gtkdocdir}/libecal
343 %{_gtkdocdir}/libedata-book
344 %{_gtkdocdir}/libedata-cal
345 %{_gtkdocdir}/libedataserver
346 %{_gtkdocdir}/libedataserverui
This page took 0.063587 seconds and 4 git commands to generate.