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