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 rm -rf $RPM_BUILD_ROOT%{_mandir} 83 cd %{_builddir}/%name-%version/sun-manpages 84 make install DESTDIR=$RPM_BUILD_ROOT 85 86 87 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT} 88 89 %clean 90 rm -rf $RPM_BUILD_ROOT 91 92 %post root 93 %include gconf-install.script 94 95 %preun root 96 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 97 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 98 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 99 echo ' exit 0'; 100 echo '}'; 101 echo 'umask 0022'; 102 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 103 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 104 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 105 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 106 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 107 echo 'schemas="$SDIR/evolution-webcal.schemas"'; 108 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 109 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 110 111 %files 112 %doc -d evolution-webcal-%{webcal.version} AUTHORS 113 %doc(bzip2) -d evolution-webcal-%{webcal.version} ChangeLog 114 %doc(bzip2) -d evolution-webcal-%{webcal.version} COPYING 115 %defattr (-, root, bin) 116 %dir %attr (0755, root, bin) %{_libexecdir} 117 %{_libexecdir}/* 118 %dir %attr (0755, root, sys) %{_datadir} 119 %dir %attr (0755, root, other) %{_datadir}/doc 120 %dir %attr(0755, root, bin) %{_mandir} 121 %dir %attr(0755, root, bin) %{_mandir}/* 122 %{_mandir}/*/* 123 124 %files root 125 %defattr (-, root, sys) 126 %attr (0755, root, sys) %dir %{_sysconfdir} 127 %{_sysconfdir}/gconf/schemas/evolution-webcal.schemas 128 129 %if %build_l10n 130 %files l10n 131 %defattr (-, root, bin) 132 %dir %attr (0755, root, sys) %{_datadir} 133 %attr (-, root, other) %{_datadir}/locale 134 %endif 135 136 %changelog 137 * Fri Oct 13 2008 - jedy.wang@sun.com 138 - Ship manpage. 139 * Fri Sep 19 2008 - christian.kelly@sun.com 140 - Set permissions on /usr/share and /usr/share/doc. 141 * Tue Sep 16 2008 - jedy.wang@sun.com 142 - Add copyright files. 143 * Fri Aug 1 2008 - jedy.wang@sun.com 144 - Add the manpage. 145 * Thu Jan 3 2008 - laca@sun.com 146 - use gconf-install.script instead of an inline script 147 * Sat Aug 12 2006 - laca@sun.com 148 - delete some unnecessary env variables 149 * Fri Jul 14 2006 - laca@sun.com 150 - update %post/%postun/etc scripts to support diskless client setup, 151 part of 6448317 152 * Thu Jun 29 2006 - laca@sun.com 153 - update postrun scripts 154 * Sun Jun 11 2006 - laca@sun.com 155 - change group from other to bin/sys 156 * Wed May 31 2006 - laca@sun.com 157 - use post/preun scripts to install schemas into the merged gconf files 158 * Thu May 11 2006 - halton.huo@sun.com 159 - Change %defattr to (-, root, other). 160 * Thu Apr 13 2006 - halton.huo@sun.com 161 - Add install schema script, fix bug #6408031. 162 * Thu Feb 23 2006 - damien.carbery@sun.com 163 - Use default pkg version to match other pkgs; add EVO25 to default category. 164 * Mon Feb 20 2006 - damien.carbery@sun.com 165 - Complete update of Build/Requires after running check-deps.pl script. 166 * Thu Feb 16 2006 - damien.carbery@sun.com 167 - Update Build/Requires after running check-deps.pl script. 168 * Tue Sep 20 2005 - glynn.foster@sun.com 169 - Initial spec for SUNWevolution-webcal 170