musepack/musepack.spec

112 lines
3.2 KiB
RPMSpec

Name: musepack
Version: r475
Release: 2mamba
Summary: An audio compression format with a strong emphasis on high quality
Group: System/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.musepack.net/
Source: http://files.musepack.net/source/musepack_src_%{version}.tar.gz
Patch0: musepack_src_r475-libmpcdec-soname.patch
Patch1: musepack-r475-am-maintainer-mode.patch
Patch2: musepack-r475-link-libm.patch
Patch3: musepack-r475-mpcchap.patch
Patch4: musepack-r475-link-order.patch
Patch5: musepack-r475-visibility.patch
Patch6: musepack-r475-missing_extern_kw.patch
License: LGPL, BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libcue-devel
BuildRequires: libreplaygain-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
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.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n %{name}_src_%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
autoreconf -fi
%build
%configure \
--enable-mpcchap
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mpc2sv8
%{_bindir}/mpcchap
%{_bindir}/mpccut
%{_bindir}/mpcdec
%{_bindir}/mpcenc
%{_bindir}/mpcgain
%{_bindir}/wavcmp
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmpcdec.so.*
%doc libmpcdec/COPYING libmpcdec/AUTHORS
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/mpc
%{_includedir}/mpc/datatypes.h
%{_includedir}/mpc/minimax.h
%{_includedir}/mpc/mpc_types.h
%{_includedir}/mpc/mpcdec.h
%{_includedir}/mpc/mpcmath.h
%{_includedir}/mpc/reader.h
%{_includedir}/mpc/streaminfo.h
%{_libdir}/libmpcdec.a
%{_libdir}/libmpcdec.la
%{_libdir}/libmpcdec.so
%changelog
* Sat Jan 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> r475-2mamba
- rebuilt with debug package
* Sat Nov 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> r475-1mamba
- package created using the webbuild interface