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 2008 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: mattman
     11 #
     12 %include Solaris.inc
     13 
     14 %use bug_buddy= bug-buddy.spec
     15 
     16 Name:                    SUNWgnome-crash-report
     17 Summary:                 GNOME crash report 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-vfs
     26 Requires: SUNWgnome-component
     27 Requires: SUNWgnome-libs
     28 Requires: SUNWgnome-base-libs
     29 Requires: SUNWgnome-panel
     30 Requires: SUNWgnome-config
     31 Requires: SUNWlxml
     32 Requires: SUNWpostrun
     33 Requires: SUNWlibgtop
     34 BuildRequires: SUNWgnome-vfs-devel
     35 BuildRequires: SUNWgnome-component-devel
     36 BuildRequires: SUNWgnome-libs-devel
     37 BuildRequires: SUNWgnome-base-libs-devel
     38 BuildRequires: SUNWgnome-panel-devel
     39 BuildRequires: SUNWgnome-config-devel
     40 BuildRequires: SUNWlxml
     41 BuildRequires: SUNWlibgtop-devel
     42 #BuildRequires: SUNWgcc
     43 
     44 %package root
     45 Summary:                 %{summary} - / filesystem
     46 SUNW_BaseDir:            /
     47 %include default-depend.inc
     48 Requires: SUNWpostrun-root
     49 Requires: SUNWgnome-config
     50 
     51 %if %build_l10n
     52 %package l10n
     53 Summary:                 %{summary} - l10n files
     54 SUNW_BaseDir:            %{_basedir}
     55 %include default-depend.inc
     56 Requires:                %{name}
     57 %endif
     58 
     59 %prep
     60 rm -rf %name-%version
     61 mkdir %name-%version
     62 %bug_buddy.prep -d %name-%version
     63 cd %{_builddir}/%name-%version
     64 gzcat %SOURCE0 | tar xf -
     65 
     66 %build
     67 # Uncomment these 4 lines when building 2.19.0.
     68 #export CC=/usr/sfw/bin/gcc
     69 #export CXX=/usr/sfw/bin/g++
     70 #export CFLAGS="%gcc_optflags -I%{_includedir} -I/usr/sfw/include/c++/3.4.3"
     71 #export CXXFLAGS="%gcc_cxx_optflags -I%{_includedir} -I/usr/sfw/include/c++/3.4.3"
     72 
     73 %if %cc_is_gcc
     74 %else
     75 export CXX="${CXX} -norunpath"
     76 %endif
     77 export CXXFLAGS="%cxx_optflags"
     78 
     79 export CFLAGS="%optflags"
     80 export RPM_OPT_FLAGS="$CFLAGS"
     81 export LDFLAGS="%_ldflags"
     82 %bug_buddy.build -d %name-%version
     83 
     84 %install
     85 rm -rf $RPM_BUILD_ROOT
     86 %bug_buddy.install -d %name-%version
     87 rm -rf $RPM_BUILD_ROOT%{_mandir}
     88 cd %{_builddir}/%name-%version/sun-manpages
     89 make install DESTDIR=$RPM_BUILD_ROOT
     90 
     91 rm -r $RPM_BUILD_ROOT%{_datadir}/applications
     92 
     93 %if %build_l10n
     94 %else
     95 # REMOVE l10n FILES
     96 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
     97 %endif
     98 
     99 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    100 
    101 %clean
    102 rm -rf $RPM_BUILD_ROOT
    103 
    104 %post
    105 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    106   echo '/usr/bin/scrollkeeper-update'
    107 ) | $BASEDIR/lib/postrun -b -u -c JDS
    108 
    109 %postun
    110 test -x $BASEDIR/lib/postrun || exit 0
    111 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    112   echo '/usr/bin/scrollkeeper-update'
    113 ) | $BASEDIR/lib/postrun -b -u -c JDS
    114 
    115 %post root
    116 %include gconf-install.script
    117 
    118 %preun root
    119 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    120 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    121   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    122   echo '  exit 0';
    123   echo '}';
    124   echo 'umask 0022';
    125   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    126   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    127   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    128   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    129   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    130   echo 'schemas="$SDIR/bug-buddy.schemas"';
    131   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    132 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    133 
    134 %files
    135 %defattr (-, root, bin)
    136 %dir %attr (0755, root, bin) %{_bindir}
    137 %{_bindir}/*
    138 %dir %attr (0755, root, sys) %{_datadir}
    139 %attr (-, root, other) %{_datadir}/icons
    140 %{_datadir}/bug-buddy
    141 %dir %attr(0755, root, bin) %{_mandir}
    142 %dir %attr(0755, root, bin) %{_mandir}/*
    143 %{_mandir}/*/*
    144 %dir %attr(0755, root, bin) %{_libdir}
    145 %dir %attr(0755, root, bin) %{_libdir}/*
    146 %{_libdir}/*/*/*
    147 %doc -d bug-buddy-%{bug_buddy.version} AUTHORS README
    148 %doc -d bug-buddy-%{bug_buddy.version} google-breakpad/AUTHORS
    149 %doc -d bug-buddy-%{bug_buddy.version} google-breakpad/COPYING
    150 %doc -d bug-buddy-%{bug_buddy.version} google-breakpad/ChangeLog
    151 %doc -d bug-buddy-%{bug_buddy.version} google-breakpad/README
    152 %doc(bzip2) -d bug-buddy-%{bug_buddy.version} COPYING ChangeLog po/ChangeLog NEWS
    153 %dir %attr (0755, root, other) %{_datadir}/doc
    154 
    155 %files root
    156 %defattr (-, root, sys)
    157 %attr (0755, root, sys) %dir %{_sysconfdir}
    158 %{_sysconfdir}/gconf/schemas/bug-buddy.schemas
    159 
    160 %if %build_l10n
    161 %files l10n
    162 %defattr (-, root, bin)
    163 %dir %attr (0755, root, sys) %{_datadir}
    164 %attr (-, root, other) %{_datadir}/locale
    165 %endif
    166 
    167 %changelog
    168 * Thu Sep 11 2008 - matt.keenn@sun.com
    169 - Update copyright
    170 * Thu Jan  3 2008 - laca@sun.com
    171 - use gconf-install.script instead of an inline script
    172 * Thu Oct  4 2007 - laca@sun.com
    173 - delete unneeded env vars
    174 * Fri Sep 28 2007 - damien.carbery@sun.com
    175 - Add -norunpath to CXX path so that Sun internal runpaths are not embedded in
    176   libgnomebreakpad.so.
    177 * Tue Aug 28 2007 - matt.keenan@sun.com
    178 - update files for 2.19.91 tarball
    179 * Fri Aug 10 2007 - damien.carbery@sun.com
    180 - Unbump to 2.18.1 so that it builds.
    181 * Thu Aug 09 2007 - damien.carbery@sun.com
    182 - Change to use gcc.
    183 * Tue Apr 24 2007 - laca@sun.com
    184 - s/0755/-/ in defattr so that files are not made all executable
    185 * Fri Sep 08 2006 - Matt.Keenan@sun.com
    186 - New Manpage tarball
    187 * Tue Sep 05 2006 - damien.carbery@sun.com
    188 - Update packaging for new tarball.
    189 * Wed Aug 16 2006 - damien.carbery@sun.com
    190 - Change 'icons' line in %files to pick up files.
    191 * Sat Aug 12 2006 - laca@sun.com
    192 - change datadir/icons permissions back to root:other since it's a stable
    193   interface and wasn't supposed to be changed
    194 * Wed Jul 26 2006 - damien.carbery@sun.com
    195 - Update packaging for new tarball (icons moved).
    196 * Fri Jul 14 2006 - laca@sun.com
    197 - update %post/%postun/etc scripts to support diskless client setup,
    198   part of 6448317
    199 * Thu Jun 29 2006 - laca@sun.com
    200 - update postrun scripts
    201 * Sun Jun 11 2006 - laca@sun.com
    202 - change group from other to bin/sys
    203 * Thu May 25 2006 - laca@sun.com
    204 - use post/preun scripts to install schemas into the merged gconf files
    205 * Wed May 10 2006 - laca@sun.com
    206 - merge -share pkg(s) into the base pkg(s)
    207 * Sun Feb 19 2006 - damien.carbery@sun.com
    208 - Update Build/Requires after running check-deps.pl script.
    209 * Tue Nov 29 2005 - laca@sun.com
    210 - remove javahelp stuff
    211 * Fri Oct 28 2005 - damien.carbery@sun.com
    212 - Complete dependency listing.
    213 * Wed Oct 26 2005 - glynn.foster@sun.com
    214 - Resurrect bug-buddy, and get it to work with pstack
    215