+#
+# Conditinal build:
+%bcond_without beagle # disable beagle search
+#
Summary: Disc burning application for GNOME
-Summary(pl): Program do wypalania dysków dla GNOME
-Name: bonfire
-Version: 0.3.1
-Release: 1
+Summary(pl.UTF-8): Program do wypalania płyt dla GNOME
+Name: brasero
+Version: 0.6.1
+Release: 0.1
License: GPL v2
Group: X11/Applications
-Source0: http://perso.wanadoo.fr/bonfire/%{name}-%{version}.tar.bz2
-# Source0-md5: db94c7ae5ac5c27cf7d66fafc3654f4f
+Source0: http://ftp.gnome.org/pub/GNOME/sources/brasero/0.6/%{name}-%{version}.tar.bz2
+# Source0-md5: fa3b59f06b93bd831805a73a81f3293f
Patch0: %{name}-desktop.patch
-URL: http://perso.wanadoo.fr/bonfire/
-BuildRequires: beagle-devel >= 0.1.0
+URL: http://www.gnome.org/projects/brasero/
+BuildRequires: autoconf
+BuildRequires: automake
+%{?with_beagle:BuildRequires: beagle-devel >= 0.1.0}
BuildRequires: dbus-glib-devel >= 0.30
BuildRequires: gdl-devel >= 0.6.0
BuildRequires: gnome-vfs2-devel >= 2.12.0
BuildRequires: intltool >= 0.25
BuildRequires: libgnomeui-devel >= 2.10.0
BuildRequires: libnotify-devel >= 0.3.0
+BuildRequires: libselinux-devel
+BuildRequires: libtool
BuildRequires: libxml2-devel >= 2.6.0
BuildRequires: nautilus-cd-burner-devel >= 2.12.0
BuildRequires: pkgconfig
BuildRequires: totem-devel >= 1.2.0
Requires(post,postun): desktop-file-utils
+Requires(post,postun): hicolor-icon-theme
Requires: hal >= 0.5
+Obsoletes: bonfire
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Bonfire is a CD/DVD mastering tool for the GNOME desktop.
+Brasero is a CD/DVD mastering tool for the GNOME desktop.
It is designed to be simple and easy to use.
-%description -l pl
-Bonfire jest narzêdziem do masteringu p³yt CD/DVD dla biurka
-GNOME. Jest zaprojektowany by byæ prostym i ³atwym w obs³udze.
+%description -l pl.UTF-8
+Brasero jest narzędziem do masteringu płyt CD/DVD dla biurka
+GNOME. Jest zaprojektowany by być prostym i łatwym w obsłudze.
%prep
%setup -q
%patch0 -p1
%build
-%configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ %{!?with_beagle:--disable-search} \
+ --disable-caches
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%post
+%gconf_schema_install brasero.schemas
%update_desktop_database_post
+%update_mime_database
+%update_icon_cache hicolor
%postun
+%gconf_schema_uninstall brasero.schemas
%update_desktop_database_postun
+%update_mime_database
+%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO.tasks
+%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
+%{_datadir}/mime/packages/%{name}.xml
%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.png
+%{_iconsdir}/hicolor/*/*/*.png
+%{_iconsdir}/hicolor/*/*/*.svg
+%{_mandir}/man1/*
+%{_sysconfdir}/gconf/schemas/*