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