File sound-juicer.spec of Package sound-juicer
#
# spec file for package sound-juicer
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: sound-juicer
Version: 2.32.0
Release: 11
License: GPLv2+
Summary: Clean and Lean GNOME CD Ripper
Url: http://www.burtonini.com/blog/computers/sound-juicer/
Group: Productivity/Multimedia/CD/Grabbers
Source0: ftp://ftp.gnome.org/pub/gnome/sources/sound-juicer/2.32/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM sound-juicer-g3.patch dimstar@opensuse.org -- Fix build against GNOME3, patches collected from git. Contain all relevant fixes until d548a011 (May 23 2011)
Patch0: sound-juicer-g3.patch
BuildRequires: brasero-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
# Needed for Patch0
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: gstreamer010-plugins-base-devel
BuildRequires: gstreamer010-plugins-good
BuildRequires: intltool
BuildRequires: libcanberra-devel
BuildRequires: libmusicbrainz3-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libgnome-media-profiles-3.0)
Requires: gstreamer010-plugins-good
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
GStreamer-based CD ripping tool. Saves audio CDs to Ogg/vorbis.
%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build
NOCONFIGURE=1 ./autogen.sh
%configure\
--disable-schemas-install\
--disable-scrollkeeper
make %{?_smp_mflags}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file %{name} AudioVideo Player Audio
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%icon_theme_cache_post
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.*
%{_datadir}/sound-juicer
%doc %{_mandir}/man1/sound-juicer.1.gz
%files lang -f %{name}.lang
%changelog