Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-calculator
      3 #
      4 # includes module(s): gcalctool
      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 laca
     11 #
     12 %include Solaris.inc
     13 
     14 %use gcalctool = gcalctool.spec
     15 
     16 Name:                    SUNWgnome-calculator
     17 Summary:                 GNOME calculator utility
     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: SUNWgnome-calculator-root
     27 Requires: SUNWgnome-libs
     28 Requires: SUNWgnome-config
     29 Requires: SUNWlibms
     30 BuildRequires: SUNWlibglade-devel
     31 BuildRequires: SUNWgnome-config-devel
     32 Requires: SUNWdesktop-cache
     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 %package root
     43 Summary:                 %{summary} - / filesystem
     44 SUNW_BaseDir:            /
     45 %include default-depend.inc
     46 
     47 %prep
     48 rm -rf %name-%version
     49 mkdir %name-%version
     50 %gcalctool.prep -d %name-%version
     51 cd %{_builddir}/%name-%version
     52 gzcat %SOURCE0 | tar xf -
     53 
     54 %build
     55 export PKG_CONFIG_PATH=%{_pkg_config_path}
     56 export CFLAGS="%optflags -I%{_includedir}"
     57 export RPM_OPT_FLAGS="$CFLAGS"
     58 export LDFLAGS="%_ldflags"
     59 
     60 %gcalctool.build -d %name-%version
     61 
     62 %install
     63 rm -rf $RPM_BUILD_ROOT
     64 %gcalctool.install -d %name-%version
     65 
     66 rm -rf $RPM_BUILD_ROOT%{_mandir}
     67 cd %{_builddir}/%name-%version/sun-manpages
     68 make install DESTDIR=$RPM_BUILD_ROOT
     69 
     70 %if %build_l10n
     71 %else
     72 # REMOVE l10n FILES
     73 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
     74 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
     75 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
     76 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     77 %endif
     78 
     79 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     80 
     81 %clean
     82 rm -rf $RPM_BUILD_ROOT
     83 
     84 %post
     85 %restart_fmri desktop-mime-cache gconf-cache
     86 
     87 %postun
     88 %restart_fmri desktop-mime-cache
     89 
     90 %files
     91 %defattr (-, root, bin)
     92 %dir %attr (0755, root, bin) %{_bindir}
     93 %{_bindir}/*
     94 %dir %attr (0755, root, sys) %{_datadir}
     95 %dir %attr (0755, root, other) %{_datadir}/applications
     96 %{_datadir}/applications/*
     97 %{_datadir}/gcalctool
     98 %dir %attr (0755, root, other) %{_datadir}/gnome
     99 %{_datadir}/gnome/help/*/C
    100 %{_datadir}/omf/*/*-C.omf
    101 %dir %attr(0755, root, bin) %{_mandir}
    102 %dir %attr(0755, root, bin) %{_mandir}/*
    103 %{_mandir}/*/*
    104 
    105 %if %build_l10n
    106 %files l10n
    107 %defattr (-, root, bin)
    108 %dir %attr (0755, root, sys) %{_datadir}
    109 %dir %attr (0755, root, other) %{_datadir}/gnome
    110 %attr (-, root, other) %{_datadir}/locale
    111 %{_datadir}/gnome/help/*/[a-z]*
    112 %{_datadir}/omf/*/*-[a-z][a-z].omf
    113 %{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
    114 %endif
    115 
    116 %files root
    117 %defattr (-, root, sys)
    118 %attr (0755, root, sys) %dir %{_sysconfdir}
    119 %{_sysconfdir}/gconf/schemas/gcalctool.schemas
    120 
    121 %changelog
    122 * Fri Apr  3 2009 - laca@sun.com
    123 - use desktop-cache instead of postrun
    124 * Thu Jan  3 2008 - laca@sun.com
    125 - use gconf-install.script instead of an inline script
    126 * Wed Oct 31 2007 - damien.carbery@sun.com
    127 - Add %{_datadir}/gcalctool to %files.
    128 * Fri Sep 21 2007 - brian.cameron@sunc.om
    129 - Re-add the desktop file back into the packaging.  It wasn't getting
    130   built before because we weren't calling the proper autotools.
    131 * Thu Aug 16 2007 - damien.carbery@sun.com
    132 - Remove %files line because dir not installed.
    133 * Tue Apr 24 2007 - laca@sun.com
    134 - s/0755/-/ in defattr so that files are not made all executable
    135 * Fri Sep 01 2006 - Matt.Keenan@sun.com
    136 - New Manpage tarball
    137 * Sat Aug 12 2006 - laca@sun.com
    138 - delete some unnecessary env variables
    139 * Fri Jul 14 2006 - laca@sun.com
    140 - update %post/%postun/etc scripts to support diskless client setup,
    141   part of 6448317
    142 * Thu Jun 29 2006 - laca@sun.com
    143 - update postrun scripts
    144 * Sun Jun 11 2006 - laca@sun.com
    145 - change group from other to bin/sys
    146 * Thu May 25 2006 - laca@sun.com
    147 - use post/preun scripts to install schemas into the merged gconf files
    148 * Tue May 09 2006 - laca@sun.com
    149 - merge -share pkg(s) into the base pkg(s)
    150 * Mon Feb 20 2006 - damien.carbery@sun.com
    151 - Update Build/Requires after running check-deps.pl script.
    152 * Sat Dec  3 2005 - laca@sun.com
    153 - add %post script that runs update-desktop-database
    154 * Tue Nov 29 2005 - laca@sun.com
    155 - remove javahelp stuff
    156 * Fri Oct 28 2005 - damien.carbery@sun.com
    157 - Remove more l10n files for non-l10n build.
    158 * Tue May 25 2005 - brian.cameron@sun.com
    159 - Bump to 2.10.0, fix packaging.
    160 * Sat Oct 02 2004 - laca@sun.com
    161 - added %pkgbuild_postprocess
    162 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com
    163 - Updated files sect to extracted l10n help into l10n pkg
    164 - s/SUNWpl5u/SUNWperl584usr/
    165 * Mon Aug 23 2004 - laca@sun.com
    166 - s/SUNWpl5u/SUNWperl584usr/
    167 * Wed Aug 18 2004  damien.carbery@sun.com
    168 - Change manpage perms for Solaris integration.
    169 * Sat Jun 26 2004  shirley.woo@sun.com
    170 - Changed install location to /usr/...
    171 * Wed Jun  2 2004 - takao.fujiwara@sun.com
    172 - Added %{_datadir}/locale to install l10n messages
    173 * Thu May 06 2004 - brian.cameron@sun.com
    174 - Removed %{_sysconfdir}/gconf from share package since
    175   it is already included in root.
    176 * Wed Mar 24 2004 - brian.cameron@sun.com
    177 - Added SGML man page integration
    178 * Mon Mar 01 2004 - laca@sun.com
    179 - define PERL5LIB
    180 * Mon Feb 23 2004 - niall.power@sun.com
    181 - add a *-root package and install schemas
    182 - fix up dependencies
    183 
    184