1 # 2 # spec file for package SUNWevolution-data-server 3 # 4 # includes module(s): evolution-data-server 5 # 6 # Copyright 2007 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 %define owner jefftsai 11 # 12 %include Solaris.inc 13 %use eds = evolution-data-server.spec 14 15 Name: SUNWevolution-data-server 16 Summary: Backend library for Evolution 17 Version: %{default_pkg_version} 18 SUNW_Category: EVO25,%{default_category} 19 SUNW_BaseDir: %{_basedir} 20 SUNW_Copyright:%{name}.copyright 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 %include default-depend.inc 23 Source2: %{name}-manpages-0.1.tar.gz 24 Requires: SUNWlibglade 25 Requires: SUNWgnome-libs 26 Requires: SUNWtls 27 Requires: SUNWgnome-component 28 Requires: SUNWevolution-libs 29 Requires: SUNWlibsoup 30 Requires: SUNWlibpopt 31 Requires: SUNWzlib 32 Requires: SUNWlibgpg-error 33 Requires: SUNWpr 34 Requires: SUNWgnome-config 35 Requires: SUNWgnome-vfs 36 Requires: SUNWgnutls 37 Requires: SUNWlibgcrypt 38 Requires: SUNWlibms 39 Requires: SUNWlxml 40 Requires: SUNWkrbu 41 Requires: SUNWgss 42 Requires: SUNWsqlite3 43 Requires: SUNWlibical 44 %if %option_with_sun_branding 45 Requires: SUNWbdb 46 %endif 47 BuildRequires: SUNWlibglade-devel 48 BuildRequires: SUNWgnutls-devel 49 BuildRequires: SUNWlibgcrypt-devel 50 BuildRequires: SUNWlibgpg-error-devel 51 BuildRequires: SUNWgnome-libs-devel 52 BuildRequires: SUNWgnome-component-devel 53 BuildRequires: SUNWgnome-config-devel 54 BuildRequires: SUNWgnome-vfs-devel 55 BuildRequires: SUNWevolution-libs-devel 56 BuildRequires: SUNWlibsoup-devel 57 BuildRequires: SUNWtlsd 58 BuildRequires: SUNWlibpopt-devel 59 BuildRequires: SUNWhea 60 BuildRequires: SUNWsqlite3 61 BuildRequires: SUNWlibical 62 %if %option_with_sun_branding 63 # must build the supported SUNWevolution-data-server product using 64 # the version of bdb included in Solaris 65 BuildRequires: SUNWevolution-bdb-devel 66 %endif 67 68 %package devel 69 Summary: %{summary} - development files 70 SUNW_BaseDir: %{_basedir} 71 %include default-depend.inc 72 73 %if %build_l10n 74 %package l10n 75 Summary: %{summary} - l10n files 76 SUNW_BaseDir: %{_basedir} 77 %include default-depend.inc 78 Requires: %{name} 79 %endif 80 81 %prep 82 rm -rf %name-%version 83 mkdir -p %name-%version 84 %eds.prep -d %name-%version 85 # Apply patch for SUN LDAP 86 cd %{_builddir}/%name-%version/evolution-data-server-%{eds.version} 87 cd .. 88 # Expand manpages tarball 89 cd %{_builddir}/%name-%version 90 gzcat %SOURCE2 | tar xf - 91 92 %build 93 export LD=/usr/ccs/bin/ld 94 export LDFLAGS="%_ldflags -L%{_libdir} -R%{_libdir}" 95 export CFLAGS="%optflags" 96 export RPM_OPT_FLAGS="$CFLAGS" 97 export PKG_CONFIG_PATH="%{_pkg_config_path}" 98 99 %if %option_with_sun_branding 100 %define bdb_option --with-libdb=%{_basedir} 101 %else 102 %define bdb_option 103 %endif 104 105 %eds.build -d %name-%version 106 107 %install 108 %eds.install -d %name-%version 109 110 rm -rf $RPM_BUILD_ROOT%{_mandir} 111 cd %{_builddir}/%name-%version/sun-manpages 112 make install DESTDIR=$RPM_BUILD_ROOT 113 114 %if %build_l10n 115 %else 116 # REMOVE l10n FILES 117 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 118 %endif 119 120 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 121 122 %clean 123 rm -rf $RPM_BUILD_ROOT 124 125 %files 126 %doc(bzip2) -d evolution-data-server-%{eds.version} ChangeLog 127 %doc(bzip2) -d evolution-data-server-%{eds.version} COPYING 128 %doc(bzip2) -d evolution-data-server-%{eds.version} NEWS 129 %dir %attr (0755, root, other) %{_datadir}/doc 130 131 %defattr (-, root, bin) 132 %dir %attr (0755, root, bin) %{_libdir} 133 %{_libdir}/lib*.so* 134 %{_libdir}/camel-index-control-* 135 %{_libdir}/camel-lock-helper-* 136 %{_libdir}/evolution-data-server-* 137 %{_libdir}/bonobo/servers/*.server 138 %dir %attr (0755, root, sys) %{_datadir} 139 %dir %attr (0755, root, other) %{_datadir}/pixmaps 140 %{_datadir}/pixmaps/* 141 %{_datadir}/evolution-data-server-* 142 %dir %attr(0755, root, bin) %{_mandir} 143 %dir %attr(0755, root, bin) %{_mandir}/* 144 %{_mandir}/*/* 145 146 %files devel 147 %defattr (-, root, bin) 148 %dir %attr (0755, root, bin) %{_libdir} 149 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 150 %{_libdir}/pkgconfig/* 151 %dir %attr (0755, root, bin) %{_includedir} 152 %{_includedir}/* 153 %dir %attr (0755, root, sys) %{_datadir} 154 %{_datadir}/idl 155 %{_datadir}/gtk-doc 156 157 %if %build_l10n 158 %files l10n 159 %defattr (-, root, bin) 160 %dir %attr (0755, root, sys) %{_datadir} 161 %attr (-, root, other) %{_datadir}/locale 162 %endif 163 164 %changelog 165 * Fri Sep 11 2009 - jedy.wang@sun.com 166 - Remove SUNWmlib dependency. 167 * Web Jul 22 2009 - jeff.cai@sun.com 168 - Replace with-bdb with option_with_sun_branding 169 Fix #10176 170 * Wed Feb 04 2009 - jeff.cai@sun.com 171 - Add the dependency on SUNWlibical 172 * Tue Sep 16 2008 - jeff.cai@sun.com 173 - Add copyright. 174 * Wed Jul 23 2008 - jeff.cai@sun.com 175 - Add dependency of SUNWsqlite3 176 * Wed Apr 02 2008 - jeff.cai@sun.com 177 - Add copyright file. 178 * Thu Dec 20 2007 - halton.huo@sun.com 179 - Fix build problem when %support_level is not supported. Only set 180 bdb_option and depend on SUNWbdb and SUNWevolution-bdb-devel when 181 %support_level is supported. 182 * Mon Nov 05 2007 - jeff.cai@sun.com 183 - Use system ldflag to enable -BDirect 184 * Fri Sep 28 2007 - laca@sun.com 185 - delete -I%{_includedir} from CFLAGS -- it's redundant but breaks the 186 indiana build; add %{?arch_ldadd} to LDFLAGS for iconv LDFLAGS 187 * Wed Nov 29 2006 - damien.carbery (at] sun.com 188 - Revert version to %{default_pkg_version} as this module has been integrated 189 to Nevada with this version. Using the base module's version number (2.8.x) 190 is lower than 2.16.x and will cause an integration error. 191 * Tue Nov 28 2006 - jeff.cai@sun.com 192 - Use eds to refer to the spec file. 193 - Use evolution-data-server's version information to replace 194 * Mon Nov 27 2006 - jeff.cai (at] sun.com 195 - Use evolution-data-server's version information to replace 196 default one. 197 * Mon Oct 23 2006 - irene.huang@sun.com 198 - Moved all patches to ../patches 199 * Fri Oct 20 2006 - damien.carbery@sun.com 200 - Add code to expand manpage tarball, otherwise build breaks. 201 * Thu Oct 19 2006 - irene.huang@sun.com 202 - add manpages 203 * Tue Oct 17 2006 - jeff.cai@sun.com 204 - add patch evolution-data-server-03-mail-rlimit.diff to fix bug 348888 205 * Sat Aug 12 2006 - laca@sun.com 206 - delete some unnecessary env variables 207 * Thu Jul 27 2006 - halton.huo@sun.com 208 - Correct with_bdb_devel depend on SUNWbdb, not SUNWevolution-bdb-devel 209 * Wed Jul 26 2006 - halton.huo@sun.com 210 - Add SUNWbdb Requires and SUNWevolution-bdb-devel BuildRequires to use 211 system BerkeleyDB. 212 * Tue Jul 25 2006 - jeff.cai@sun.com 213 - Reorder patches. 214 * Fri Jul 20 2006 - jeff.cai@sun.com 215 - Bump to 1.7.4 216 Remove patch evolution-data-server-01-ldap-ssl.diff. 217 * Sun Jun 11 2006 - laca@sun.com 218 - change group from other to bin/sys 219 * Tue May 30 2006 - Irene.Huang@sun.com 220 - Remove '-I%{_includedir}/kerberosv5' from CFLAGS as this has been 221 defined in evolution-data-server/configure.in 222 * Mon May 29 2006 - damien.carbery@sun.com 223 - Add '-I%{_includedir}/kerberosv5' to CFLAGS to find headers. 224 * Sun May 28 2006 - irene.huang@sun.com 225 - Add patch evolution-data-server-02-kerberos.diff, add package requirement of 226 SUNWkrbu and SUNWgss. 227 * Fri May 12 2006 - damien.carbery@sun.com 228 - Small update to dependency list after check-deps.pl run. 229 * Thu May 11 2006 - halton.huo@sun.com 230 - Change %defattr to (-, root, other). 231 * Thu May 04 2006 - laca@sun.com 232 - merge -share pkg(s) into the base pkg(s) 233 * Wed Apr 26 2006 - halton.huo@sun.com 234 - Use JES's NSS/NSPR(/usr/lib/mps) instead of that provided by 235 mozilla or firefox, to fix bug #6418049. 236 * Thu Apr 13 2006 - halton.huo (at] sun.com 237 - Use firefox_prefix defination in linux spec. 238 * Tue Apr 04 2006 - halton.huo (at] sun.com 239 - Alter remove .a/.la files part into linux spec. 240 * Thu Mar 30 2006 - halton.huo (at] sun.com 241 - Remove all *.a/*.la files. 242 * Thu Feb 23 2006 - damien.carbery (at] sun.com 243 - Use default pkg version to match other pkgs; add EVO25 to default category. 244 * Mon Feb 20 2006 - damien.carbery (at] sun.com 245 - Further update of Build/Requires after running check-deps.pl script. 246 * Thu Feb 16 2006 - damien.carbery (at] sun.com 247 - Update Build/Requires after running check-deps.pl script. 248 * Fri Jan 6 2006 - simon.zheng (at] sun.com 249 - Update patch evolution-data-server-01-ldap-ssl.diff 250 - Remove patch evolution-data-server-02-ldap-ssl-addfiles.diff 251 * Tue Dec 6 2005 - laca (at] sun.com 252 - disable -Bdirect as due to symbol clashes 253 * Fri Oct 21 2005 - halton.huo (at] sun.com 254 - evolution-data-server-03-libexec.diff: Fix bug #6334159. 255 - Add firefox dependence, add firefox lib to LDFLAGS, add firefox include to CFLAGS. 256 * Mon Oct 10 2005 - halton.huo (at] sun.com 257 - Move upstreamed patch evolution-data-server-03-solaris-kerberos.diff. 258 * Thu Sep 15 2005 - halton.huo (at] sun.com 259 - Change Source1 evolution-data-server-ldap-ssl-patch.tar 260 to Patch2 evolution-data-server-02-ldap-ssl-addfiles.diff, 261 and re-order patch. 262 - Remove define krb5_prefix and related. 263 - Add patch evolution-data-server-03-solaris-kerberos.diff 264 to disable krb5. 265 * Thu Sep 8 2005 - halton.huo (at] sun.com 266 - Add krb5_prefix define. 267 - Add "-L%{krb5_prefix}/lib -R%{krb5_prefix}/lib" to LDFLAGS. 268 - Add "-I%{krb5_prefix}/include" to CFLAGS. 269 - Use /bin/tar to extract Source1. 270 - Replace version number to * in %files section to avoid 271 version update error. 272 * Tue Sep 6 2006 - halton.huo (at] sun.com 273 - Add patch evolution-data-server-01-ldap-ssl.diff and Source1 274 evolution-data-server-ldap-ssl-patch.tar to support SUN LDAP. 275 * Wed Aug 31 2005 - halton.huo (at] sun.com 276 - Change SUNW_Category for open solaris. 277 * Mon Jul 18 2005 - damien.carbery (at] sun.com 278 - Add SUNWevolution-libs-devel (libsoup) dependency. 279 - Fix %files sections. 280 * Thu Jul 14 2005 - laca (at] sun.com 281 - add missing dependencies 282 * Thu Jul 14 2005 - damien.carbery (at] sun.com 283 - Initial version created 284 285