+# TODO
+# fix stupid .desktop breakage
+#
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
Name: bug-buddy
-Version: 2.6.0
-Release: 1
-License: GPL
+Version: 2.15.90
+Release: 2
+License: GPL v2
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: 27e9dfa28e7639a15a42c31794f0c510
-Patch0: %{name}-locale-names.patch
+Source0: http://ftp.gnome.org/pub/gnome/sources/bug-buddy/2.15/%{name}-%{version}.tar.bz2
+# Source0-md5: 38c092ad09b5b1a9dae04beb35311234
+Patch0: %{name}-desktop.patch
URL: http://www.gnome.org/
-BuildRequires: GConf2-devel
+BuildRequires: GConf2-devel >= 2.14.0
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: glib2-devel >= 2.4.0
-BuildRequires: gtk+2-devel >= 2:2.4.0
-BuildRequires: gnome-desktop-devel >= 2.5.90
-BuildRequires: gnome-vfs2-devel >= 2.6.0
-BuildRequires: intltool >= 0.29
-BuildRequires: libglade2-devel >= 2.3.6
-BuildRequires: libgnomeui-devel >= 2.6.0
-BuildRequires: libxml2-devel >= 2.4.6
+BuildRequires: evolution-data-server-devel >= 1.7.90.1
+BuildRequires: gettext-devel
+BuildRequires: gnome-desktop-devel >= 2.15.90
+BuildRequires: gnome-doc-utils >= 0.7.1
+BuildRequires: gnome-menus-devel >= 2.15.90
+BuildRequires: gnome-vfs2-devel >= 2.15.90
+BuildRequires: gtk+2-devel >= 2:2.10.1
+BuildRequires: intltool >= 0.35
+BuildRequires: libglade2-devel >= 1:2.6.0
+BuildRequires: libgnomeui-devel >= 2.15.90
+BuildRequires: libgtop-devel >= 2.14.1
+BuildRequires: libxml2-devel >= 1:2.6.26
+BuildRequires: libxslt-progs >= 1.1.17
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: scrollkeeper >= 0.3.8
-Requires(post): GConf2
-Requires(post): scrollkeeper
+Requires(post,preun): GConf2 >= 2.14.0
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): scrollkeeper
+Requires(post,postun): gtk+2 >= 2.10.1
+Requires: libgnomeui >= 2.15.90
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%setup -q
%patch0 -p1
-mv po/{no,nb}.po
-
%build
-glib-gettextize --copy --force
-intltoolize --copy --force
+%{__glib_gettextize}
+%{__intltoolize}
+%{__gnome_doc_common}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
- --disable-schemas-install
-
+ --disable-schemas-install \
+ --disable-scrollkeeper
%{__make}
%install
DESTDIR=$RPM_BUILD_ROOT \
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/{no,ug}
+
%find_lang %{name} --with-gnome --all-name
%clean
rm -rf $RPM_BUILD_ROOT
%post
-/usr/bin/scrollkeeper-update
-%gconf_schema_install
+%gconf_schema_install bug-buddy.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+%update_icon_cache hicolor
-%postun -p /usr/bin/scrollkeeper-update
+%preun
+%gconf_schema_uninstall bug-buddy.schemas
+
+%postun
+%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
%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%{_datadir}/application-registry/*
%{_datadir}/%{name}
-%{_datadir}/mime-info/*
%{_desktopdir}/*
-%{_pixmapsdir}/*
+%{_iconsdir}/hicolor/*/*/bug-buddy.png
+%{_mandir}/man1/*
%{_omf_dest_dir}/*
-%{_sysconfdir}/gconf/schemas/*
+%{_sysconfdir}/gconf/schemas/bug-buddy.schemas