musepack/musepack.spec

98 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: musepack
Version: r475
Release: 1mamba
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
License: LGPL, BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcuefile-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
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
rm -rf %{buildroot}%{_includedir}/mpc/.svn
install -D -m0755 ./build/libmpcdec/libmpcdec.so.6.0.0 \
%{buildroot}%{_libdir}/libmpcdec.so.6.0.0
ln -s libmpcdec.so.6.0.0 %{buildroot}%{_libdir}/libmpcdec.so.6
ln -s libmpcdec.so.6.0.0 %{buildroot}%{_libdir}/libmpcdec.so
%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.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/libmpcdec.so
%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
%changelog
* Sat Nov 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> r475-1mamba
- package created using the webbuild interface