Summary: CD ripper
-Summary(pl): Ripper p³yt CD
+Summary(pl.UTF-8): Ripper płyt CD
Name: sound-juicer
-Version: 0.2
+Version: 2.23.3
Release: 1
-License: GPL
+License: GPL v2+
Group: X11/Applications/Multimedia
-Source0: http://www.burtonini.com/computing/%{name}-%{version}.tar.gz
-# Source0-md5: 3a7e4e8f4ba889fd0ab5588660c87fe6
-URL: http://www.burtonini.com
-BuildRequires: GConf2-devel
-BuildRequires: gtk+2-devel
-BuildRequires: gstreamer-cdparanoia >= 0.6.0
-BuildRequires: gstreamer-devel >= 0.6.0
-BuildRequires: gstreamer-vorbis >= 0.6.0
-BuildRequires: libglade2-devel
-BuildRequires: libgnomeui-devel
-BuildRequires: libmusicbrainz-devel >= 2.0.0
-Requires: gstreamer-cdparanoia >= 0.6.0
-Requires: gstreamer-vorbis >= 0.6.0
-Requires(post): GConf2
+Source0: http://ftp.gnome.org/pub/GNOME/sources/sound-juicer/2.23/%{name}-%{version}.tar.bz2
+# Source0-md5: 5507bcdc6051d520c6a7aa150c2f48ba
+# http://bugzilla.gnome.org/show_bug.cgi?id=552090
+Patch0: %{name}-desktop.patch
+URL: http://www.burtonini.com/blog/computers/sound-juicer/
+BuildRequires: GConf2-devel >= 2.22.0
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1:1.9
+BuildRequires: gnome-common >= 2.20.0
+BuildRequires: gnome-doc-utils
+BuildRequires: dbus-glib-devel >= 0.74
+BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.16.0
+BuildRequires: gnome-doc-utils >= 0.12.1
+BuildRequires: gnome-media-devel >= 2.22.0
+BuildRequires: gstreamer-plugins-base-devel >= 0.10.10
+BuildRequires: gtk+2-devel >= 2:2.12.8
+BuildRequires: intltool >= 0.40.0
+BuildRequires: libcdio-devel >= 0.70
+BuildRequires: libglade2-devel >= 1:2.6.2
+BuildRequires: libgnomeui-devel >= 2.22.0
+BuildRequires: taglib-devel
+BuildRequires: libmusicbrainz-devel >= 2.1.3
+BuildRequires: libtool
+BuildRequires: nautilus-cd-burner-devel >= 2.22.0
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: scrollkeeper >= 0.3.5
+BuildRequires: sed >= 4.0
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
+Requires(post,postun): scrollkeeper
+Requires(post,preun): GConf2
+Requires: gstreamer-cdparanoia >= 0.10.10
+Requires: libgnomeui >= 2.22.0
+Requires: nautilus-cd-burner-libs >= 2.22.0
+Suggests: gstreamer-audio-formats
+Suggests: gstreamer-flac
+Suggests: gstreamer-lame
+Suggests: gstreamer-taglib
+Suggests: gstreamer-vorbis
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Sound Juicer, a CD ripping tool using GTK+ and GStreamer.
-%description -l pl
-Sound Juicer, ripper p³yt CD u¿ywaj±cy GTK+ i GStreamera.
+%description -l pl.UTF-8
+Sound Juicer, ripper płyt CD używający GTK+ i GStreamera.
%prep
%setup -q
+%patch0 -p1
%build
+%{__gnome_doc_prepare}
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
- --disable--schemas-install
-
+ --disable-schemas-install \
+ --disable-scrollkeeper
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+ DESTDIR=$RPM_BUILD_ROOT \
+ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
-%find_lang %{name} --with-gnome
+%find_lang %{name} --with-gnome --with-omf
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%gconf_schema_install
+%gconf_schema_install sound-juicer.schemas
+%scrollkeeper_update_post
+%update_icon_cache hicolor
+
+%preun
+%gconf_schema_uninstall sound-juicer.schemas
+
+%postun
+%scrollkeeper_update_postun
+%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_sysconfdir}/gconf/schemas/*
+%attr(755,root,root) %{_bindir}/sound-juicer
%{_datadir}/%{name}
-%{_datadir}/applications/*
-%{_pixmapsdir}/*
+%{_mandir}/man1/sound-juicer.1*
+%{_desktopdir}/sound-juicer.desktop
+%{_iconsdir}/hicolor/*/apps/*
+%{_sysconfdir}/gconf/schemas/sound-juicer.schemas