1 # 2 # spec file for package SUNWevolution-webcal 3 # 4 # includes module(s): exchange-webcal 5 # 6 # Copyright 2009 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 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: SUNWgtk2 25 Requires: SUNWevolution 26 Requires: SUNWlibpopt 27 Requires: SUNWevolution-data-server 28 Requires: SUNWevolution-libs 29 Requires: SUNWgnome-component 30 Requires: SUNWgnome-config 31 Requires: SUNWgnome-libs 32 Requires: %{name}-root 33 Requires: SUNWdesktop-cache 34 BuildRequires: SUNWgtk2-devel 35 BuildRequires: SUNWevolution-data-server-devel 36 BuildRequires: SUNWevolution-libs-devel 37 BuildRequires: SUNWgnome-component-devel 38 BuildRequires: SUNWgnome-config-devel 39 BuildRequires: SUNWgnome-libs-devel 40 BuildRequires: SUNWlibpopt-devel 41 42 %package root 43 Summary: %{summary} - / filesystem 44 SUNW_BaseDir: / 45 %include default-depend.inc 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 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT} 87 88 %clean 89 rm -rf $RPM_BUILD_ROOT 90 91 %post 92 %restart_fmri gconf-cache 93 94 %files 95 %doc -d evolution-webcal-%{webcal.version} AUTHORS 96 %doc(bzip2) -d evolution-webcal-%{webcal.version} ChangeLog 97 %doc(bzip2) -d evolution-webcal-%{webcal.version} COPYING 98 %defattr (-, root, bin) 99 %dir %attr (0755, root, bin) %{_libexecdir} 100 %{_libexecdir}/* 101 %dir %attr (0755, root, sys) %{_datadir} 102 %dir %attr (0755, root, other) %{_datadir}/doc 103 %dir %attr(0755, root, bin) %{_mandir} 104 %dir %attr(0755, root, bin) %{_mandir}/* 105 %{_mandir}/*/* 106 107 %files root 108 %defattr (-, root, sys) 109 %attr (0755, root, sys) %dir %{_sysconfdir} 110 %{_sysconfdir}/gconf/schemas/evolution-webcal.schemas 111 112 %if %build_l10n 113 %files l10n 114 %defattr (-, root, bin) 115 %dir %attr (0755, root, sys) %{_datadir} 116 %attr (-, root, other) %{_datadir}/locale 117 %endif 118 119 %changelog 120 * Fri Apr 3 2009 - laca@sun.com 121 - use desktop-cache instead of postrun 122 * Fri Oct 10 2008 - jedy.wang@sun.com 123 - Ship manpage. 124 * Fri Sep 19 2008 - christian.kelly@sun.com 125 - Set permissions on /usr/share and /usr/share/doc. 126 * Tue Sep 16 2008 - jedy.wang@sun.com 127 - Add copyright files. 128 * Fri Aug 1 2008 - jedy.wang@sun.com 129 - Add the manpage. 130 * Thu Jan 3 2008 - laca@sun.com 131 - use gconf-install.script instead of an inline script 132 * Sat Aug 12 2006 - laca@sun.com 133 - delete some unnecessary env variables 134 * Fri Jul 14 2006 - laca@sun.com 135 - update %post/%postun/etc scripts to support diskless client setup, 136 part of 6448317 137 * Thu Jun 29 2006 - laca@sun.com 138 - update postrun scripts 139 * Sun Jun 11 2006 - laca@sun.com 140 - change group from other to bin/sys 141 * Wed May 31 2006 - laca@sun.com 142 - use post/preun scripts to install schemas into the merged gconf files 143 * Thu May 11 2006 - halton.huo@sun.com 144 - Change %defattr to (-, root, other). 145 * Thu Apr 13 2006 - halton.huo@sun.com 146 - Add install schema script, fix bug #6408031. 147 * Thu Feb 23 2006 - damien.carbery@sun.com 148 - Use default pkg version to match other pkgs; add EVO25 to default category. 149 * Mon Feb 20 2006 - damien.carbery@sun.com 150 - Complete update of Build/Requires after running check-deps.pl script. 151 * Thu Feb 16 2006 - damien.carbery@sun.com 152 - Update Build/Requires after running check-deps.pl script. 153 * Tue Sep 20 2005 - glynn.foster@sun.com 154 - Initial spec for SUNWevolution-webcal 155 156