File rubyripper.spec of Package rubyripper

# spec file for package rubyripper
# Copyright (c) 2015 SUSE LINUX 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

%define ruby_version 2.1

Name:           rubyripper
Version:        2017.09.07.git.1ca0202
Release:        0
License:        GPL-3.0
Summary:        Secure Audiodisc Ripper
Group:          Productivity/Multimedia/CD/Grabbers
BuildRequires:  ImageMagick
BuildRequires:  cdparanoia
BuildRequires:  hicolor-icon-theme
BuildRequires:  ruby%{ruby_version}
BuildRequires:  update-desktop-files
BuildRequires:  ruby%{ruby_version}-rubygem-gettext
Requires:       abcde
Requires:       cdparanoia
Requires:       eject
Requires:       flac
Requires:       ruby%{ruby_version}
Requires:       vorbis-tools
Requires:       ruby%{ruby_version}-rubygem-gettext
Recommends:     lame
Recommends:     mp3gain
Recommends:     normalize
Recommends:     vorbisgain
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Rubyripper is a digital audio extraction algorithm that uses cdparanoia
in a sophisticated way to make sure that a CD rip is done successfully
and accurately. It is very similar to and inspired by EAC.

# Don't build GUI noarch! It depends on ruby libs path.
%package gui
Summary:        GTK Front-end for rubyripper
Group:          Productivity/Multimedia/CD/Grabbers
Requires:       %{name} = %{version}
Requires:       ruby-gtk2

%description gui
GTK graphical interface for the rubyripper secure audio extraction tool.

%setup -q

./configure \
    --prefix=%{_prefix} \
    --enable-cli \

for size in 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
    convert -resize ${size} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png \
%suse_update_desktop_file -r %{name} AudioVideo CD



%doc GPL-3.txt

%files gui