1 # 2 # spec file for package SUNWgnome-dialog 3 # 4 # includes module(s): zenity 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 # Owner: migi 11 # 12 %include Solaris.inc 13 14 %use zenity = zenity.spec 15 16 Name: SUNWgnome-dialog 17 Summary: GNOME graphical dialog box generator 18 Version: %{default_pkg_version} 19 Source: %{name}-manpages-0.1.tar.gz 20 SUNW_BaseDir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 BuildRoot: %{_tmppath}/%{name}-%{version}-build 23 24 %include default-depend.inc 25 Requires: SUNWgnome-base-libs 26 Requires: SUNWperl584core 27 Requires: SUNWpostrun 28 Requires: SUNWgnome-panel 29 BuildRequires: SUNWgnome-base-libs-devel 30 BuildRequires: SUNWgnome-doc-utils 31 BuildRequires: SUNWgnome-base-libs-devel 32 BuildRequires: SUNWgnome-panel-devel 33 34 %if %build_l10n 35 %package l10n 36 Summary: %{summary} - l10n files 37 SUNW_BaseDir: %{_basedir} 38 %include default-depend.inc 39 Requires: %{name} 40 %endif 41 42 %prep 43 rm -rf %name-%version 44 mkdir %name-%version 45 %zenity.prep -d %name-%version 46 cd %{_builddir}/%name-%version 47 gzcat %SOURCE0 | tar xf - 48 49 %build 50 export PKG_CONFIG_PATH=%{_pkg_config_path} 51 export PERL=/usr/perl5/bin/perl 52 export CFLAGS="%optflags -I%{_includedir}" 53 export RPM_OPT_FLAGS="$CFLAGS" 54 export LDFLAGS="%_ldflags -lX11" 55 %zenity.build -d %name-%version 56 57 %install 58 %zenity.install -d %name-%version 59 rm -rf $RPM_BUILD_ROOT%{_localstatedir} 60 rm -rf $RPM_BUILD_ROOT%{_mandir} 61 cd %{_builddir}/%name-%version/sun-manpages 62 make install DESTDIR=$RPM_BUILD_ROOT 63 64 %if %build_l10n 65 %else 66 # REMOVE l10n FILES 67 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 68 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/zenity/[a-z]* 69 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/zenity/zenity-[a-z]*.omf 70 %endif 71 72 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 73 74 %clean 75 rm -rf $RPM_BUILD_ROOT 76 77 %post 78 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 79 echo '/usr/bin/scrollkeeper-update' 80 ) | $BASEDIR/lib/postrun -b -u -c JDS 81 82 %postun 83 test -x $BASEDIR/lib/postrun || exit 0 84 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 85 echo '/usr/bin/scrollkeeper-update' 86 ) | $BASEDIR/lib/postrun -b -u -c JDS 87 88 %files 89 %defattr (-, root, bin) 90 %dir %attr (0755, root, bin) %{_bindir} 91 %{_bindir}/* 92 %dir %attr (0755, root, sys) %{_datadir} 93 %dir %attr (0755, root, other) %{_datadir}/gnome 94 %{_datadir}/gnome/help/zenity/C 95 %{_datadir}/omf/zenity/*-C.omf 96 %{_datadir}/zenity 97 %dir %attr(0755, root, bin) %{_mandir} 98 %dir %attr(0755, root, bin) %{_mandir}/* 99 %{_mandir}/*/* 100 101 %if %build_l10n 102 %files l10n 103 %defattr (-, root, bin) 104 %dir %attr (0755, root, sys) %{_datadir} 105 %dir %attr (0755, root, other) %{_datadir}/gnome 106 %attr (-, root, other) %{_datadir}/locale 107 %{_datadir}/gnome/help/zenity/[a-z]* 108 %{_datadir}/omf/zenity/zenity-[a-z]*.omf 109 %endif 110 111 %changelog 112 * Tue Jun 24 2008 - damien.carbery@sun.com 113 - Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430. 114 * Thu Jun 05 2008 - damien.carbery@sun.com 115 - Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when 116 libgnomecanvas is linked. libgnomecanvas.so includes some gail functions. 117 * Wed Oct 10 2007 - damien.carbery@sun.com 118 - Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building; 119 change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in 120 SUNWgnome-doc-utils.spec. 121 * Fri Sep 28 2007 - laca@sun.com 122 - delete Nevada X dep 123 * Mon May 21 2007 - laca@sun.com 124 - change SUNWgnome-panel-devel dep from Requires to BuildRequires 125 * Fri Sep 01 2006 - Matt.Keenan@sun.com 126 - New Manpage tarball 127 * Sat Aug 12 2006 - laca@sun.com 128 - delete some unnecessary env variables 129 * Fri Jul 14 2006 - laca@sun.com 130 - update %post/%postun/etc scripts to support diskless client setup, 131 part of 6448317 132 * Thu Jun 29 2006 - laca@sun.com 133 - update postrun scripts 134 * Sun Jun 11 2006 - laca@sun.com 135 - change group from other to bin/sys 136 * Wed May 10 2006 - laca@sun.com 137 - merge -share pkg(s) into the base pkg(s) 138 * Tue May 09 2006 - damien.carbery@sun.com 139 - Change BuildRequires to SUNWgnome-doc-utils as the -share package has been 140 merged into the base package. 141 * Sun Feb 18 2006 - damien.carbery@sun.com 142 - Update Build/Requires after running check-deps.pl script. 143 * Thu Jan 05 2006 - damien.carbery@sun.com 144 - Remove empty /var/lib/scrollkeeper dir structure. 145 * Fri Dec 02 2005 - damien.carbery@sun.com 146 - Add Build/Requires SUNWgnome-doc-utils/-share for gnome-doc-utils.make. 147 * Tue Nov 29 2005 - laca@sun.com 148 - remove javahelp stuff 149 * Tue Sep 13 2005 - laca@sun.com 150 - add unpackaged files 151 * Tue Aug 30 2005 - damien.carbery@sun.com 152 - Remove some help files from %files. 153 * Tue May 24 2005 - brian.cameron@sun.com 154 - Bump to 2.10. 155 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com 156 - Updated l10n help tarball and added pt_BR 157 * Wed Oct 06 2004 - matt.keenan@sun.com 158 - added l10n help files section 159 * Sat Oct 02 2004 - laca@sun.com 160 - added %pkgbuild_postprocess 161 * Mon Aug 23 2004 - laca@sun.com 162 - s/SUNWpl5u/SUNWperl584usr/ 163 * Sat Jun 26 2004 shirley.woo@sun.com 164 - Changed install location to /usr/... 165 * Wed Jun 2 2004 - takao.fujiwara@sun.com 166 - Added %{_datadir}/locale to install l10n messages 167 * Wed Mar 24 2004 - brian.cameron@sun.com 168 - Added SGML man page integration 169 * Mon Mar 01 2004 - <laca@sun.com> 170 - define PERL5LIB. 171