File bug-buddy.spec of Package bug-buddy

#
# spec file for package bug-buddy
#
# Copyright (c) 2011 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/
#



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:  libbonobo-devel
BuildRequires:  libelf-devel
BuildRequires:  libgtop-devel
BuildRequires:  libsoup-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        GPL-2.0+
Group:          System/GUI/GNOME
Version:        2.32.0
Release:        2
Recommends:     %{name}-lang
Summary:        The GNOME Desktop Bug Reporting Tool
Source:         ftp://ftp.gnome.org/pub/gnome/sources/bug-buddy/2.23/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
Url:            http://www.gnome.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       gdb
%gconf_schemas_prereq

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

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

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

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file -N "Bug Buddy" -G "Bug Report Tool" -r bug-buddy System Feedback GNOME
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrastLargePrint

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrastLargePrint

%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.*
# When removing the HighContrastLargePrint icon theme icons, don't forget to remove the %%icon_theme_cache_post(un) call for them
%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/*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by