- updated to 1.12.3
[packages/evolution-data-server.git] / evolution-data-server.spec
CommitLineData
8a5a422a 1#
2# todo:
b7c830de 3# - system libical
b7c830de 4#
69577d81 5# Conditional build:
51160b41 6%bcond_without kerberos5 # build without kerberos5 support
7%bcond_without ldap # build without ldap support
69577d81 8#
c22a020a 9%define basever 1.12
e2ebc190 10%define apiver 1.2
11b4e6b5 11Summary: Evolution data server
7628f827 12Summary(pl.UTF-8): Serwer danych Evolution
11b4e6b5 13Name: evolution-data-server
df83f2ab 14Version: 1.12.3
483474c5 15Release: 1
11b4e6b5 16License: GPL
17Group: Libraries
c22a020a 18Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/1.12/%{name}-%{version}.tar.bz2
df83f2ab 19# Source0-md5: 9a04e379c34ad538764866dfd4eb2931
a33049a0 20Patch0: %{name}-ntlm-ldap.patch
c22a020a
PZ
21URL: http://www.gnome.org/projects/evolution/
22BuildRequires: ORBit2-devel >= 1:2.14.8
353eadf1
JB
23BuildRequires: autoconf >= 2.52
24BuildRequires: automake
e2ebc190 25BuildRequires: bison
8f24fc3c 26BuildRequires: cyrus-sasl-devel
353eadf1 27BuildRequires: db-devel
ea3ad516
MB
28BuildRequires: gnome-common >= 2.20.0
29BuildRequires: gnome-keyring-devel >= 2.20.0
042cdced 30BuildRequires: gtk-doc >= 1.8
66e2b260 31%{?with_kerberos5:BuildRequires: krb5-devel}
c22a020a
PZ
32BuildRequires: intltool >= 0.36.1
33BuildRequires: libglade2-devel >= 1:2.6.2
ea3ad516 34BuildRequires: libgnomeui-devel >= 2.20.0
042cdced 35BuildRequires: libsoup-devel >= 2.2.100
e2c48f95 36BuildRequires: libstdc++-devel
353eadf1 37BuildRequires: libtool
94fa296c 38BuildRequires: nspr-devel
4e7b9656 39BuildRequires: nss-devel
a33049a0 40%{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6}
8f24fc3c 41BuildRequires: openssl-devel
353eadf1 42BuildRequires: pkgconfig
7937d160 43BuildRequires: rpmbuild(macros) >= 1.304
483474c5 44BuildRequires: sed >= 4.0
1434f1e6 45Requires(post,postun): scrollkeeper
73b9c62c 46Requires: %{name}-libs = %{version}-%{release}
b11884f3 47# sr@Latn vs. sr@latin
48Conflicts: glibc-misc < 6:2.7
353eadf1 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11b4e6b5 50
9b5d553a
ER
51%define schemadir /usr/share/openldap/schema
52
11b4e6b5 53%description
353eadf1
JB
54The Evolution data server for the calendar and addressbook.
55
5f6b5ac6
JR
56%description -l pl.UTF-8
57Serwer danych Evolution dla kalendarza i książki adresowej.
11b4e6b5 58
9b5d553a
ER
59%package -n openldap-schema-evolutionperson
60Summary: evolutionperson LDAP schema
7628f827 61Summary(pl.UTF-8): Schemat LDAP evolutionperson
9b5d553a
ER
62Group: Networking/Daemons
63Requires(post,postun): sed >= 4.0
64Requires: openldap-servers
65
66%description -n openldap-schema-evolutionperson
93dbcff5
JB
67This package contains evolutionperson.schema for openldap server.
68
5f6b5ac6 69%description -n openldap-schema-evolutionperson -l pl.UTF-8
93dbcff5 70Ten pakiet zawiera evolutionperson.schema dla serwera openldap.
9b5d553a 71
0931c5d7
JB
72%package libs
73Summary: Evolution Data Server library
7628f827 74Summary(pl.UTF-8): Biblioteka Evolution Data Server
0931c5d7 75Group: Libraries
ea3ad516 76Requires: libgnomeui >= 2.20.0
042cdced 77Requires: libsoup >= 2.2.100
0931c5d7
JB
78
79%description libs
80This package contains Evolution Data Server library.
81
5f6b5ac6
JR
82%description libs -l pl.UTF-8
83Ten pakiet zawiera bibliotekę Evolution Data Server.
0931c5d7 84
11b4e6b5 85%package devel
86Summary: Evolution data server development files
7628f827 87Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution
11b4e6b5 88Group: Development/Libraries
0931c5d7 89Requires: %{name}-libs = %{version}-%{release}
66e2b260 90%{?with_kerberos5:Requires: krb5-devel}
6de52a0d 91# for all but libegroupwise
ea3ad516 92Requires: GConf2-devel >= 2.20.0
c22a020a 93Requires: ORBit2-devel >= 1:2.14.8
ea3ad516
MB
94Requires: glib2-devel >= 1:2.14.1
95Requires: libgnomeui-devel >= 2.20.0
c22a020a 96Requires: libxml2-devel >= 1:2.6.29
6de52a0d 97# for libegroupwise
042cdced 98Requires: libsoup-devel >= 2.2.100
11b4e6b5 99
100%description devel
46c4d742 101This package contains the files necessary to develop applications
102using Evolution's data server libraries.
11b4e6b5 103
5f6b5ac6 104%description devel -l pl.UTF-8
353eadf1 105Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
5f6b5ac6 106korzystających z bibliotek serwera danych Evolution.
353eadf1 107
8a5a422a 108%package static
109Summary: Evolution data server static libraries
7628f827 110Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution
8a5a422a 111Group: Development/Libraries
f1e06abe 112Requires: %{name}-devel = %{version}-%{release}
8a5a422a 113
114%description static
115Evolution data server static libraries.
116
5f6b5ac6 117%description static -l pl.UTF-8
353eadf1
JB
118Statyczne biblioteki serwera danych Evolution.
119
ac5ccf41 120%package apidocs
121Summary: e-d-s API documentation
7628f827 122Summary(pl.UTF-8): Dokumentacja API e-d-s
ac5ccf41 123Group: Documentation
124Requires: gtk-doc-common
125
126%description apidocs
127e-d-s API documentation.
128
5f6b5ac6 129%description apidocs -l pl.UTF-8
ac5ccf41 130Dokumentacja API e-d-s.
131
11b4e6b5 132%prep
4ff8ccbf 133%setup -q
a33049a0 134%patch0 -p1
11b4e6b5 135
483474c5
MB
136sed -i -e s#sr\@Latn#sr\@latin# po/LINGUAS
137mv po/sr\@{Latn,latin}.po
138
11b4e6b5 139%build
df83f2ab 140%{__gtkdocize}
8f8bf49b 141%{__glib_gettextize}
142%{__intltoolize}
46c4d742 143%{__libtoolize}
9179bf1f 144%{__aclocal}
46c4d742 145%{__autoheader}
146%{__autoconf}
147%{__automake}
0f23eebb 148
149cd calendar/libical
150%{__libtoolize}
151%{__aclocal}
152%{__autoheader}
153%{__autoconf}
154%{__automake}
155cd ../..
a33049a0
JR
156
157# Set LIBS so that configure will be able to link with static LDAP libraries,
158# which depend on Cyrus SASL and OpenSSL.
159if pkg-config openssl ; then
160 LIBS="-lsasl2 `pkg-config --libs openssl`"
161else
162 LIBS="-lsasl2 -lssl -lcrypto"
163fi
164export LIBS
165
46c4d742 166%configure \
51160b41 167 %{?with_kerberos5:--with-krb5=%{_prefix}} \
168 %{!?with_kerberos5:--with-krb5=no} \
a33049a0
JR
169 %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \
170 %{?with_ldap:--with-static-ldap=yes} \
51160b41 171 %{!?with_ldap:--with-openldap=no} \
aeafa52e 172 --enable-gnome-keyring=yes \
8a5a422a 173 --enable-gtk-doc \
174 --enable-static \
94fa296c 175 --with-nspr-includes=%{_includedir}/nspr \
176 --with-nspr-libs=%{_libdir} \
177 --with-nss-includes=%{_includedir}/nss \
aeafa52e 178 --with-nss-libs=%{_libdir} \
179 --with-libdb=%{_libdir}
52730793 180
46c4d742 181%{__make} \
b7c830de 182 HTML_DIR=%{_gtkdocdir} \
4ff8ccbf 183 GTKHTML_DATADIR=%{_datadir}/idl
11b4e6b5 184
185%install
186rm -rf $RPM_BUILD_ROOT
187
188%{__make} install \
46c4d742 189 DESTDIR=$RPM_BUILD_ROOT \
190 GTKHTML_DATADIR=%{_datadir}/idl \
b7c830de 191 HTML_DIR=%{_gtkdocdir} \
46c4d742 192 pkgconfigdir=%{_pkgconfigdir}
193
e2ebc190 194rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
94fa296c 195
9b5d553a
ER
196install -d $RPM_BUILD_ROOT%{schemadir}
197install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
198
46c4d742 199%find_lang %{name} --all-name
11b4e6b5 200
201%clean
202rm -rf $RPM_BUILD_ROOT
203
46c4d742 204%post
8f8bf49b 205%scrollkeeper_update_post
11b4e6b5 206
46c4d742 207%postun
8f8bf49b 208%scrollkeeper_update_postun
11b4e6b5 209
73b9c62c 210%post libs -p /sbin/ldconfig
211%postun libs -p /sbin/ldconfig
212
9b5d553a 213%post -n openldap-schema-evolutionperson
7937d160
ER
214%openldap_schema_register %{schemadir}/evolutionperson.schema
215%service -q ldap restart
9b5d553a
ER
216
217%postun -n openldap-schema-evolutionperson
218if [ "$1" = "0" ]; then
7937d160
ER
219 %openldap_schema_unregister %{schemadir}/evolutionperson.schema
220 %service -q ldap restart
9b5d553a
ER
221fi
222
46c4d742 223%files -f %{name}.lang
11b4e6b5 224%defattr(644,root,root,755)
46c4d742 225%doc AUTHORS ChangeLog NEWS* README
e2ebc190 226%attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
227%attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
e2ebc190 228%dir %{_libdir}/%{name}-%{apiver}
229%dir %{_libdir}/%{name}-%{apiver}/camel-providers
230%attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
231%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
232%{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
233%dir %{_libdir}/%{name}-%{apiver}/extensions
234%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
46c4d742 235%{_libdir}/bonobo/servers/*
e2ebc190 236
be45f956 237%if %{with ldap}
e3a9d40d 238%{_datadir}/%{name}-%{basever}/*.schema
be45f956 239%endif
240
e2ebc190 241%dir %{_datadir}/%{name}-%{basever}
242%{_datadir}/%{name}-%{basever}/glade
243%{_datadir}/%{name}-%{basever}/weather
042cdced 244%{_pixmapsdir}/%{name}
46c4d742 245
9b5d553a
ER
246%files -n openldap-schema-evolutionperson
247%defattr(644,root,root,755)
248%{schemadir}/*.schema
249
0931c5d7
JB
250%files libs
251%defattr(644,root,root,755)
252%attr(755,root,root) %{_libdir}/*.so.*.*
15b94064 253%{_datadir}/idl/%{name}-%{apiver}
0931c5d7 254
46c4d742 255%files devel
11b4e6b5 256%defattr(644,root,root,755)
46c4d742 257%attr(755,root,root) %{_libdir}/*.so
258%{_libdir}/*.la
259%{_includedir}/*
260%{_pkgconfigdir}/*
8a5a422a 261
262%files static
263%defattr(644,root,root,755)
264%{_libdir}/*.a
ac5ccf41 265
266%files apidocs
267%defattr(644,root,root,755)
268%{_gtkdocdir}/*
This page took 0.155791 seconds and 4 git commands to generate.