Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package bug-buddy
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: mattman
      9 #
     10 Name:         bug-buddy
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.16.0
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GNOME Bug Reporting Tool
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/bug-buddy/2.16/bug-buddy-%{version}.tar.bz2
     19 Source1:      bug-buddy.1.gz
     20 Patch1:       bug-buddy-01-use-pstack.diff
     21 URL:          http://www.gnome.org/
     22 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     23 Docdir:       %{_docdir}/bug-buddy
     24 Autoreqprov:  on
     25 
     26 %define libgnomeui_version 2.6.0
     27 %define scrollkeeper_version 0.3.14
     28 %define gnome_desktop_version 2.6.1
     29 %define gnome_doc_utils_version 0.2.0
     30 
     31 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     32 BuildRequires: gnome-desktop >= %{gnome_desktop_version}
     33 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     34 BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
     35 Requires: libgnomeui >= %{libgnomeui_version}
     36 Prereq: GConf
     37 
     38 %description
     39 Bug Buddy for the GNOME 2.6 Desktop has been ported from the GNOME 1.x releases. Its purpose is to make bug-reporting for end-users as easy as possible. It can generate backtraces of crashes and include the information with the bugreport.
     40 
     41 %prep
     42 %setup -q
     43 ## FIXME: needs engineer rework: %patch1 -p1
     44 
     45 %build
     46 %ifos linux
     47 if [ -x /usr/bin/getconf ]; then
     48   CPUS=`getconf _NPROCESSORS_ONLN`
     49 fi
     50 %else
     51   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     52 %endif
     53 if test "x$CPUS" = "x" -o $CPUS = 0; then
     54   CPUS=1
     55 fi
     56 
     57 libtoolize --force
     58 glib-gettextize --copy --force
     59 intltoolize --force --copy
     60 aclocal $ACLOCAL_FLAGS -I .
     61 autoconf
     62 autoheader
     63 automake -a -c -f
     64 
     65 # FIXME: Disable scrollkeeper for now 
     66 CFLAGS="$RPM_OPT_FLAGS" \
     67 ./configure --prefix=%{_prefix} \
     68             --sysconfdir=%{_sysconfdir} \
     69 	    --mandir=%{_mandir} \
     70 	    --disable-scrollkeeper
     71 make -j $CPUS
     72 
     73 %install
     74 make DESTDIR=$RPM_BUILD_ROOT install
     75 install -d $RPM_BUILD_ROOT%{_mandir}/man1
     76 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
     77 #Copy zh_HK from zh_TW
     78 #Fixes bug 4930405
     79 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
     80 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
     81 
     82 rm $RPM_BUILD_ROOT%{_datadir}/applications/bug-buddy*.desktop
     83 rm $RPM_BUILD_ROOT%{_datadir}/bug-buddy/ximian.png
     84 
     85 %clean
     86 rm -rf $RPM_BUILD_ROOT
     87 
     88 %post
     89 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     90 SCHEMAS="bug-buddy.schemas"
     91 for S in $SCHEMAS; do
     92         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
     93 done
     94 
     95 %files
     96 %doc AUTHORS COPYING ChangeLog NEWS README
     97 %defattr (-, root, root)
     98 %{_datadir}/locale/*/LC_MESSAGES/*.mo
     99 %{_datadir}/bug-buddy/bug-buddy.*
    100 %{_datadir}/bug-buddy/gdb-cmd
    101 %{_datadir}/bug-buddy/gnome.png
    102 %{_datadir}/bug-buddy/bugzilla/*
    103 %{_datadir}/gnome/help/bug-buddy/*
    104 %{_datadir}/mime-info/*
    105 %{_bindir}/bug-buddy
    106 %{_datadir}/omf/bug-buddy/*.omf
    107 %{_datadir}/pixmaps/*.png
    108 %{_datadir}/man/man1/bug-buddy.1.gz
    109 %{_sysconfdir}/gconf/schemas/bug-buddy.schemas
    110 %{_datadir}/application-registry/*.applications
    111  
    112 
    113 %changelog
    114 * Tue Sep 05 2006 - damien.carbery@sun.com
    115 - Bump to 2.16.0.
    116 * Mon Jul 24 2006 - damien.carbery@sun.com
    117 - Bump to 2.15.90.
    118 * Fri Jul 21 2006 - damien.carbery@sun.com
    119 - Bump to 2.15.0.
    120 * Mon Mar 13 2006 - damien.carbery@sun.com
    121 - Bump to 2.14.0.
    122 * Tue Feb 28 2006 - damien.carbery@sun.com
    123 - Bump to 2.13.90.
    124 * Tue Jan 17 2006 - glynn.foster@sun.com
    125 - Bump 2.13.0
    126 * Tue Nov 29 2005 - laca@sun.com
    127 - remove javahelp stuff
    128 * Tue Oct 11 2005 - damien.carbery@sun.com
    129 - Bump to 2.12.1
    130 * Sat Sep 17 2005 - glynn.foster@sun.com
    131 - Bump to 2.12.0
    132 * Mon Sep 05 2005 - damien.carbery@sun.com
    133 - Bump to 2.11.92.
    134 * Mon Aug 15 2005 - damien.carbery@sun.com
    135 - Bump to 2.11.01.
    136 * Fri Aug 05 2005 - glynn.foster@sun.com
    137 - Remove the bug reporting branding patch for the moment - we don't even
    138   ship bug buddy with Solaris, but now with opensolaris.org we should point
    139   to upstream.
    140 * Fri May 20 2005 - glynn.foster (at] sun.com
    141 - Update to 2.10.0
    142 * Thu Mar 31 2005 - damien.carbery (at] sun.com
    143 - Updated docs tarball (bug-buddy-docs-0.6linux) from maeve.anslow (at] sun.com.
    144 * Wed Feb 09 2005 - damien.carbery (at] sun.com
    145 - Integrated updated Linux specific docs tarball from maeve.anslow (at] sun.com.
    146   Added %ifos to accomodate this.
    147 * Thu Jan 27 2005 - kazuhiko.maekawa (at] sun.com
    148 - Put l10n help tarball for Cinnabar-linux
    149 * Tue Jan 25 2005 - glynn.foster (at] sun.com
    150 - Bring back bug-buddy into the Linux build, removing and merging
    151   some patches.
    152 * Mon Nov 08 2004 - leena.gunda (at] wipro.com
    153 - Added bug-buddy-05-use-pstack.diff to use pstack to get the stack 
    154   trace on Solaris as gdb is not available. Fixes bug #5102045.
    155 * Wed Aug 25 2004 - Kazuhiko.Maekawa (at] sun.com
    156 - Added l10n help contents with patch
    157 * Fri Aug 20 2004 - damien.carbery (at] sun.com
    158 - Integrated updated docs tarball from breda.mccolgan (at] sun.com.
    159 * Thu Aug 05 2004 - damien.carbery (at] sun.com
    160 - Integrated docs tarball from breda.mccolgan (at] sun.com
    161 - Added patch to compensate for Makefiles removed from new tarball.
    162 * Wed Jul 21 2004 - damien.carbery (at] sun.com
    163 - Add patch to remove --export-dynamic which breaks Solaris build.
    164 - Add $ACLOCAL_FLAGS to build on Solaris.
    165 * Thu Jul 08 2004 - damien.donlon (at] sun.com
    166 - Updated l10n content to bug-buddy-l10n-po-1.2.tar.bz2
    167 * Wed Jul 07 2004 - niall.power (at] sun.com
    168 - ported to rpm4
    169 * Wed Jul 07 2004 - dermot.mccluskey (at] sun.com
    170 - added "-j $CPUS" to make to speed up builds
    171 * Wed May 12 2004 - damien.donlon (at] sun.com
    172 - Updated l10n content to bug-buddy-l10n-po-1.1.tar.bz2
    173 * Fri May 07 2004 - matt.keenan (at] sun.com
    174 - Bump to 2.6.1
    175 * Sun Apr 18 2004 - laca (at] sun.com
    176 - enable javahelp conversion on Solaris
    177 * Thu Apr 01 2004 - matt.keenan (at] sun.com
    178 - javahelp conversion
    179 * Mon Mar 29 2004 - damien.donlon (at] sun.com
    180 - Updated l10n content to bug-buddy-l10n-po-1.0.tar.bz2
    181 * Wed Mar 24 2004 - glynn.foster (at] sun.com
    182 - Bump to 2.6.0
    183 * Tue Mar 16 2004 - glynn.foster (at] sun.com
    184 - Bump to 2.5.92. Remove localized online help since it's upstream
    185   in the tarball. Remove help button since we're working from head
    186   and we'll get it with the next iteration. Remove random branding
    187   in the user interface, just increases more time spent doing pointless
    188   localizations. Remove the ximian branding patch, since it needs to be
    189   redone, and we shouldn't do the sendmail edits in that patch.
    190 * Tue Mar 16 2004 - glynn.foster (at] sun.com
    191 - Removed man, menu patches since we're doing this in spec file now.
    192   Merged potfile patches and reorder the rest.
    193 * Thu Mar 11 2004 - yuriy.kuznetsov@sun.com
    194 - added bug-buddy-09-g11n-potfiles.diff
    195 * Wed Mar 03 2004 - balamurali.viswanathan@wipro.com
    196 - Added patch bug-buddy-08-enable-help.diff to provide help.
    197 * Mon Feb 23 2004 - matt.keenan@sun.com
    198 - Bump to 2.5.3, update l10n
    199 - Re-merge all patches
    200 * Wed Dec 17 2003 - glynn.foster@sun.com
    201 - Bump to 2.5.1
    202 * Thu Nov 13 2003 - glynn.foster@sun.com
    203 - Remove menu entry
    204 * Fri Oct 10 2003 - niall.power@sun.com
    205 - Updated to version 2.4.0
    206 * Thu Oct 9 2003 - Laca@sun.com
    207 - removed %post, fixed %files list and removed ximian.png.
    208 * Wed Sep 17 2003 - matt.keenan@sun.com
    209 - Man page change, package tarball version of man page
    210 * Tue Aug 19 2003 - Laszlo.Kovacs@sun.com
    211 - add bug-buddy-04-remove-ximian-druid-pages.diff
    212 * Tue Aug 05 2003 - Laszlo.Kovacs@sun.com
    213 - add bug-buddy-03-sensical-check-removed.diff
    214 * Tue Aug 05 2003 - glynn.foster@sun.com
    215 - Update tarball, bump version, reset release.
    216 * Fri Aug 01 2003 - glynn.foster@sun.com
    217 - Add menu category thing
    218 * Tue May 13 2003 - matt.keenan@sun.com
    219 - initial Sun Release
    220