File abcde.spec of Package abcde

#
# spec file for package abcde
#
# 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/
#

# norootforbuild


Name:           abcde
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Utilities
Version:        2.3.99.6
Release:        66
Summary:        A Better CD Encoder
Url:            http://www.hispalinux.es/~data/abcde.php
Source0:        http://www.hispalinux.es/~data/files/%{name}_%{version}.orig.tar.gz
Source1:        http://lly.org/~rcw/cd-discid/cd-discid_0.9.orig.tar.gz
# bug 419800
Patch0:         abcde_2.3.99.6-quote.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       cd-discid
Requires:       wget cdparanoia vorbis-tools
Recommends:     id3v2

%description
A front-end program to cdparanoia, wget, cd-discid, id3, and your
favorite Ogg or MP3 encoder (defaults to oggenc). Grabs an entire CD
and converts each track to Ogg or MP3 then comments or ID3 tags each
file with one command.



Authors:
--------
    Robert Woodcock <rcw@debian.org>
    Jesus Climent <jesus.climent@hispalinux.es>

%prep
%setup -a 1
%patch0

%build
export CFLAGS="$RPM_OPT_FLAGS"
gcc $CFLAGS cd-discid*/*.c -o cd-discid

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
install -m 755 cd-discid $RPM_BUILD_ROOT/usr/bin
install -m 755 abcde $RPM_BUILD_ROOT/usr/bin
install -m 755 cddb-tool $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
cp *.1 cd-discid*/*.1 $RPM_BUILD_ROOT%_mandir/man1
mkdir -p $RPM_BUILD_ROOT/etc
cp abcde.conf $RPM_BUILD_ROOT/etc
mv cd-discid*/README README.cd-discid

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO COPYING README.cd-discid
%doc %{_mandir}/man1/*
%{_bindir}/*
%config(noreplace) /etc/abcde.conf

%changelog