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 %attr (-, root, other) %{_datadir}/icons 133 %{_datadir}/bug-buddy 134 %dir %attr(0755, root, bin) %{_mandir} 135 %dir %attr(0755, root, bin) %{_mandir}/* 136 %{_mandir}/*/* 137 %dir %attr(0755, root, bin) %{_libdir} 138 %dir %attr(0755, root, bin) %{_libdir}/* 139 %{_libdir}/*/*/* 140 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} AUTHORS README 141 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/AUTHORS 142 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/COPYING 143 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/ChangeLog 144 %doc -d %{base_arch}/bug-buddy-%{bug_buddy.version} google-breakpad/README 145 %doc(bzip2) -d %{base_arch}/bug-buddy-%{bug_buddy.version} COPYING ChangeLog po/ChangeLog NEWS 146 %dir %attr (0755, root, other) %{_datadir}/doc 147 148 %files root 149 %defattr (-, root, sys) 150 %attr (0755, root, sys) %dir %{_sysconfdir} 151 %{_sysconfdir}/gconf/schemas/bug-buddy.schemas 152 153 %if %build_l10n 154 %files l10n 155 %defattr (-, root, bin) 156 %dir %attr (0755, root, sys) %{_datadir} 157 %attr (-, root, other) %{_datadir}/locale 158 %endif 159 160 %changelog 161 * Fri Apr 3 2009 - laca@sun.com 162 - use desktop-cache instead of postrun 163 * Mon Mar 23 2009 - matt.keenn@sun.com 164 - Add delivery of 64bit version of libgnomebreakpad.so #6819745 165 * Thu Sep 11 2008 - matt.keenn@sun.com 166 - Update copyright 167 * Thu Jan 3 2008 - laca@sun.com 168 - use gconf-install.script instead of an inline script 169 * Thu Oct 4 2007 - laca@sun.com 170 - delete unneeded env vars 171 * Fri Sep 28 2007 - damien.carbery@sun.com 172 - Add -norunpath to CXX path so that Sun internal runpaths are not embedded in 173 libgnomebreakpad.so. 174 * Tue Aug 28 2007 - matt.keenan@sun.com 175 - update files for 2.19.91 tarball 176 * Fri Aug 10 2007 - damien.carbery@sun.com 177 - Unbump to 2.18.1 so that it builds. 178 * Thu Aug 09 2007 - damien.carbery@sun.com 179 - Change to use gcc. 180 * Tue Apr 24 2007 - laca@sun.com 181 - s/0755/-/ in defattr so that files are not made all executable 182 * Fri Sep 08 2006 - Matt.Keenan@sun.com 183 - New Manpage tarball 184 * Tue Sep 05 2006 - damien.carbery@sun.com 185 - Update packaging for new tarball. 186 * Wed Aug 16 2006 - damien.carbery@sun.com 187 - Change 'icons' line in %files to pick up files. 188 * Sat Aug 12 2006 - laca@sun.com 189 - change datadir/icons permissions back to root:other since it's a stable 190 interface and wasn't supposed to be changed 191 * Wed Jul 26 2006 - damien.carbery@sun.com 192 - Update packaging for new tarball (icons moved). 193 * Fri Jul 14 2006 - laca@sun.com 194 - update %post/%postun/etc scripts to support diskless client setup, 195 part of 6448317 196 * Thu Jun 29 2006 - laca@sun.com 197 - update postrun scripts 198 * Sun Jun 11 2006 - laca@sun.com 199 - change group from other to bin/sys 200 * Thu May 25 2006 - laca@sun.com 201 - use post/preun scripts to install schemas into the merged gconf files 202 * Wed May 10 2006 - laca@sun.com 203 - merge -share pkg(s) into the base pkg(s) 204 * Sun Feb 19 2006 - damien.carbery@sun.com 205 - Update Build/Requires after running check-deps.pl script. 206 * Tue Nov 29 2005 - laca@sun.com 207 - remove javahelp stuff 208 * Fri Oct 28 2005 - damien.carbery@sun.com 209 - Complete dependency listing. 210 * Wed Oct 26 2005 - glynn.foster@sun.com 211 - Resurrect bug-buddy, and get it to work with pstack 212 213