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