1 # 2 # spec file for package SUNWevolution-webcal 3 # 4 # includes module(s): exchange-webcal 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 webcal = evolution-webcal.spec 14 15 Name: SUNWevolution-webcal 16 Summary: Webcal support for Evolution 17 Version: %{default_pkg_version} 18 SUNW_Category: EVO25,%{default_category} 19 SUNW_Copyright: %{name}.copyright 20 SUNW_BaseDir: %{_basedir} 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 Source1: %{name}-manpages-0.1.tar.gz 23 %include default-depend.inc 24 Requires: SUNWevolution 25 Requires: SUNWlibpopt 26 Requires: SUNWevolution-data-server 27 Requires: SUNWevolution-libs 28 Requires: SUNWgnome-base-libs 29 Requires: SUNWgnome-component 30 Requires: SUNWgnome-config 31 Requires: SUNWgnome-libs 32 BuildRequires: SUNWevolution-data-server-devel 33 BuildRequires: SUNWevolution-libs-devel 34 BuildRequires: SUNWgnome-base-libs-devel 35 BuildRequires: SUNWgnome-component-devel 36 BuildRequires: SUNWgnome-config-devel 37 BuildRequires: SUNWgnome-libs-devel 38 BuildRequires: SUNWlibpopt-devel 39 40 %package root 41 Summary: %{summary} - / filesystem 42 SUNW_BaseDir: / 43 %include default-depend.inc 44 Requires: SUNWpostrun-root 45 Requires: SUNWgnome-config 46 47 %if %build_l10n 48 %package l10n 49 Summary: %{summary} - l10n files 50 SUNW_BaseDir: %{_basedir} 51 %include default-depend.inc 52 Requires: %{name} 53 %endif 54 55 %prep 56 rm -rf %name-%version 57 mkdir -p %name-%version 58 %webcal.prep -d %name-%version 59 60 # Expand manpages tarball 61 cd %{_builddir}/%name-%version 62 gzcat %SOURCE1 | tar xf - 63 64 %build 65 export LDFLAGS="%_ldflags -L%{_libdir} -R%{_libdir}" 66 export CFLAGS="%optflags" 67 export RPM_OPT_FLAGS="$CFLAGS" 68 export PKG_CONFIG_PATH="%_pkg_config_path" 69 %webcal.build -d %name-%version 70 71 %install 72 rm -rf $RPM_BUILD_ROOT 73 %webcal.install -d %name-%version 74 75 %if %build_l10n 76 %else 77 # REMOVE l10n FILES 78 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 79 rmdir $RPM_BUILD_ROOT%{_datadir} 80 %endif 81 82 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT} 83 84 %clean 85 rm -rf $RPM_BUILD_ROOT 86 87 %post root 88 %include gconf-install.script 89 90 %preun root 91 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 92 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 93 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 94 echo ' exit 0'; 95 echo '}'; 96 echo 'umask 0022'; 97 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 98 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 99 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 100 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 101 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 102 echo 'schemas="$SDIR/evolution-webcal.schemas"'; 103 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 104 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 105 106 %files 107 %defattr (-, root, bin) 108 %dir %attr (0755, root, bin) %{_libexecdir} 109 %{_libexecdir}/* 110 111 %files root 112 %defattr (-, root, sys) 113 %attr (0755, root, sys) %dir %{_sysconfdir} 114 %{_sysconfdir}/gconf/schemas/evolution-webcal.schemas 115 116 %if %build_l10n 117 %files l10n 118 %defattr (-, root, bin) 119 %dir %attr (0755, root, sys) %{_datadir} 120 %attr (-, root, other) %{_datadir}/locale 121 %endif 122 123 %changelog 124 * Fri Aug 1 2008 - jedy.wang@sun.com 125 - Add the manpage. 126 * Thu Jan 3 2008 - laca@sun.com 127 - use gconf-install.script instead of an inline script 128 * Sat Aug 12 2006 - laca@sun.com 129 - delete some unnecessary env variables 130 * Fri Jul 14 2006 - laca@sun.com 131 - update %post/%postun/etc scripts to support diskless client setup, 132 part of 6448317 133 * Thu Jun 29 2006 - laca@sun.com 134 - update postrun scripts 135 * Sun Jun 11 2006 - laca@sun.com 136 - change group from other to bin/sys 137 * Wed May 31 2006 - laca@sun.com 138 - use post/preun scripts to install schemas into the merged gconf files 139 * Thu May 11 2006 - halton.huo@sun.com 140 - Change %defattr to (-, root, other). 141 * Thu Apr 13 2006 - halton.huo@sun.com 142 - Add install schema script, fix bug #6408031. 143 * Thu Feb 23 2006 - damien.carbery@sun.com 144 - Use default pkg version to match other pkgs; add EVO25 to default category. 145 * Mon Feb 20 2006 - damien.carbery@sun.com 146 - Complete update of Build/Requires after running check-deps.pl script. 147 * Thu Feb 16 2006 - damien.carbery@sun.com 148 - Update Build/Requires after running check-deps.pl script. 149 * Tue Sep 20 2005 - glynn.foster@sun.com 150 - Initial spec for SUNWevolution-webcal 151