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