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.4.1
-Release: 1
-License: GPL
+Version: 2.20.0
+Release: 2
+License: GPL v2
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.4/%{name}-%{version}.tar.bz2
-# Source0-md5: 8965333fe4f96982b4d77367c50d53ce
+Source0: http://ftp.gnome.org/pub/GNOME/sources/bug-buddy/2.20/%{name}-%{version}.tar.bz2
+# Source0-md5: bce8b08a14d123ecfeefb3902031d773
+Patch0: %{name}-desktop.patch
URL: http://www.gnome.org/
-BuildRequires: gnome-vfs2-devel >= 2.2.0
-BuildRequires: libglade2-devel
-BuildRequires: libgnomecanvas-devel >= 2.4.0
-BuildRequires: libgnomeui-devel
-BuildRequires: libxml2-devel
-BuildRequires: scrollkeeper
-BuildRequires: gnome-desktop
+BuildRequires: GConf2-devel >= 2.19.1
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: evolution-data-server-devel >= 1.12.0
+BuildRequires: gettext-devel
+BuildRequires: gnome-desktop-devel >= 2.20.0
+BuildRequires: gnome-doc-utils >= 0.12.0
+BuildRequires: gnome-menus-devel >= 2.20.0
+BuildRequires: gnome-vfs2-devel >= 2.20.0
+BuildRequires: gtk+2-devel >= 2:2.12.0
+BuildRequires: intltool >= 0.36.2
+BuildRequires: libglade2-devel >= 1:2.6.2
+BuildRequires: libgnomeui-devel >= 2.19.1
+BuildRequires: libgtop-devel >= 2.14.8
+BuildRequires: libxml2-devel >= 1:2.6.30
+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.19.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
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
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+
+mv $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/libgnomebreakpad.so{.*.*.*,}
+rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/libgnomebreakpad.{l,}a
+rm -rf $RPM_BUILD_ROOT%{_libdir}/bug-buddy/libbreakpad.{l,}a
+rm -rf $RPM_BUILD_ROOT%{_docdir}/breakpad-0.1
%find_lang %{name} --with-gnome --all-name
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /usr/bin/scrollkeeper-update
-%postun -p /usr/bin/scrollkeeper-update
+%post
+/sbin/ldconfig
+%gconf_schema_install bug-buddy.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+%update_icon_cache hicolor
+
+%preun
+%gconf_schema_uninstall bug-buddy.schemas
+
+%postun
+/sbin/ldconfig
+%scrollkeeper_update_postun
+%update_desktop_database_postun
+%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO docs/multiple_bts.txt
+%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%{_datadir}/application-registry/*
-%{_datadir}/bug-buddy
-%{_datadir}/mime-info/*
-%{_desktopdir}/*
-%{_pixmapsdir}/*
-%{_omf_dest_dir}/*
+%ifarch %{ix86}
+%dir %{_libdir}/bug-buddy
+%attr(755,root,root) %{_libdir}/bug-buddy/libbreakpad.so.*.*.*
+%endif
+%attr(755,root,root) %{_libdir}/gtk-2.0/modules/libgnomebreakpad.so
+%{_datadir}/%{name}
+%{_desktopdir}/*.desktop
+%{_iconsdir}/hicolor/*/*/bug-buddy.png
+%{_sysconfdir}/gconf/schemas/bug-buddy.schemas