1 # 2 # spec file for package SUNWevolution-exchange 3 # 4 # includes module(s): exchange-connector 5 # 6 # Copyright 2008 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 # Owner: jedy 11 # 12 %include Solaris.inc 13 %use evolution = evolution.spec 14 %use evoexchange = evolution-exchange.spec 15 %define evo_prefix /usr/lib/evolution 16 17 Name: SUNWevolution-exchange 18 Summary: Exchange connector for Evolution 19 Version: %{default_pkg_version} 20 SUNW_Category: EVO25,%{default_category} 21 SUNW_Copyright: %{name}.copyright 22 SUNW_BaseDir: %{_basedir} 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 %include default-depend.inc 25 Source1: %{name}-manpages-0.1.tar.gz 26 Requires: SUNWevolution 27 Requires: SUNWgnome-print 28 Requires: SUNWgnome-config 29 Requires: SUNWgnome-libs 30 Requires: SUNWevolution-data-server 31 Requires: SUNWevolution-libs 32 Requires: SUNWlibsoup 33 Requires: SUNWgnome-base-libs 34 Requires: SUNWgnome-component 35 Requires: SUNWgnome-vfs 36 Requires: SUNWgnutls 37 Requires: SUNWlibgcrypt 38 Requires: SUNWlibgpg-error 39 Requires: SUNWlibms 40 Requires: SUNWlibpopt 41 Requires: SUNWlxml 42 Requires: SUNWmlib 43 Requires: SUNWzlib 44 BuildRequires: SUNWevolution-data-server-devel 45 BuildRequires: SUNWevolution-libs-devel 46 BuildRequires: SUNWlibsoup-devel 47 BuildRequires: SUNWgnome-base-libs-devel 48 BuildRequires: SUNWgnome-component-devel 49 BuildRequires: SUNWgnome-vfs-devel 50 BuildRequires: SUNWgnutls-devel 51 BuildRequires: SUNWlibgcrypt-devel 52 BuildRequires: SUNWlibgpg-error-devel 53 BuildRequires: SUNWlibpopt-devel 54 BuildRequires: SUNWgnome-print-devel 55 BuildRequires: SUNWgnome-config-devel 56 BuildRequires: SUNWgnome-libs-devel 57 BuildRequires: SUNWevolution-devel 58 59 %package root 60 Summary: %{summary} - / filesystem 61 SUNW_BaseDir: / 62 %include default-depend.inc 63 Requires: SUNWpostrun-root 64 Requires: SUNWgnome-config 65 66 %if %build_l10n 67 %package l10n 68 Summary: %{summary} - l10n files 69 SUNW_BaseDir: %{_basedir} 70 %include default-depend.inc 71 Requires: %{name} 72 %endif 73 74 %prep 75 rm -rf %name-%version 76 mkdir -p %name-%version 77 %evoexchange.prep -d %name-%version 78 cd %{_builddir}/%name-%version 79 gzcat %SOURCE1 | tar xf - 80 81 %build 82 #FIXME: symbol clash in the evo libraries means we can't use -Bdirect 83 # should be re-enabled once these issues are fixed 84 export LD=/usr/ccs/bin/ld 85 export LDFLAGS="-z ignore %{?arch_ldadd} -L%{_libdir} -R%{_libdir} -L%{evo_prefix}/%{evolution.major_version} -R%{evo_prefix}/%{evolution.major_version}" 86 export CFLAGS="%optflags" 87 export RPM_OPT_FLAGS="$CFLAGS" 88 export PKG_CONFIG_PATH="%_pkg_config_path" 89 %evoexchange.build -d %name-%version 90 91 %install 92 %evoexchange.install -d %name-%version 93 mv $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup-%{evolution.major_version} $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup 94 95 # Delete gtk-doc files before packagine. 96 rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc 97 98 cd %{_builddir}/%name-%version/sun-manpages 99 rm -rf $RPM_BUILD_ROOT%{_mandir} 100 make install DESTDIR=$RPM_BUILD_ROOT 101 102 %if %build_l10n 103 %else 104 # REMOVE l10n FILES 105 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 106 %endif 107 108 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 109 110 %clean 111 rm -rf $RPM_BUILD_ROOT 112 113 %post root 114 %include gconf-install.script 115 116 %preun root 117 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 118 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 119 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 120 echo ' exit 0'; 121 echo '}'; 122 echo 'umask 0022'; 123 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 124 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 125 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 126 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 127 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 128 echo 'schemas="$SDIR/apps_exchange_addressbook-%{evolution.major_version}.schemas"'; 129 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas > /dev/null' 130 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS_wait -a 131 132 %files 133 %doc -d evolution-exchange-%{evoexchange.version} AUTHORS 134 %doc(bzip2) -d evolution-exchange-%{evoexchange.version} ChangeLog 135 %doc(bzip2) -d evolution-exchange-%{evoexchange.version} COPYING 136 %dir %attr (0755, root, other) %{_datadir}/doc 137 %defattr (-, root, bin) 138 %dir %attr (0755, root, bin) %{_bindir} 139 %{_bindir}/* 140 %dir %attr (0755, root, bin) %{_libdir} 141 %{_libdir}/evolution 142 %{_libdir}/evolution-data-server-* 143 %{_libdir}/bonobo/servers/* 144 %dir %attr (0755, root, sys) %{_datadir} 145 %{_datadir}/evolution-exchange 146 %dir %attr(0755, root, bin) %{_mandir} 147 %dir %attr(0755, root, bin) %{_mandir}/* 148 %{_mandir}/*/* 149 150 %if %build_l10n 151 %files l10n 152 %defattr (-, root, bin) 153 %dir %attr (0755, root, sys) %{_datadir} 154 %attr (-, root, other) %{_datadir}/locale 155 %endif 156 157 %files root 158 %defattr (-, root, sys) 159 %attr (0755, root, sys) %dir %{_sysconfdir} 160 %{_sysconfdir}/gconf/schemas/apps_exchange_addressbook-%{evolution.major_version}.schemas 161 162 %changelog 163 * Fri Sep 19 2008 - christian.kelly@sun.com 164 - Set permissions on /usr/share/doc. 165 * Wed Sep 16 2008 - jedy.wang@sun.com 166 - Add new copyright files. 167 * Thu Jan 3 2008 - laca@sun.com 168 - use gconf-install.script instead of an inline script 169 * Fri Oct 5 2007 - laca@sun.com 170 - add %{arch_ldadd} to LDFLAGS for GNU libiconv/libintl 171 * Tue Apr 24 2007 - laca@sun.com 172 - s/0755/-/ in defattr so that files are not made all executable 173 * Wed Dec 13 2006 - jedy.wang@sun.com 174 - Replace evo_major_version with major_version in evolution.spec. 175 - Ship schema. 176 * Wed Nov 29 2006 - damien.carbery@sun.com 177 - Revert version to %{default_pkg_version} as this module has been integrated 178 to Nevada with this version. Using the base module's version number (2.8.x) 179 is lower than 2.16.x and will cause an integration error. 180 - Bump evo_major_version to 2.10 to match SUNWevolution. 181 - Remove unnecessary 'cd' calls in %prep. 182 * Tue Nov 28 2006 - jeff.cai (at] sun.com 183 - use evoexchange to refer to the spec file. 184 * Mon Nov 27 2006 - jeff.cai (at] sun.com 185 - Use evolution-exchange's version information to replace default one. 186 * Mon Oct 23 2006 - irene.huang@sun.com 187 - Moved all patches to ../patches/ 188 * Fri Sep 01 2006 - matt.keenan@sun.com 189 - Add new man page tarball 190 * Sat Aug 12 2006 - laca@sun.com 191 - delete some unnecessary env variables 192 * Tue Jul 25 2006 - Jeff.Cai@sun.com 193 - Reorder patches. 194 * Mon Jun 24 2006 - Jeff.Cai@sun.com 195 - Bump to trunk 2.7.4 196 Remove patch evolution-exchange-01-ldap.diff. 197 - Updated patch evolution-exchange-01-ldap.diff. 198 * Sun Jun 22 2006 - Simon.zheng@sun.com 199 - Updated patch evolution-exchange-01-ldap.diff. 200 * Sun Jun 11 2006 - laca@sun.com 201 - change group from other to bin/sys 202 * Thu Jun 8 2006 - Jeff.Cai@sun.com 203 - Add man page exchange-connector-setup.1 204 * Thu Jun 1 2006 - Irene.Huang@sun.com 205 - Change renaming of ximian-connector-setup to renaming 206 of exchange-connector-setup in %install section. 207 * Wed May 31 2006 - damien.carbery@sun.com 208 - When moving ximian-connector-setup-2.6 use %{tarball} instead of '*'. 209 - Revmove references to gtk-doc dir from %files as files no longer installed. 210 * Thu May 11 2006 - halton.huo@sun.com 211 - Change %defattr to (-, root, other). 212 * Thu Apr 27 2006 - halton.huo@sun.com 213 - Move ximian-connector-setup-2.6 to ximian-connector-setup, 214 ARC request: no version binnaries under /usr/bin 215 * Thu Apr 06 2006 - brian.cameron@sun.com 216 - Now use tarball_version. 217 * Tue Apr 04 2006 - halton.huo@sun.com 218 - Alter remove .a/.la files part into linux spec. 219 * Thu Mar 30 2006 - halton.huo@sun.com 220 - Remove all *.a/*.la files. 221 * Thu Feb 23 2006 - damien.carbery@sun.com 222 - Use default pkg version to match other pkgs; add EVO25 to default category. 223 * Mon Feb 20 2006 - damien.carbery@sun.com 224 - Complete update of Build/Requires after running check-deps.pl script. 225 * Thu Feb 16 2006 - damien.carbery@sun.com 226 - Update Build/Requires after running check-deps.pl script. 227 * Fri Jan 06 2006 - simon.zheng@sun.com 228 - Remove Solaris/patches/evolution-exchange-02-ldap-addfiles.diff 229 * Wed Dec 21 2005 - halton.huo@sun.com 230 - Change evo_major_version from 2.4 to 2.6. 231 - Remove evolution-exchange-03-solaris-kerberos.diff and reorder. 232 * Wed Dec 7 2005 - laca@sun.com 233 - disable -Bdirect as due to symbol clashes 234 * Wed Nov 09 2005 - damien.carbery@sun.com 235 - Add Build/Requires SUNWgnome-print as required by evolution-exchange. 236 * Tue Nov 08 2005 - halton.huo@sun.com 237 - Add /usr/lib/evolution/2.4 to LDFLAGS, fix bug #6347334. 238 * Mon Oct 10 2005 - halton.huo@sun.com 239 - Moved define moz_prefix. 240 - Moved "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" from LDFLAGS. 241 * Thu Sep 15 2005 - halton.huo@sun.com 242 - Added define moz_prefix. 243 - Added "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" to LDFLAGS 244 so mozilla libraries can be found. 245 - Added patch evolution-exchange-01-ldap.diff, evolution-exchange-02-ldap-addfiles.diff 246 for SUN LDAP. 247 - Added patch evolution-exchange-03-solaris-kerberos.diff to disable krb5. 248 - Added patch evolution-exchange-04-solaris-eutil.diff to fix -leutil not found problem. 249 - Change %files section. 250 - Change changelog more readable. 251 * Wed Aug 31 2005 - halton.huo@sun.com 252 - Change SUNW_Category for open solaris 253 * Wed Aug 31 2005 - damien.carbery@sun.com 254 - Use evolution-exchange instead of ximian-connector. 255 * Thu Jul 14 2005 - damien.carbery@sun.com 256 - Use ximian-connector instead of oxygen2. %files changes will be needed. 257 * Sat Oct 02 2004 - laca@sun.com 258 - added %pkgbuild_postprocess 259 * Mon Sep 13 2004 - dave.lin@sun.com 260 - change the component name from SUNWevolution-xchg-connect to SUNWevolution-exchange per Michelle Lei 261 * Tue Sep 07 2004 - laca@sun.com 262 - change copyright to ximian 263 * Sun Jun 27 2004 shirley.woo@sun.com 264 - Changed install location to /usr/... 265 - Added -root package for /etc files 266 * Wed Jun 16 2004 - laca@sun.com 267 - rename back to SUNWevolution-xchg-connect 268 * Fri Jun 11 2004 - damien.carbery@sun.com 269 - Set perms on _sysconfdir to correct a conflict. 270