File libmpcdec.spec of Package libmpcdec

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

%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
License:        BSD 3-Clause
Group:          System/Libraries
Summary:        Musepack Audio Decoder
Provides:       %{name} = %{version}
#openSUSE 10.2
Obsoletes:      %{name} <= 1.2.6

%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
License:        BSD 3-Clause
Group:          Development/Libraries/C and C++
Summary:        Musepack Audio Decoder
Requires:       libmpcdec5 = %{version} glibc-devel

%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

%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
* Thu Aug 16 2007 crrodriguez@suse.de
- fixes build on ia-64 only useless and unpackaged sample
  requires g++ for build (libmpcdec-1.2.6-nosamples.patch)
* Mon Aug 13 2007 crrodriguez@suse.de
- remove static libraries
- remove libtool archive with empty dependency_libs
- add missing glibc-devel dependency on -devel package
* Mon Jul 30 2007 ro@suse.de
- provide old name
* Wed Jul 25 2007 sbrabec@suse.cz
- Updated to version 1.2.6:
  * Fix possible noise at the beginning of files
  * Increase API version
  * Fix broken stream initialization on non-mpc files
  * Added fast-seeking
  * Reduced memory usage and code size
- Name package according to shared library packaging policy.
* Wed Jun 28 2006 sbrabec@suse.cz
- New SuSE package, version 1.2.2.
openSUSE Build Service is sponsored by