+# TODO: check build/functionality with new libburn+libisofs
#
# Conditinal build:
%bcond_without beagle # disable beagle search
Summary: Disc burning application for GNOME
Summary(pl.UTF-8): Program do wypalania płyt dla GNOME
Name: brasero
-Version: 0.6.1
-Release: 0.1
+Version: 0.8.2
+Release: 3
License: GPL v2+
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/GNOME/sources/brasero/0.6/%{name}-%{version}.tar.bz2
-# Source0-md5: fa3b59f06b93bd831805a73a81f3293f
-Patch0: %{name}-desktop.patch
-Patch1: %{name}-intltool.patch
+Source0: http://ftp.gnome.org/pub/GNOME/sources/brasero/0.8/%{name}-%{version}.tar.bz2
+# Source0-md5: a15a8176e17c7b25315fc6097206b032
URL: http://www.gnome.org/projects/brasero/
+BuildRequires: GConf2-devel >= 2.0.0
BuildRequires: autoconf
BuildRequires: automake
-%{?with_beagle:BuildRequires: beagle-devel >= 0.1.1}
-BuildRequires: gnome-vfs2-devel >= 2.14.2
-BuildRequires: gstreamer-devel >= 0.10.6
+BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.16.0
+BuildRequires: gnome-doc-utils
+BuildRequires: gstreamer-devel >= 0.10.15
BuildRequires: gstreamer-plugins-base-devel >= 0.10.0
-BuildRequires: gtk+2-devel >= 2:2.10.0
+BuildRequires: gtk+2-devel >= 2:2.12.0
BuildRequires: hal-devel >= 0.5
-BuildRequires: intltool >= 0.35.0
+BuildRequires: intltool >= 0.40.0
+%{?with_beagle:BuildRequires: libbeagle-devel >= 0.3.0}
+BuildRequires: libburn-devel >= 0.4.0
BuildRequires: libgnomeui-devel >= 2.10.0
-BuildRequires: libnotify-devel >= 0.3.0
+BuildRequires: libisofs-devel >= 0.6.4
BuildRequires: libtool
BuildRequires: libxml2-devel >= 1:2.6.0
-BuildRequires: nautilus-cd-burner-devel >= 2.12.0
BuildRequires: pkgconfig
-BuildRequires: totem-devel >= 1.2.0
-# libburn >= 0.3.4, libisofs >= 0.2.8
+BuildRequires: rpmbuild(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: totem-pl-parser-devel >= 2.22.0
Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk+2
Requires(post,postun): hicolor-icon-theme
+Requires(post,preun): GConf2
Requires: hal >= 0.5
+Suggests: dvd+rw-tools
Obsoletes: bonfire
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Brasero is a CD/DVD mastering tool for the GNOME desktop.
-It is designed to be simple and easy to use.
+Brasero is a CD/DVD mastering tool for the GNOME desktop. It is
+designed to be simple and easy to use.
%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.
+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
-%patch1 -p1
%build
%{__libtoolize}
+%{__intltoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
%{!?with_beagle:--disable-search} \
- --disable-caches
+ --disable-caches \
+ --disable-schemas-install
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{name} --all-name
+%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/brasero/plugins/lib*.la
+
+[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
+ mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
+%find_lang %{name} --with-gnome --with-omf
%clean
rm -rf $RPM_BUILD_ROOT
%update_mime_database
%update_icon_cache hicolor
-%postun
+%preun
%gconf_schema_uninstall brasero.schemas
+
+%postun
%update_desktop_database_postun
%update_mime_database
%update_icon_cache hicolor
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
+%dir %{_libdir}/brasero
+%dir %{_libdir}/brasero/plugins
+%attr(755,root,root) %{_libdir}/brasero/plugins/lib*.so
%{_desktopdir}/*.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/*/*/*.svg
%{_mandir}/man1/*
-%{_sysconfdir}/gconf/schemas/*
+%{_sysconfdir}/gconf/schemas/brasero.schemas