File cdparanoia.spec of Package cdparanoia

#
# spec file for package cdparanoia
#
# Copyright (c) 2013 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:           cdparanoia
# bug437293
%ifarch ppc64
Obsoletes:      cdparanoia-64bit
%endif
#
Version:        3.10.2
Release:        0
Summary:        A Program for Extracting, Verifying, and Fixing Audio Tracks from CDs
License:        GPL-2.0+
Group:          Productivity/Multimedia/CD/Grabbers
Url:            http://www.xiph.org/paranoia/index.html
%define	        filever					 III-10.2
Source:         http://downloads.xiph.org/releases/%{name}/%{name}-%{filever}.src.tgz
Source2:        baselibs.conf
Patch1:         010_build_system.patch
Patch2:         cdparanoia-III-ide_majors.patch
Patch3:         cdparanoia-III-c++.patch
Patch4:         050_all_build_only_shared_libraries.patch
Patch10:        cdparanoia-III-01-typos-and-spelling.dpatch
Patch11:        cdparanoia-III-05-gcc4.3.dpatch
Patch12:        cdparanoia-III-06-endian.dpatch
Patch14:        config-guess-sub-update.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Provides:       cdparano = %{version}
Obsoletes:      cdparano < %{version}
BuildRequires:  autoconf
BuildRequires:  automake

%package -n libcdda_interface0
Summary:        Extracting, Verifying, and Fixing Audio Tracks from CDs - runtime library
Group:          System/Libraries
Suggests:       ImageMagick-extra = %{version}

%package -n libcdda_paranoia0
Summary:        Extracting, Verifying, and Fixing Audio Tracks from CDs - runtime library
Group:          System/Libraries

%package devel
Summary:        Include Files and Libraries Mandatory for Development
Group:          Development/Libraries/C and C++
Requires:       libcdda_interface0 = %{version}
Requires:       libcdda_paranoia0 = %{version}

%description
This CDDA reader distribution ('cdparanoia') reads audio from the
CD-ROM directly as data and writes the data to a file or pipe as .wav,
.aifc, or raw 16-bit linear PCM.

This is a beta release. See http://www.xiph.org/paranoia/.

%description devel
This CDDA reader distribution ('cdparanoia') reads audio from the
CD-ROM directly as data and writes the data to a file or pipe as .wav,
.aifc, or raw 16-bit linear PCM.

This is a beta release. See http://www.xiph.org/paranoia/.

%description -n libcdda_interface0
This CDDA reader distribution ('cdparanoia') reads audio from the
CD-ROM directly as data and writes the data to a file or pipe as .wav,
.aifc, or raw 16-bit linear PCM.

This is a beta release. See http://www.xiph.org/paranoia/.

%description -n libcdda_paranoia0
This CDDA reader distribution ('cdparanoia') reads audio from the
CD-ROM directly as data and writes the data to a file or pipe as .wav,
.aifc, or raw 16-bit linear PCM.

This is a beta release. See http://www.xiph.org/paranoia/.

%prep
%setup -q -n cdparanoia-%{filever}
%patch1 -p1
%patch2
%patch3
%patch4
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch14

%build
autoreconf -vi
%configure
make OPT="%{optflags}" %{?_smp_mflags}

%install
make prefix=%{buildroot}%{_prefix} \
     LIBDIR=%{buildroot}%{_libdir} \
     MANDIR=%{buildroot}%{_mandir} \
     BINDIR=%{buildroot}%{_bindir} \
     INCLUDEDIR=%{buildroot}%{_includedir} \
       install
JAPN_MANDIR=%{buildroot}%{_mandir}/ja/man1
mkdir -p $JAPN_MANDIR
install -m644 cdparanoia.1.jp $JAPN_MANDIR/cdparanoia.1

%post -n libcdda_interface0 -p /sbin/ldconfig

%postun -n libcdda_interface0 -p /sbin/ldconfig

%post -n libcdda_paranoia0 -p /sbin/ldconfig

%postun -n libcdda_paranoia0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README COPYING*
%{_mandir}/man1/*
%{_mandir}/ja
%{_bindir}/*

%files -n libcdda_interface0
%defattr(-,root,root)
%{_libdir}/libcdda_interface.so.0
%{_libdir}/libcdda_interface.so.0.*

%files -n libcdda_paranoia0
%defattr(-,root,root)
%{_libdir}/libcdda_paranoia.so.0
%{_libdir}/libcdda_paranoia.so.0.*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.so

%changelog
openSUSE Build Service is sponsored by