Summary: Utility to ease the reporting of bugs within the GNOME
-Summary(pl): Narzêdzie u³atwiaj±ce zg³aszanie b³êdów w ¶rodowisku GNOME
+Summary(pl.UTF-8): Narzędzie ułatwiające zgłaszanie błędów w środowisku GNOME
Name: bug-buddy
-Version: 2.2.0
+Version: 2.18.0
Release: 1
-License: GPL
+License: GPL v2
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/GNOME/2.0.0/releases/gnome-2.0-desktop-final/%{name}-%{version}.tar.bz2
+Source0: http://ftp.gnome.org/pub/gnome/sources/bug-buddy/2.18/%{name}-%{version}.tar.bz2
+# Source0-md5: 3b3d99f2450f300d73a201bc5c00498d
+Patch0: %{name}-desktop.patch
URL: http://www.gnome.org/
-BuildRequires: scrollkeeper
-BuildRequires: libgnomeui-devel
-BuildRequires: gnome-vfs2-devel >= 1.9.1
-BuildRequires: libgnomecanvas-devel
-BuildRequires: libglade2-devel
-BuildRequires: libxml2-devel
-Prereq: scrollkeeper
+BuildRequires: GConf2-devel >= 2.18.0.1
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: evolution-data-server-devel >= 1.10.0
+BuildRequires: gettext-devel
+BuildRequires: gnome-desktop-devel >= 2.18.0
+BuildRequires: gnome-doc-utils >= 0.10.1
+BuildRequires: gnome-menus-devel >= 2.17.92
+BuildRequires: gnome-vfs2-devel >= 2.18.0.1
+BuildRequires: gtk+2-devel >= 2:2.10.9
+BuildRequires: intltool >= 0.35.5
+BuildRequires: libglade2-devel >= 1:2.6.0
+BuildRequires: libgnomeui-devel >= 2.18.0
+BuildRequires: libgtop-devel >= 2.14.8
+BuildRequires: libxml2-devel >= 1:2.6.27
+BuildRequires: libxslt-progs >= 1.1.20
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: scrollkeeper >= 0.3.8
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): scrollkeeper
+Requires(post,preun): GConf2
+Requires: libgnomeui >= 2.18.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
-%define _sysconfdir /etc/X11/GNOME2
-%define _localstatedir /var
-%define _omf_dest_dir %(scrollkeeper-config --omfdir)
-
%description
bug-buddy is a druid based tool which steps you through the GNOME bug
submission process. It can automatically obtain stack traces from core
files or crashed applications. Debian and KDE bug tracking systems are
also supported.
-%description -l pl
-bug-budy jest narzêdziem przeprowadzaj±cym Ciê przez proces sk³adania
-raportu o b³êdzie w ¶rodowisku GNOME. Potrafi on automatycznie uzyskaæ
-¶lady ze stosu (backtrace) z plików core lub wywracaj±cych siê
-aplikacji. Wspierane s± równie¿ systemy obs³ugi b³êdów Debiana oraz
+%description -l pl.UTF-8
+bug-budy jest narzędziem przeprowadzającym Cię przez proces składania
+raportu o błędzie w środowisku GNOME. Potrafi on automatycznie uzyskać
+ślady ze stosu (backtrace) z plików core lub wywracających się
+aplikacji. Wspierane są również systemy obsługi błędów Debiana oraz
KDE.
%prep
%setup -q
+%patch0 -p1
%build
-%configure
+%{__glib_gettextize}
+%{__intltoolize}
+%{__gnome_doc_common}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --disable-schemas-install \
+ --disable-scrollkeeper
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_applnkdir}/Help
-
-%{__make} DESTDIR=$RPM_BUILD_ROOT install \
- omf_dest_dir=%{_omf_dest_dir}/%{name}
-
-install src/*.desktop $RPM_BUILD_ROOT%{_applnkdir}/Help
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%find_lang %{name} --with-gnome --all-name
-%post -p /usr/bin/scrollkeeper-update
-%postun -p /usr/bin/scrollkeeper-update
-
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f %{name}.lang
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%post
+%gconf_schema_install bug-buddy.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+%update_icon_cache hicolor
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%preun
+%gconf_schema_uninstall bug-buddy.schemas
-%{_applnkdir}/*/*.desktop
+%postun
+%scrollkeeper_update_postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
-%{_datadir}/application-registry/*.*
-%{_datadir}/applications/*.*
-%{_datadir}/bug-buddy
-%{_datadir}/mime-info/*
-%{_pixmapsdir}/*
-%{_omf_dest_dir}/%{name}
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}
+%{_desktopdir}/*.desktop
+%{_iconsdir}/hicolor/*/*/bug-buddy.png
+%{_sysconfdir}/gconf/schemas/bug-buddy.schemas