Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-crash-report
      3 #
      4 # includes module(s): bug-buddy
      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 mattman (temporarily stephen)
     11 #
     12 %include Solaris.inc
     13 
     14 %ifarch amd64 sparcv9
     15 %include arch64.inc
     16 #%define _sysconfdir /etc/%{_arch64}
     17 %use bug_buddy_64 = bug-buddy.spec
     18 %endif
     19 
     20 %include base.inc
     21 
     22 %use bug_buddy = bug-buddy.spec
     23 
     24 Name:                    SUNWgnome-crash-report
     25 Summary:                 GNOME crash report generator
     26 Version:                 %{default_pkg_version}
     27 Source:                  %{name}-manpages-0.1.tar.gz
     28 SUNW_BaseDir:            %{_basedir}
     29 SUNW_Copyright:          %{name}.copyright
     30 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     31 
     32 %include default-depend.inc
     33 Requires: SUNWgtk2
     34 Requires: SUNWgnome-vfs
     35 Requires: SUNWgnome-component
     36 Requires: SUNWgnome-libs
     37 Requires: SUNWgnome-panel
     38 Requires: SUNWgnome-config
     39 Requires: SUNWlxml
     40 Requires: SUNWdesktop-cache
     41 Requires: SUNWlibgtop
     42 Requires: %{name}-root
     43 BuildRequires: SUNWgtk2-devel
     44 BuildRequires: SUNWgnome-vfs-devel
     45 BuildRequires: SUNWgnome-component-devel
     46 BuildRequires: SUNWgnome-libs-devel
     47 BuildRequires: SUNWgnome-panel-devel
     48 BuildRequires: SUNWgnome-config-devel
     49 BuildRequires: SUNWlxml
     50 BuildRequires: SUNWlibgtop-devel
     51 #BuildRequires: SUNWgcc
     52 
     53 %package root
     54 Summary:                 %{summary} - / filesystem
     55 SUNW_BaseDir:            /
     56 %include default-depend.inc
     57 
     58 %if %build_l10n
     59 %package l10n
     60 Summary:                 %{summary} - l10n files
     61 SUNW_BaseDir:            %{_basedir}
     62 %include default-depend.inc
     63 Requires:                %{name}
     64 %endif
     65 
     66 %prep
     67 rm -rf %name-%version
     68 mkdir %name-%version
     69 
     70 %ifarch amd64 sparcv9
     71 mkdir %name-%version/%_arch64
     72 %bug_buddy_64.prep -d %name-%version/%_arch64
     73 %endif
     74 
     75 mkdir %name-%version/%{base_arch}
     76 %bug_buddy.prep -d %name-%version/%{base_arch}
     77 
     78 cd %{_builddir}/%name-%version
     79 gzcat %SOURCE0 | tar xf -
     80 
     81 %build
     82 %if %cc_is_gcc
     83 %else
     84 export CXX="${CXX} -norunpath"
     85 %endif
     86 export CXXFLAGS="%cxx_optflags"
     87 
     88 export CFLAGS="%optflags"
     89 export RPM_OPT_FLAGS="$CFLAGS"
     90 export LDFLAGS="%_ldflags"
     91 
     92 %ifarch amd64 sparcv9
     93 %bug_buddy_64.build -d %name-%version/%_arch64
     94 %endif
     95 
     96 %bug_buddy.build -d %name-%version/%{base_arch}
     97 
     98 %install
     99 rm -rf $RPM_BUILD_ROOT
    100 
    101 %ifarch amd64 sparcv9
    102 %bug_buddy_64.install -d %name-%version/%_arch64
    103 %endif
    104 
    105 %bug_buddy.install -d %name-%version/%{base_arch}
    106 
    107 rm -rf $RPM_BUILD_ROOT%{_mandir}
    108 cd %{_builddir}/%name-%version/sun-manpages
    109 make install DESTDIR=$RPM_BUILD_ROOT
    110 
    111 rm -r $RPM_BUILD_ROOT%{_datadir}/applications
    112 
    113 %if %build_l10n
    114 %else
    115 # REMOVE l10n FILES
    116 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
    117 %endif
    118 
    119 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    120 
    121 %clean
    122 rm -rf $RPM_BUILD_ROOT
    123 
    124 %post
    125 %restart_fmri gconf-cache
    126 
    127 %files
    128 %defattr (-, root, bin)
    129 %dir %attr (0755, root, bin) %{_bindir}
    130 %{_bindir}/*
    131 %dir %attr (0755, root, sys) %{_datadir}
    132 %dir %attr (-, root, other) %{_datadir}/icons
    133 %dir %attr (-, root, root) %{_datadir}/icons/HighContrastLargePrint
    134 %dir %attr (-, root, root) %{_datadir}/icons/HighContrastLargePrint/*
    135 %dir %attr (-, root, root) %{_datadir}/icons/HighContrastLargePrint/*/*
    136 %{_datadir}/icons/HighContrastLargePrint/48x48/apps/bug-buddy.png
    137 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
    138 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/*
    139 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
    140 %{_datadir}/icons/hicolor/scalable/apps/bug-buddy.svg
    141 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/*
    142 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/*
    143 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/*
    144 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/*
    145 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/*
    146 %{_datadir}/icons/hicolor/16x16/apps/bug-buddy.png
    147 %{_datadir}/icons/hicolor/22x22/apps/bug-buddy.png
    148 %{_datadir}/icons/hicolor/24x24/apps/bug-buddy.png
    149 %{_datadir}/icons/hicolor/32x32/apps/bug-buddy.png
    150 %{_datadir}/icons/hicolor/48x48/apps/bug-buddy.png
    151 %{_datadir}/bug-buddy
    152 %dir %attr(0755, root, bin) %{_mandir}
    153 %dir %attr(0755, root, bin) %{_mandir}/*
    154 %{_mandir}/*/*
    155 %dir %attr(0755, root, bin) %{_libdir}
    156 %dir %attr(0755, root, bin) %{_libdir}/*
    157 %{_libdir}/*/*/*
    158 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} AUTHORS README
    159 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/AUTHORS
    160 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/COPYING
    161 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/ChangeLog
    162 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/README
    163 %doc(bzip2) -d %{base_arch}/bug-buddy-%{bug_buddy.version} COPYING ChangeLog po/ChangeLog NEWS
    164 %dir %attr (0755, root, other) %{_datadir}/doc
    165 
    166 %files root
    167 %defattr (-, root, sys)
    168 %attr (0755, root, sys) %dir %{_sysconfdir}
    169 %{_sysconfdir}/gconf/schemas/bug-buddy.schemas
    170 
    171 %if %build_l10n
    172 %files l10n
    173 %defattr (-, root, bin)
    174 %dir %attr (0755, root, sys) %{_datadir}
    175 %attr (-, root, other) %{_datadir}/locale
    176 %endif
    177 
    178 %changelog
    179 * Thu Nov 26 2009 - christian.kelly@sun.com
    180 - Fix directory perms.
    181 * Fri Apr  3 2009 - laca@sun.com
    182 - use desktop-cache instead of postrun
    183 * Mon Mar 23 2009 - matt.keenn@sun.com
    184 - Add delivery of 64bit version of libgnomebreakpad.so #6819745
    185 * Thu Sep 11 2008 - matt.keenn@sun.com
    186 - Update copyright
    187 * Thu Jan  3 2008 - laca@sun.com
    188 - use gconf-install.script instead of an inline script
    189 * Thu Oct  4 2007 - laca@sun.com
    190 - delete unneeded env vars
    191 * Fri Sep 28 2007 - damien.carbery@sun.com
    192 - Add -norunpath to CXX path so that Sun internal runpaths are not embedded in
    193   libgnomebreakpad.so.
    194 * Tue Aug 28 2007 - matt.keenan@sun.com
    195 - update files for 2.19.91 tarball
    196 * Fri Aug 10 2007 - damien.carbery@sun.com
    197 - Unbump to 2.18.1 so that it builds.
    198 * Thu Aug 09 2007 - damien.carbery@sun.com
    199 - Change to use gcc.
    200 * Tue Apr 24 2007 - laca@sun.com
    201 - s/0755/-/ in defattr so that files are not made all executable
    202 * Fri Sep 08 2006 - Matt.Keenan@sun.com
    203 - New Manpage tarball
    204 * Tue Sep 05 2006 - damien.carbery@sun.com
    205 - Update packaging for new tarball.
    206 * Wed Aug 16 2006 - damien.carbery@sun.com
    207 - Change 'icons' line in %files to pick up files.
    208 * Sat Aug 12 2006 - laca@sun.com
    209 - change datadir/icons permissions back to root:other since it's a stable
    210   interface and wasn't supposed to be changed
    211 * Wed Jul 26 2006 - damien.carbery@sun.com
    212 - Update packaging for new tarball (icons moved).
    213 * Fri Jul 14 2006 - laca@sun.com
    214 - update %post/%postun/etc scripts to support diskless client setup,
    215   part of 6448317
    216 * Thu Jun 29 2006 - laca@sun.com
    217 - update postrun scripts
    218 * Sun Jun 11 2006 - laca@sun.com
    219 - change group from other to bin/sys
    220 * Thu May 25 2006 - laca@sun.com
    221 - use post/preun scripts to install schemas into the merged gconf files
    222 * Wed May 10 2006 - laca@sun.com
    223 - merge -share pkg(s) into the base pkg(s)
    224 * Sun Feb 19 2006 - damien.carbery@sun.com
    225 - Update Build/Requires after running check-deps.pl script.
    226 * Tue Nov 29 2005 - laca@sun.com
    227 - remove javahelp stuff
    228 * Fri Oct 28 2005 - damien.carbery@sun.com
    229 - Complete dependency listing.
    230 * Wed Oct 26 2005 - glynn.foster@sun.com
    231 - Resurrect bug-buddy, and get it to work with pstack
    232 
    233