- outdated
[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
c22a020a
PZ
14Version: 1.12.0
15Release: 1
11b4e6b5 16License: GPL
17Group: Libraries
c22a020a
PZ
18Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/1.12/%{name}-%{version}.tar.bz2
19# Source0-md5: 787cfe9d652f46395a9adce056bdb286
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
95ea6304 26BuildRequires: gnome-common >= 2.18.0
c22a020a 27BuildRequires: gnome-keyring-devel >= 2.19.91
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
32BuildRequires: libgnomeui-devel >= 2.19.1
042cdced 33BuildRequires: libsoup-devel >= 2.2.100
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
7628f827 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
7628f827 68Summary(pl.UTF-8): Biblioteka Evolution Data Server
0931c5d7 69Group: Libraries
c22a020a 70Requires: libgnomeui >= 2.19.1
042cdced 71Requires: libsoup >= 2.2.100
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
7628f827 81Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution
11b4e6b5 82Group: Development/Libraries
0931c5d7 83Requires: %{name}-libs = %{version}-%{release}
66e2b260 84%{?with_kerberos5:Requires: krb5-devel}
6de52a0d 85# for all but libegroupwise
c22a020a
PZ
86Requires: GConf2-devel >= 2.19.1
87Requires: ORBit2-devel >= 1:2.14.8
88Requires: glib2-devel >= 1:2.14.0
89Requires: libgnomeui-devel >= 2.19.1
90Requires: libxml2-devel >= 1:2.6.29
6de52a0d 91# for libegroupwise
042cdced 92Requires: libsoup-devel >= 2.2.100
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
7628f827 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
7628f827 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
11b4e6b5 128
129%build
8f8bf49b 130%{__glib_gettextize}
131%{__intltoolize}
46c4d742 132%{__libtoolize}
9179bf1f 133%{__aclocal}
46c4d742 134%{__autoheader}
135%{__autoconf}
136%{__automake}
0f23eebb 137
138cd calendar/libical
139%{__libtoolize}
140%{__aclocal}
141%{__autoheader}
142%{__autoconf}
143%{__automake}
144cd ../..
46c4d742 145%configure \
51160b41 146 %{?with_kerberos5:--with-krb5=%{_prefix}} \
147 %{!?with_kerberos5:--with-krb5=no} \
148 %{?with_ldap:--with-openldap=yes} \
149 %{!?with_ldap:--with-openldap=no} \
aeafa52e 150 --enable-gnome-keyring=yes \
8a5a422a 151 --enable-gtk-doc \
152 --enable-static \
94fa296c 153 --with-nspr-includes=%{_includedir}/nspr \
154 --with-nspr-libs=%{_libdir} \
155 --with-nss-includes=%{_includedir}/nss \
aeafa52e 156 --with-nss-libs=%{_libdir} \
157 --with-libdb=%{_libdir}
52730793 158
46c4d742 159%{__make} \
b7c830de 160 HTML_DIR=%{_gtkdocdir} \
4ff8ccbf 161 GTKHTML_DATADIR=%{_datadir}/idl
11b4e6b5 162
163%install
164rm -rf $RPM_BUILD_ROOT
165
166%{__make} install \
46c4d742 167 DESTDIR=$RPM_BUILD_ROOT \
168 GTKHTML_DATADIR=%{_datadir}/idl \
b7c830de 169 HTML_DIR=%{_gtkdocdir} \
46c4d742 170 pkgconfigdir=%{_pkgconfigdir}
171
e2ebc190 172rm $RPM_BUILD_ROOT%{_libdir}/%{name}-%{apiver}/{camel-providers,extensions}/*.{la,a}
94fa296c 173
9b5d553a
ER
174install -d $RPM_BUILD_ROOT%{schemadir}
175install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir}
176
46c4d742 177%find_lang %{name} --all-name
11b4e6b5 178
179%clean
180rm -rf $RPM_BUILD_ROOT
181
46c4d742 182%post
8f8bf49b 183%scrollkeeper_update_post
11b4e6b5 184
46c4d742 185%postun
8f8bf49b 186%scrollkeeper_update_postun
11b4e6b5 187
73b9c62c 188%post libs -p /sbin/ldconfig
189%postun libs -p /sbin/ldconfig
190
9b5d553a 191%post -n openldap-schema-evolutionperson
7937d160
ER
192%openldap_schema_register %{schemadir}/evolutionperson.schema
193%service -q ldap restart
9b5d553a
ER
194
195%postun -n openldap-schema-evolutionperson
196if [ "$1" = "0" ]; then
7937d160
ER
197 %openldap_schema_unregister %{schemadir}/evolutionperson.schema
198 %service -q ldap restart
9b5d553a
ER
199fi
200
46c4d742 201%files -f %{name}.lang
11b4e6b5 202%defattr(644,root,root,755)
46c4d742 203%doc AUTHORS ChangeLog NEWS* README
e2ebc190 204%attr(755,root,root) %{_libdir}/camel-index-control-%{apiver}
205%attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver}
e2ebc190 206%dir %{_libdir}/%{name}-%{apiver}
207%dir %{_libdir}/%{name}-%{apiver}/camel-providers
208%attr(755,root,root) %{_libdir}/evolution-data-server-%{basever}
209%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/camel-providers/*.so
210%{_libdir}/%{name}-%{apiver}/camel-providers/*.urls
211%dir %{_libdir}/%{name}-%{apiver}/extensions
212%attr(755,root,root) %{_libdir}/%{name}-%{apiver}/extensions/*.so
46c4d742 213%{_libdir}/bonobo/servers/*
e2ebc190 214
be45f956 215%if %{with ldap}
e3a9d40d 216%{_datadir}/%{name}-%{basever}/*.schema
be45f956 217%endif
218
e2ebc190 219%dir %{_datadir}/%{name}-%{basever}
220%{_datadir}/%{name}-%{basever}/glade
221%{_datadir}/%{name}-%{basever}/weather
042cdced 222%{_pixmapsdir}/%{name}
46c4d742 223
9b5d553a
ER
224%files -n openldap-schema-evolutionperson
225%defattr(644,root,root,755)
226%{schemadir}/*.schema
227
0931c5d7
JB
228%files libs
229%defattr(644,root,root,755)
230%attr(755,root,root) %{_libdir}/*.so.*.*
15b94064 231%{_datadir}/idl/%{name}-%{apiver}
0931c5d7 232
46c4d742 233%files devel
11b4e6b5 234%defattr(644,root,root,755)
46c4d742 235%attr(755,root,root) %{_libdir}/*.so
236%{_libdir}/*.la
237%{_includedir}/*
238%{_pkgconfigdir}/*
8a5a422a 239
240%files static
241%defattr(644,root,root,755)
242%{_libdir}/*.a
ac5ccf41 243
244%files apidocs
245%defattr(644,root,root,755)
246%{_gtkdocdir}/*
This page took 0.175648 seconds and 4 git commands to generate.