]>
Commit | Line | Data |
---|---|---|
8a5a422a | 1 | # |
69577d81 | 2 | # Conditional build: |
51160b41 | 3 | %bcond_without kerberos5 # build without kerberos5 support |
4 | %bcond_without ldap # build without ldap support | |
69577d81 | 5 | # |
79de9f36 | 6 | %define basever 3.2 |
e2ebc190 | 7 | %define apiver 1.2 |
c605b556 | 8 | %define apiver2 3.0 |
8c6c91f2 | 9 | # |
11b4e6b5 | 10 | Summary: Evolution data server |
7628f827 | 11 | Summary(pl.UTF-8): Serwer danych Evolution |
11b4e6b5 | 12 | Name: evolution-data-server |
79de9f36 AF |
13 | Version: 3.2.0 |
14 | Release: 1 | |
814bd254 | 15 | Group: X11/Libraries |
79de9f36 AF |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution-data-server/3.2/%{name}-%{version}.tar.xz |
17 | # Source0-md5: 9973c9e4d2bd150c85e5fbe5fb9a83e3 | |
c22a020a | 18 | URL: http://www.gnome.org/projects/evolution/ |
51cb5b15 | 19 | BuildRequires: GConf2-devel >= 2.26.0 |
c605b556 | 20 | BuildRequires: autoconf >= 2.62 |
79de9f36 | 21 | BuildRequires: automake >= 1:1.11 |
e2ebc190 | 22 | BuildRequires: bison |
96160e38 | 23 | BuildRequires: docbook-dtd412-xml |
c605b556 | 24 | BuildRequires: gettext-devel >= 0.18.1 |
25 | BuildRequires: glib2-devel >= 1:2.28.0 | |
ea3ad516 | 26 | BuildRequires: gnome-common >= 2.20.0 |
79de9f36 AF |
27 | BuildRequires: gnome-online-accounts >= 3.1.1 |
28 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
d187a81d | 29 | BuildRequires: gperf |
c605b556 | 30 | BuildRequires: gtk+3-devel >= 3.0.0 |
814bd254 | 31 | BuildRequires: gtk-doc >= 1.9 |
b025b6f4 | 32 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
d187a81d | 33 | BuildRequires: intltool >= 0.40.0 |
79de9f36 | 34 | BuildRequires: libgdata-devel >= 0.9.1 |
d187a81d | 35 | BuildRequires: libgnome-keyring-devel >= 2.26.0 |
9001a962 | 36 | BuildRequires: libgweather-devel >= 3.0.0 |
51cb5b15 | 37 | BuildRequires: libical-devel >= 0.43 |
79de9f36 AF |
38 | BuildRequires: liboauth-devel >= 0.9.4 |
39 | BuildRequires: libsoup-devel >= 2.31.2 | |
e2c48f95 | 40 | BuildRequires: libstdc++-devel |
c605b556 | 41 | BuildRequires: libtool >= 2:2.2 |
814bd254 | 42 | BuildRequires: libxml2-devel >= 1:2.6.31 |
94fa296c | 43 | BuildRequires: nspr-devel |
4e7b9656 | 44 | BuildRequires: nss-devel |
a33049a0 | 45 | %{?with_ldap:BuildRequires: openldap-evolution-devel >= 2.4.6} |
8f24fc3c | 46 | BuildRequires: openssl-devel |
353eadf1 | 47 | BuildRequires: pkgconfig |
7937d160 | 48 | BuildRequires: rpmbuild(macros) >= 1.304 |
483474c5 | 49 | BuildRequires: sed >= 4.0 |
f9dd3cd2 | 50 | BuildRequires: sqlite3-devel >= 3.5 |
79de9f36 AF |
51 | BuildRequires: tar >= 1:1.22 |
52 | BuildRequires: vala >= 1:0.14.0 | |
53 | BuildRequires: xz | |
814bd254 | 54 | BuildRequires: zlib-devel |
73b9c62c | 55 | Requires: %{name}-libs = %{version}-%{release} |
b11884f3 | 56 | # sr@Latn vs. sr@latin |
57 | Conflicts: glibc-misc < 6:2.7 | |
353eadf1 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11b4e6b5 | 59 | |
9b5d553a ER |
60 | %define schemadir /usr/share/openldap/schema |
61 | ||
11b4e6b5 | 62 | %description |
353eadf1 JB |
63 | The Evolution data server for the calendar and addressbook. |
64 | ||
5f6b5ac6 JR |
65 | %description -l pl.UTF-8 |
66 | Serwer danych Evolution dla kalendarza i książki adresowej. | |
11b4e6b5 | 67 | |
9b5d553a ER |
68 | %package -n openldap-schema-evolutionperson |
69 | Summary: evolutionperson LDAP schema | |
7628f827 | 70 | Summary(pl.UTF-8): Schemat LDAP evolutionperson |
9b5d553a ER |
71 | Group: Networking/Daemons |
72 | Requires(post,postun): sed >= 4.0 | |
73 | Requires: openldap-servers | |
74 | ||
75 | %description -n openldap-schema-evolutionperson | |
93dbcff5 JB |
76 | This package contains evolutionperson.schema for openldap server. |
77 | ||
5f6b5ac6 | 78 | %description -n openldap-schema-evolutionperson -l pl.UTF-8 |
93dbcff5 | 79 | Ten pakiet zawiera evolutionperson.schema dla serwera openldap. |
9b5d553a | 80 | |
0931c5d7 JB |
81 | %package libs |
82 | Summary: Evolution Data Server library | |
7628f827 | 83 | Summary(pl.UTF-8): Biblioteka Evolution Data Server |
814bd254 | 84 | Group: X11/Libraries |
79de9f36 | 85 | Requires: libsoup >= 2.31.2 |
0931c5d7 JB |
86 | |
87 | %description libs | |
88 | This package contains Evolution Data Server library. | |
89 | ||
5f6b5ac6 JR |
90 | %description libs -l pl.UTF-8 |
91 | Ten pakiet zawiera bibliotekę Evolution Data Server. | |
0931c5d7 | 92 | |
11b4e6b5 | 93 | %package devel |
94 | Summary: Evolution data server development files | |
7628f827 | 95 | Summary(pl.UTF-8): Pliki programistyczne serwera danych evolution |
814bd254 | 96 | Group: X11/Development/Libraries |
0931c5d7 | 97 | Requires: %{name}-libs = %{version}-%{release} |
51cb5b15 | 98 | Requires: GConf2-devel >= 2.26.0 |
c605b556 | 99 | Requires: glib2-devel >= 1:2.28.0 |
100 | Requires: gtk+3-devel >= 3.0.0 | |
b025b6f4 | 101 | %{?with_kerberos5:Requires: heimdal-devel} |
79de9f36 | 102 | Requires: libgdata-devel >= 0.9.1 |
51cb5b15 | 103 | Requires: libical-devel >= 0.43 |
79de9f36 | 104 | Requires: libsoup-devel >= 2.31.2 |
814bd254 | 105 | Requires: libxml2-devel >= 1:2.6.31 |
78e9ab13 | 106 | Requires: nspr-devel |
107 | Requires: nss-devel | |
51cb5b15 | 108 | Requires: sqlite3-devel |
11b4e6b5 | 109 | |
110 | %description devel | |
46c4d742 | 111 | This package contains the files necessary to develop applications |
112 | using Evolution's data server libraries. | |
11b4e6b5 | 113 | |
5f6b5ac6 | 114 | %description devel -l pl.UTF-8 |
353eadf1 | 115 | Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji |
5f6b5ac6 | 116 | korzystających z bibliotek serwera danych Evolution. |
353eadf1 | 117 | |
8a5a422a | 118 | %package static |
119 | Summary: Evolution data server static libraries | |
7628f827 | 120 | Summary(pl.UTF-8): Statyczne biblioteki serwera danych Evolution |
814bd254 | 121 | Group: X11/Development/Libraries |
f1e06abe | 122 | Requires: %{name}-devel = %{version}-%{release} |
8a5a422a | 123 | |
124 | %description static | |
125 | Evolution data server static libraries. | |
126 | ||
5f6b5ac6 | 127 | %description static -l pl.UTF-8 |
353eadf1 JB |
128 | Statyczne biblioteki serwera danych Evolution. |
129 | ||
ac5ccf41 | 130 | %package apidocs |
59a68038 JB |
131 | Summary: Evolution data server API documentation |
132 | Summary(pl.UTF-8): Dokumentacja API serwera danych Evolution | |
ac5ccf41 | 133 | Group: Documentation |
134 | Requires: gtk-doc-common | |
135 | ||
136 | %description apidocs | |
59a68038 | 137 | Evolution data server API documentation. |
ac5ccf41 | 138 | |
5f6b5ac6 | 139 | %description apidocs -l pl.UTF-8 |
59a68038 | 140 | Dokumentacja API serwera danych Evolution. |
ac5ccf41 | 141 | |
11b4e6b5 | 142 | %prep |
4ff8ccbf | 143 | %setup -q |
11b4e6b5 | 144 | |
a99ed00a | 145 | # kill -L$withval/lib |
c605b556 | 146 | %{__sed} -i -e 's/DB_LIBS="-L[^ "]* /DB_LIBS="/;s/ICONV_LIBS="[^ "]*/ICONV_LIBS="/' configure.ac |
a99ed00a | 147 | |
11b4e6b5 | 148 | %build |
df83f2ab | 149 | %{__gtkdocize} |
c605b556 | 150 | %{__gettextize} |
8f8bf49b | 151 | %{__intltoolize} |
46c4d742 | 152 | %{__libtoolize} |
f9dd3cd2 | 153 | %{__aclocal} -I m4 |
46c4d742 | 154 | %{__autoheader} |
155 | %{__autoconf} | |
156 | %{__automake} | |
0f23eebb | 157 | |
a33049a0 JR |
158 | # Set LIBS so that configure will be able to link with static LDAP libraries, |
159 | # which depend on Cyrus SASL and OpenSSL. | |
160 | if pkg-config openssl ; then | |
161 | LIBS="-lsasl2 `pkg-config --libs openssl`" | |
162 | else | |
163 | LIBS="-lsasl2 -lssl -lcrypto" | |
164 | fi | |
165 | export LIBS | |
166 | ||
46c4d742 | 167 | %configure \ |
a99ed00a | 168 | %{?with_kerberos5:--with-krb5=%{_prefix} --with-krb5-libs=%{_libdir}} \ |
51160b41 | 169 | %{!?with_kerberos5:--with-krb5=no} \ |
a33049a0 JR |
170 | %{?with_ldap:--with-openldap=%{_libdir}/evolution-openldap} \ |
171 | %{?with_ldap:--with-static-ldap=yes} \ | |
51160b41 | 172 | %{!?with_ldap:--with-openldap=no} \ |
c605b556 | 173 | --enable-ssl \ |
174 | --enable-smime \ | |
175 | --enable-ipv6 \ | |
176 | --enable-calendar \ | |
177 | --enable-nntp \ | |
79de9f36 | 178 | --enable-gobject-introspection \ |
8a5a422a | 179 | --enable-gtk-doc \ |
180 | --enable-static \ | |
79de9f36 | 181 | --enable-vala-bindings \ |
51cb5b15 | 182 | --with-libdb=%{_libdir} \ |
d187a81d MB |
183 | --with-html-dir=%{_gtkdocdir} \ |
184 | --disable-silent-rules | |
52730793 | 185 | |
51cb5b15 | 186 | %{__make} |
11b4e6b5 | 187 | |
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
51cb5b15 | 190 | install -d $RPM_BUILD_ROOT%{schemadir} |
11b4e6b5 | 191 | |
192 | %{__make} install \ | |
46c4d742 | 193 | DESTDIR=$RPM_BUILD_ROOT \ |
51cb5b15 | 194 | HTML_DIR=%{_gtkdocdir} |
94fa296c | 195 | |
9b5d553a ER |
196 | install addressbook/backends/ldap/evolutionperson.schema $RPM_BUILD_ROOT%{schemadir} |
197 | ||
c605b556 | 198 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{camel-providers,calendar-backends,addressbook-backends}/*.{la,a} |
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
51cb5b15 | 200 | |
46c4d742 | 201 | %find_lang %{name} --all-name |
11b4e6b5 | 202 | |
203 | %clean | |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
73b9c62c | 206 | %post libs -p /sbin/ldconfig |
207 | %postun libs -p /sbin/ldconfig | |
208 | ||
9b5d553a | 209 | %post -n openldap-schema-evolutionperson |
7937d160 ER |
210 | %openldap_schema_register %{schemadir}/evolutionperson.schema |
211 | %service -q ldap restart | |
9b5d553a ER |
212 | |
213 | %postun -n openldap-schema-evolutionperson | |
214 | if [ "$1" = "0" ]; then | |
7937d160 ER |
215 | %openldap_schema_unregister %{schemadir}/evolutionperson.schema |
216 | %service -q ldap restart | |
9b5d553a ER |
217 | fi |
218 | ||
46c4d742 | 219 | %files -f %{name}.lang |
11b4e6b5 | 220 | %defattr(644,root,root,755) |
46c4d742 | 221 | %doc AUTHORS ChangeLog NEWS* README |
e2ebc190 | 222 | %attr(755,root,root) %{_libdir}/camel-index-control-%{apiver} |
223 | %attr(755,root,root) %{_libdir}/camel-lock-helper-%{apiver} | |
d187a81d MB |
224 | %attr(755,root,root) %{_libdir}/e-addressbook-factory |
225 | %attr(755,root,root) %{_libdir}/e-calendar-factory | |
c605b556 | 226 | %dir %{_libdir}/%{name} |
227 | %dir %{_libdir}/%{name}/camel-providers | |
228 | %attr(755,root,root) %{_libdir}/%{name}/camel-providers/*.so | |
229 | %{_libdir}/%{name}/camel-providers/*.urls | |
230 | %dir %{_libdir}/%{name}/addressbook-backends | |
231 | %attr(755,root,root) %{_libdir}/%{name}/addressbook-backends/*.so | |
232 | %dir %{_libdir}/%{name}/calendar-backends | |
233 | %attr(755,root,root) %{_libdir}/%{name}/calendar-backends/*.so | |
e2ebc190 | 234 | |
be45f956 | 235 | %if %{with ldap} |
e3a9d40d | 236 | %{_datadir}/%{name}-%{basever}/*.schema |
be45f956 | 237 | %endif |
238 | ||
d187a81d MB |
239 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service |
240 | %{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service | |
241 | ||
e2ebc190 | 242 | %dir %{_datadir}/%{name}-%{basever} |
042cdced | 243 | %{_pixmapsdir}/%{name} |
46c4d742 | 244 | |
9b5d553a ER |
245 | %files -n openldap-schema-evolutionperson |
246 | %defattr(644,root,root,755) | |
814bd254 | 247 | %{schemadir}/evolutionperson.schema |
9b5d553a | 248 | |
0931c5d7 JB |
249 | %files libs |
250 | %defattr(644,root,root,755) | |
814bd254 | 251 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so.*.*.* |
79de9f36 | 252 | %attr(755,root,root) %ghost %{_libdir}/libcamel-%{apiver}.so.29 |
814bd254 | 253 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so.*.*.* |
79de9f36 | 254 | %attr(755,root,root) %ghost %{_libdir}/libcamel-provider-%{apiver}.so.29 |
bf160059 | 255 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so.*.*.* |
c605b556 | 256 | %attr(755,root,root) %ghost %{_libdir}/libebackend-%{apiver}.so.1 |
814bd254 | 257 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so.*.*.* |
79de9f36 | 258 | %attr(755,root,root) %ghost %{_libdir}/libebook-%{apiver}.so.12 |
814bd254 | 259 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so.*.*.* |
79de9f36 | 260 | %attr(755,root,root) %ghost %{_libdir}/libecal-%{apiver}.so.10 |
814bd254 | 261 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so.*.*.* |
79de9f36 | 262 | %attr(755,root,root) %ghost %{_libdir}/libedata-book-%{apiver}.so.11 |
814bd254 | 263 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so.*.*.* |
79de9f36 | 264 | %attr(755,root,root) %ghost %{_libdir}/libedata-cal-%{apiver}.so.13 |
814bd254 | 265 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so.*.*.* |
79de9f36 | 266 | %attr(755,root,root) %ghost %{_libdir}/libedataserver-%{apiver}.so.15 |
c605b556 | 267 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so.*.*.* |
79de9f36 | 268 | %attr(755,root,root) %ghost %{_libdir}/libedataserverui-%{apiver2}.so.1 |
6fb1990c | 269 | %{_libdir}/girepository-1.0/EBook-1.2.typelib |
c605b556 | 270 | %{_libdir}/girepository-1.0/ECalendar-1.2.typelib |
271 | %{_libdir}/girepository-1.0/EDataServer-1.2.typelib | |
0931c5d7 | 272 | |
46c4d742 | 273 | %files devel |
11b4e6b5 | 274 | %defattr(644,root,root,755) |
814bd254 MB |
275 | %attr(755,root,root) %{_libdir}/libcamel-%{apiver}.so |
276 | %attr(755,root,root) %{_libdir}/libcamel-provider-%{apiver}.so | |
bf160059 | 277 | %attr(755,root,root) %{_libdir}/libebackend-%{apiver}.so |
814bd254 MB |
278 | %attr(755,root,root) %{_libdir}/libebook-%{apiver}.so |
279 | %attr(755,root,root) %{_libdir}/libecal-%{apiver}.so | |
280 | %attr(755,root,root) %{_libdir}/libedata-book-%{apiver}.so | |
281 | %attr(755,root,root) %{_libdir}/libedata-cal-%{apiver}.so | |
282 | %attr(755,root,root) %{_libdir}/libedataserver-%{apiver}.so | |
c605b556 | 283 | %attr(755,root,root) %{_libdir}/libedataserverui-%{apiver2}.so |
814bd254 MB |
284 | %{_includedir}/evolution-data-server-%{basever} |
285 | %{_pkgconfigdir}/camel-%{apiver}.pc | |
286 | %{_pkgconfigdir}/camel-provider-%{apiver}.pc | |
287 | %{_pkgconfigdir}/evolution-data-server-%{apiver}.pc | |
bf160059 | 288 | %{_pkgconfigdir}/libebackend-%{apiver}.pc |
814bd254 MB |
289 | %{_pkgconfigdir}/libebook-%{apiver}.pc |
290 | %{_pkgconfigdir}/libecal-%{apiver}.pc | |
291 | %{_pkgconfigdir}/libedata-book-%{apiver}.pc | |
292 | %{_pkgconfigdir}/libedata-cal-%{apiver}.pc | |
293 | %{_pkgconfigdir}/libedataserver-%{apiver}.pc | |
c605b556 | 294 | %{_pkgconfigdir}/libedataserverui-%{apiver2}.pc |
6fb1990c | 295 | %{_datadir}/gir-1.0/EBook-1.2.gir |
c605b556 | 296 | %{_datadir}/gir-1.0/ECalendar-1.2.gir |
297 | %{_datadir}/gir-1.0/EDataServer-1.2.gir | |
79de9f36 AF |
298 | %{_datadir}/vala/vapi/libebook-1.2.deps |
299 | %{_datadir}/vala/vapi/libebook-1.2.vapi | |
300 | %{_datadir}/vala/vapi/libecalendar-1.2.deps | |
301 | %{_datadir}/vala/vapi/libecalendar-1.2.vapi | |
302 | %{_datadir}/vala/vapi/libedataserver-1.2.vapi | |
8a5a422a | 303 | |
304 | %files static | |
305 | %defattr(644,root,root,755) | |
814bd254 MB |
306 | %{_libdir}/libcamel-%{apiver}.a |
307 | %{_libdir}/libcamel-provider-%{apiver}.a | |
bf160059 | 308 | %{_libdir}/libebackend-%{apiver}.a |
814bd254 MB |
309 | %{_libdir}/libebook-%{apiver}.a |
310 | %{_libdir}/libecal-%{apiver}.a | |
311 | %{_libdir}/libedata-book-%{apiver}.a | |
312 | %{_libdir}/libedata-cal-%{apiver}.a | |
313 | %{_libdir}/libedataserver-%{apiver}.a | |
c605b556 | 314 | %{_libdir}/libedataserverui-%{apiver2}.a |
ac5ccf41 | 315 | |
316 | %files apidocs | |
317 | %defattr(644,root,root,755) | |
814bd254 | 318 | %{_gtkdocdir}/camel |
bf160059 | 319 | %{_gtkdocdir}/libebackend |
814bd254 MB |
320 | %{_gtkdocdir}/libebook |
321 | %{_gtkdocdir}/libecal | |
322 | %{_gtkdocdir}/libedata-book | |
323 | %{_gtkdocdir}/libedata-cal | |
324 | %{_gtkdocdir}/libedataserver | |
325 | %{_gtkdocdir}/libedataserverui |