File bug-buddy.spec of Package bug-buddy

#
# spec file for package bug-buddy (Version 2.28.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           bug-buddy
BuildRequires:  evolution-data-server-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel >= 2.14.2
BuildRequires:  intltool
BuildRequires:  libelf-devel
BuildRequires:  libgtop-devel
BuildRequires:  libsoup-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        GPL v2 or later
Group:          System/GUI/GNOME
Version:        2.28.0
Release:        1
Requires:       %{name}-lang = %{version}
Summary:        The GNOME Desktop Bug Reporting Tool
Source:         ftp://ftp.gnome.org/pub/gnome/sources/bug-buddy/2.23/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM bug-buddy-breakpad-vg-fix.patch bnc374803
Patch8:         bug-buddy-breakpad-vg-fix.patch
Url:            http://www.gnome.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gdb
%gconf_schemas_prereq

%description
The Bug Buddy for the GNOME 2.x Desktop makes bug reporting for
end-users as easy as possible. It can generate crash backtraces and
include that information into the bug report.



Authors:
--------
    Jacob Berkman  <jberkman@andrew.cmu.edu> 

%lang_package
%prep
%setup -q
translation-update-upstream
%patch8

%build
%if %suse_version < 1030
export CPPFLAGS="$CPPFLAGS -I/usr/include/libelf"
%endif
%configure --disable-static --with-pic --disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%suse_update_desktop_file -N "Bug Buddy" -G "Bug Report Tool" -r bug-buddy System Feedback GNOME
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/bug-buddy
%{_datadir}/applications/*.desktop
%{_datadir}/bug-buddy
%{_datadir}/icons/hicolor/*/apps/bug-buddy.*
%dir %{_datadir}/icons/HighContrastLargePrint
%dir %{_datadir}/icons/HighContrastLargePrint/48x48
%dir %{_datadir}/icons/HighContrastLargePrint/48x48/apps
%{_datadir}/icons/HighContrastLargePrint/*/apps/bug-buddy.png
%doc %{_mandir}/man?/*.*
%{_libdir}/gtk-2.0/modules/*
# google breakpad only works on i386 at the moment
%ifarch %ix86
%{_bindir}/minidump_*
%dir %{_libdir}/bug-buddy
%{_libdir}/bug-buddy/libbreakpad.*
%endif

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by