1 # spec file for package evolution-data-server 2 # 3 # Copyright (c) 2005 Sun Microsystems, Inc. 4 # This file and all modifications and additions to the pristine 5 # package are under the same license as the package itself. 6 # 7 # Owner: jefftsai 8 # 9 Name: evolution-data-server 10 License: GPL 11 Group: System/Libraries/GNOME 12 Version: 1.8.1 13 Release: 2 14 Distribution: Java Desktop System 15 Vendor: Sun Microsystems, Inc. 16 Summary: Backend Library for Evolution 17 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.8/%{name}-%{version}.tar.bz2 18 # date:2006-05-28 bugzilla: 344728 owner: sh162551 type: bug 19 Patch1: evolution-data-server-01-kerberos.diff 20 # date:2006-09-28 bugzilla: n/a owner: sh162551 type: bug 21 Patch2: evolution-data-server-02-libexec.diff 22 # date:2005-12-21 bugzilla:319376 owner:jefftsai type:bug 23 Patch3: evolution-data-server-03-mail-rlimit.diff 24 URL: http://www.gnome.org 25 BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 Docdir: %{_defaultdocdir}/evolution-data-server 27 Autoreqprov: on 28 Prereq: /sbin/ldconfig 29 30 %define api_version 1.2 31 %define base_version 1.6 32 33 %define libbonobo_version 2.4.2 34 %define gnome_vfs_version 2.4 35 %define libgnome_version 2.4 36 %define GConf_version 2.4 37 %define libsoup_version 2.2.3 38 %define gtk_doc_version 1.1 39 %define openldap2_version 2.1.4 40 41 Requires: libbonobo >= %{libbonobo_version} 42 Requires: gnome-vfs >= %{gnome_vfs_version} 43 Requires: libgnome >= %{libgnome_version} 44 Requires: GConf >= %{GConf_version} 45 Requires: libsoup >= %{libsoup_version} 46 Requires: openldap2-client >= %{openldap2_version} 47 48 BuildRequires: libbonobo-devel >= %{libbonobo_version} 49 BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} 50 BuildRequires: libgnome-devel >= %{libgnome_version} 51 BuildRequires: GConf-devel >= %{GConf_version} 52 BuildRequires: libsoup-devel >= %{libsoup_version} 53 BuildRequires: openldap2-devel >= %{openldap2_version} 54 BuildRequires: gtk-doc >= %{gtk_doc_version} 55 BuildRequires: bison 56 BuildRequires: heimdal-devel 57 58 %description 59 evolution-data-server is the backend library for Evolution, providing 60 support for calendar and addressbook. 61 62 %package devel 63 Summary: Development Backend Library for Evolution 64 Group: Development/Libraries/GNOME 65 Autoreqprov: on 66 Requires: %name = %version 67 BuildRequires: libbonobo-devel >= %{libbonobo_version} 68 BuildRequires: gnome-vfs-devel >= %{gnome_vfs_version} 69 BuildRequires: libgnome-devel >= %{libgnome_version} 70 BuildRequires: GConf-devel >= %{GConf_version} 71 BuildRequires: openldap2-devel >= %{openldap2_version} 72 BuildRequires: libsoup-devel >= %{libsoup_version} 73 74 %description devel 75 evolution-data-server is the backend library for Evolution, providing 76 support for calendar and addressbook. 77 78 %prep 79 %setup -q 80 %patch1 -p0 81 %patch2 -p0 82 %patch3 -p0 83 84 %build 85 86 %ifos linux 87 %define ldap_option --with-openldap=%{_prefix} 88 %define krb5_option --with-krb5=%{_prefix} 89 %define nss_libs %{_libdir}/firefox 90 %define nspr_libs %{_libdir}/firefox 91 %define nss_includes %{_includedir}/firefox/nss 92 %define nspr_includes %{_includedir}/firefox/nspr 93 %else 94 %define ldap_option --with-sunldap=%{_prefix} 95 %define krb5_option --with-krb5=%{_prefix} 96 %define nss_libs %{_libdir}/mps 97 %define nspr_libs %{_libdir}/mps 98 %define nss_includes %{_includedir}/mps 99 %define nspr_includes %{_includedir}/mps 100 %endif 101 102 export LDFLAGS="$LDFLAGS -L%{nss_libs} -R%{nss_libs} -L%{nspr_libs} -R%{nspr_libs}" 103 export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -I%{nss_includes} -I%{nspr_includes}" 104 105 aclocal $ACLOCAL_FLAGS 106 libtoolize --force 107 glib-gettextize --force --copy 108 intltoolize --force --automake 109 autoheader 110 automake -a -f -c --gnu 111 autoconf 112 ./configure --prefix=%{_prefix} \ 113 --libexecdir=%{_libexecdir} \ 114 --sysconfdir=%{_sysconfdir} \ 115 --enable-nss=yes \ 116 --enable-smime=yes \ 117 --enable-nntp=yes \ 118 --with-nss-includes=%{nss_includes} \ 119 --with-nss-libs=%{nss_libs} \ 120 --with-nspr-includes=%{nspr_includes} \ 121 --with-nspr-libs=%{nspr_libs} \ 122 %ldap_option \ 123 --with-krb4=%{_prefix} \ 124 %krb5_option \ 125 %gtk_doc_option \ 126 %bdb_option 127 128 make 129 130 %install 131 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 132 make -i install DESTDIR=$RPM_BUILD_ROOT 133 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 134 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' 135 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' 136 137 %clean 138 rm -rf $RPM_BUILD_ROOT 139 140 %post 141 /sbin/ldconfig 142 143 %postun 144 /sbin/ldconfig 145 146 %files 147 %defattr (-, root, root) 148 %doc AUTHORS COPYING ChangeLog NEWS README 149 %{_libdir}/*.so.* 150 %{_libdir}/evolution-data-server-%{api_version}/extensions/*.so 151 %{_libdir}/evolution-data-server-%{api_version}/camel-providers/*.so 152 %{_libdir}/evolution-data-server-%{api_version}/camel-providers/*urls 153 %{_libdir}/bonobo/servers/* 154 %{_libexecdir}/* 155 %{_datadir}/evolution-data-server-%{base_version}/* 156 %{_datadir}/pixmaps/evolution-data-server-%{base_version}/* 157 %{_datadir}/locale/*/LC_MESSAGES/*.mo 158 159 %files devel 160 %defattr (-, root, root) 161 %{_libdir}/*.so 162 %{_includedir}/evolution-data-server-%{base_version}/* 163 %{_libdir}/pkgconfig/*.pc 164 %{_datadir}/gtk-doc/* 165 %{_datadir}/idl/* 166 167 %changelog 168 * Fri Nov 3 2006 - laca@sun.com 169 - use %gtk_doc_option in configure so that it can be disabled using 170 --without-gtk-doc 171 * Mon Nov 04 2006 - irene.huang@sun.com 172 - Change owner to be opensolaris account. 173 * Mon Oct 23 2006 - irene.huang@sun.com 174 - moved evolution-data-server-01-kerberos.diff 175 and evolution-data-server-02-libexec.diff and 176 evolution-data-server-03-mail-rlimit.diff from 177 Solaris/patches 178 * Mon Oct 02 2006 - damien.carbery@sun.com 179 - Bump to 1.8.1. 180 * Mon Sep 04 2006 - damien.carbery@sun.com 181 - Bump to 1.8.0. 182 - Remove upstream patch, 01-attachment. 183 * Tue Aug 21 2006 - jedy.wang@sun.com 184 - Add one patch, 01-attachment.diff, for 6461581. 185 * Tue Aug 08 2006 - damien.carbery@sun.com 186 - Bump to 1.7.91. 187 * Wed Jul 26 2006 - halton.huo@sun.com 188 - Use system BerkeleyDB. 189 * Wed Jul 26 2006 - jeff.cai@sun.com 190 - Bump to 1.7.90.1 191 Remove patches/evolution-data-server-01-libebook-files.diff. 192 * Tue Jul 25 2006 - damien.carbery@sun.com 193 - Add patch to include files missing from tarball (but in cvs). 194 * Mon Jul 24 2006 - damien.carbery@sun.com 195 - Bump to 1.7.90 196 * Fri Jul 21 2006 - jeff.cai@sun.com 197 - Bump to 1.7.4 198 * Tue May 30 2006 - halton.huo@sun.com 199 - Bump to 1.6.2. 200 * Wed Apr 26 2006 - halton.huo@sun.com 201 - Use JES's NSS/NSPR(/usr/lib/mps) instead of that provided by 202 mozilla or firefox, to fix bug #6418049. 203 * Thu Apr 13 2006 - halton.huo (at] sun.com 204 - Firefox move from /usr/sfw to /usr. 205 * Mon Apr 10 2006 - damien.carbery (at] sun.com 206 - Bump to 1.6.1. 207 * Tue Apr 04 2006 - halton.huo (at] sun.com 208 - Remove .a/.la files in linux spec. 209 * Thu Mar 30 2006 - halton.huo (at] sun.com 210 - Alter "remove *.a/*.la files part" to SUNWevolution-data-server.spec 211 * Mon Mar 13 2006 - damien.carbery (at] sun.com 212 - Bump to 1.6.0. 213 * Tue Feb 28 2006 - halton.huo (at] sun.com 214 - Bump to 1.5.92. 215 * Tue Feb 14 2006 - damien.carbery (at] sun.com 216 - Bump to 1.5.91. 217 * Mon Jan 30 2006 - damien.carbery (at] sun.com 218 - Bump to 1.5.90. 219 * Thu Jan 19 2006 - halton.huo (at] sun.com 220 - Bump to 1.5.5. 221 * Wed Jan 04 2006 - halton.huo (at] sun.com 222 - Bump to 1.5.4. 223 * Wed Dec 21 2005 - halton.huo (at] sun.com 224 - Correct Source filed. 225 - Remove upstreamed patch evolution-data-server-6341837.diff. 226 - Remove upstreamed patch evolution-data-server-6359639.diff. 227 * Fri Dec 19 2005 - damien.carbery (at] sun.com 228 - Bump to 1.5.3. 229 - Bump to 1.4.2.1. 230 * Fri Dec 09 2005 - dave.lin (at] sun.com 231 - Add the patch evolution-data-server-6359639.diff 232 * Fri Dec 02 2005 - dave.lin (at] sun.com 233 - Bump to 1.4.2.1. 234 - Add the patch evolution-data-server-6341837.diff 235 * Thu Dec 01 2005 - damien.carbery (at] sun.com 236 - Remove upstream patch, patches/evolution-data-server-01-6340601.diff. 237 * Tue Nov 29 2005 - damien.carbery (at] sun.com 238 - Bump to 1.4.2. 239 * Wed Nov 23 2005 - halton.huo (at] sun.com 240 - Add patch evolution-data-server-01-6340601.diff. 241 * Fri Oct 21 2005 - halton.huo (at] sun.com 242 - Use firefox nss/nspr lib instead of mozilla's. 243 * Wed Oct 12 2005 - halton.huo@sun.com 244 - change --with-ldap to --with-sunldap. 245 * Tue Oct 11 2005 - damien.carbery@sun.com 246 - Bump to 1.4.1.1. 247 * Mon Oct 10 2005 - halton.huo@sun.com 248 - Bump to 1.4.1. 249 - Move obsolete patches: 250 evolution-data-server-01-libgobject.diff, 251 evolution-data-server-02-pretty_function.diff. 252 - Move upstreamed patches: 253 evolution-data-server-03-lock-helper.diff. 254 * Thu Sep 15 2005 - halton.huo@sun.com 255 - Add define krb5_option, disable Kerberos 5 on Solaris. 256 * Thu Sep 8 2005 - halton.huo@sun.com 257 - Add krb5_prefix define and enable Kerberos 5. 258 - Fix CFLAGS problem. 259 * Wed Sep 7 2005 - halton.huo@sun.com 260 - Bump to 1.4.0. 261 * Tue Sep 6 2005 - damien.carbery@sun.com 262 - Call configure instead of autogen.sh because autogen.sh not in 1.3.8 tarball. 263 Remove some ver nums from %files because there is no consistency. 264 Remove patch3 and reorder. 265 * Tue Sep 6 2005 - halton.huo@sun.com 266 - Move patch evolution-data-server-04-ldap-ssl.diff and Source1 267 evolution-data-server-ldap-ssl-patch.tar to SUNWgnutls.spec. 268 * Fri Sep 2 2005 - halton.huo@sun.com 269 - Add option --enable-nntp=yes to support news groups. 270 - Use SUN LDAP on solaris with %ldap_option. 271 - Add Source1 Patch4 to support SUN LDAP 272 - Use ./autogen.sh to replace libtoolize aclocal automake autoconf ./configure 273 steps, because we need build code that checked out from community HEAD. 274 - Temporarily disable Kerberos for header files are not installed on Nevada. 275 * Tue Aug 30 2005 - damien.carbery@sun.com 276 - Redefine major_version to 1.2 so that %files section can use while patch 03 277 redefines it to 1.2. 278 * Tue Aug 30 2005 - glynn.foster@sun.com 279 - Bump to 1.3.8 280 * Mon Aug 15 2005 - damien.carbery@sun.com 281 - Bump to 1.3.7. 282 * Thu Jul 28 2005 - damien.carbery@sun.com 283 - Rename --with-openldap configure option to --with-ldap as a result of Jerry's 284 patch from Jul 27. Also remove '%ifos' code around this option. 285 * Wed Jul 27 2005 - damien.carbery (at] sun.com 286 - Add patch from Jerry Pu (Shi.Pu (at] sun.com) to support LDAP on Solaris. 287 * Thu Jul 14 2005 - damien.carbery (at] sun.com 288 - Add 5 patches to build on Solaris. 289 * Wed Jun 15 2005 - matt.keenan (at] sun.com 290 - Bump to 1.2.3 291 * Tue May 10 2005 - glynn.foster (at] sun.com 292 - Bump to 1.2.2 293 * Tue Nov 23 2004 - glynn.foster (at] sun.com 294 - Bump to 1.0.2 295 * Thu Jun 17 2004 - niall.power (at] sun.com 296 - rpm4ified 297 * Thu Jun 17 2004 - glynn.foster (at] sun.com 298 - Bump to 0.0.94.1 299 * Tue Jun 08 2004 - glynn.foster (at] sun.com 300 - Bump to 0.0.94 301 * Fri May 21 2004 - glynn.foster (at] sun.com 302 - Bump to 0.0.93 303 * Tue Apr 20 2004 - glynn.foster (at] sun.com 304 - Bump to 0.0.92 305 * Mon Apr 19 2004 - glynn.foster (at] sun.com 306 - Initial spec file for evolution-data-server 0.0.91 307