+# Conditional build
+%bcond_without hal # disable HAL support
+#
Summary: CD ripper
Summary(pl): Ripper p³yt CD
Name: sound-juicer
-Version: 0.5.12
+Version: 0.5.13
Release: 1
License: GPL
Group: X11/Applications/Multimedia
Source0: http://www.burtonini.com/computing/%{name}-%{version}.tar.gz
-# Source0-md5: 5ad2cbb1acb91d51d2a67f14d552ae4e
-Patch0: %{name}-locale-names.patch
-Patch1: %{name}-devfs.patch
+# Source0-md5: 0b3fcd80d91c78153961378b5c2f01a3
+Patch0: %{name}-hal_build_fixes.patch
URL: http://www.burtonini.com/blog/computers/sound-juicer/
BuildRequires: GConf2-devel
BuildRequires: autoconf
BuildRequires: gstreamer-cdparanoia >= 0.8.1
BuildRequires: gstreamer-devel >= 0.8.3
BuildRequires: gstreamer-vorbis >= 0.8.1
+%{?with_hal:BuildRequires: hal-devel >= 0.2.98}
Buildrequires: intltool >= 0.20
BuildRequires: libglade2-devel
BuildRequires: libgnomeui-devel
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-
-mv po/{no,nb}.po
%build
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
- --disable--schemas-install
+ --disable--schemas-install \
+ --%{?with_hal:en}%{!?with_hal:dis}able-hal
%{__make}
DESTDIR=$RPM_BUILD_ROOT \
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+
%find_lang %{name} --with-gnome
%clean