File libmpcdec.spec of Package libmpcdec

#
# spec file for package libmpcdec
#
# Copyright (c) 2012 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:           libmpcdec
Version:        1.2.6
Release:        0
Url:            http://www.musepack.net/
Summary:        Musepack Audio Decoder
License:        BSD-3-Clause
Group:          System/Libraries
Source:         http://files2.musepack.net/source/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         libmpcdec-1.2.6-nosamples.patch
Patch1:         libmpcdec-byteswap.patch
BuildRequires:  gcc-c++
BuildRequires:  libtool

%description
Musepack is an audio compression format with a strong emphasis on high
quality. It is not lossless, but it is designed for transparency, so
that you cannot hear differences between the original WAV file and the
much smaller MPC file.

It is based on the MPEG-1 Layer-2 / MP2 algorithms, but since 1997 it
has rapidly developed and vastly improved and is now at an advanced
stage in which it contains heavily optimized and patentless code.

Musepack is not particularly optimized for low bit rates. The encoder
was designed to be transparent at the --standard setting, thus little
low bit rate tuning has gone into the codec, unlike that of AAC,
Vorbis, WMA, and others that focus more on this region.



Authors:
--------
    Andree Buschmann
    Frank Klemm
    Peter Pawlowski
    Benoit Amiaux
    Miles Egan

%package -n libmpcdec5
Summary:        Musepack Audio Decoder
Group:          System/Libraries
Provides:       %{name} = %{version}
#openSUSE 10.2
Obsoletes:      %{name} < %{version}

%description -n libmpcdec5
Musepack is an audio compression format with a strong emphasis on high
quality. It is not lossless, but it is designed for transparency, so
that you cannot hear differences between the original WAV file and the
much smaller MPC file.

It is based on the MPEG-1 Layer-2 / MP2 algorithms, but since 1997 it
has rapidly developed and vastly improved and is now at an advanced
stage in which it contains heavily optimized and patentless code.

Musepack is not particularly optimized for low bit rates. The encoder
was designed to be transparent at the --standard setting, thus little
low bit rate tuning has gone into the codec, unlike that of AAC,
Vorbis, WMA, and others that focus more on this region.



Authors:
--------
    Andree Buschmann
    Frank Klemm
    Peter Pawlowski
    Benoit Amiaux
    Miles Egan

%package devel
Summary:        Musepack Audio Decoder
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       libmpcdec5 = %{version}

%description devel
Musepack is an audio compression format with a strong emphasis on high
quality. It's not lossless, but it is designed for transparency, so
that you won't be able to hear differences between the original wave
file and the much smaller MPC file.

It is based on the MPEG-1 Layer-2 / MP2 algorithms, but since 1997 it
has rapidly developed and vastly improved and is now at an advanced
stage in which it contains heavily optimized and patentless code.

Musepack is not particularly optimized for low bitrates. The encoder
was designed to be transparent at the --standard setting, thus little
low bitrate tuning has gone into the codec, opposite to that of AAC,
Vorbis, WMA and others which focus more on this region.



Authors:
--------
    Andree Buschmann
    Frank Klemm
    Peter Pawlowski
    Benoit Amiaux
    Miles Egan

%prep
%setup -q
%patch0
%patch1
%build
autoreconf -fi
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
#empty dependency_libs
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
%{__rm} -rf %{buildroot}

%post -n libmpcdec5 -p /sbin/ldconfig

%postun -n libmpcdec5 -p /sbin/ldconfig

%files -n libmpcdec5
%defattr (-, root, root)
%{_libdir}/*.so.5*

%files devel
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/*.so
%dir %{_includedir}/mpcdec
%{_includedir}/mpcdec/*.h

%changelog
openSUSE Build Service is sponsored by