2019-06-26 08:10:16 +02:00
#
# spec file for package musepack
#
2020-09-17 17:02:01 +02:00
# Copyright (c) 2020 SUSE LLC
2019-07-08 09:59:55 +02:00
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
2019-06-26 08:10:16 +02:00
#
# 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.
2019-07-04 15:45:09 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
2019-06-26 08:10:16 +02:00
%define so_ver 6
Name : musepack
Version : r475
Release : 0
2019-07-08 09:59:55 +02:00
Summary : Audio Compression Format
2019-07-04 15:45:09 +02:00
# libmpcdec: BSD, libmpcenc/libmpcpsy: LGPL, tools: GPL, huffman coding: Zlib
License : BSD-3-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later AND Zlib
2019-06-26 08:10:16 +02:00
Group : Productivity/Multimedia/Other
2019-07-08 09:59:55 +02:00
URL : https://www.musepack.net/
2019-07-04 15:45:09 +02:00
Source0 : https://files.musepack.net/source/%{name} _src_%{version} .tar.gz
2019-07-08 09:59:55 +02:00
Source99 : baselibs.conf
2019-06-26 08:10:16 +02:00
# PATCH-FIX-UPSTREAM libmpcdec.patch asterios.dramis@gmail.com -- Fix CMakeLists.txt to install a libmpcdec shared library, fix missing libmpcdec link to libm
Patch0 : libmpcdec.patch
2020-01-08 17:16:22 +01:00
# PATCh-FIX-UPSTREAM libmpcdec-extern.patch boo#1160284 mgorse@suse.com -- add extern declarations.
Patch1 : libmpcdec-extern.patch
2020-09-17 17:02:01 +02:00
Patch2 : libmpcdec-fastmath-no-const.patch
2019-06-26 08:10:16 +02:00
BuildRequires : cmake
BuildRequires : libcuefile-devel
BuildRequires : libreplaygain-devel
%description
2019-08-26 11:05:06 +02:00
Musepack is an audio compression format with an emphasis on audio
quality. It is not lossless, but it is designed for transparency, so
that differences between the original wave file and the much smaller
MPC file are indiscernible (given enough of a bitrate, as usual).
2019-06-26 08:10:16 +02:00
2019-08-26 11:05:06 +02:00
It is based on the MPEG-1 Layer-2 / MP2 algorithms, but has further
been developed.
2019-06-26 08:10:16 +02:00
%package devel
Summary : Development Files for Musepack
2019-07-08 09:59:55 +02:00
License : BSD-3-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later AND Zlib
2019-06-26 08:10:16 +02:00
Group : Development/Libraries/C and C++
Requires : libmpcdec%{so_ver} = %{version}
Conflicts : libmpcdec-devel
%description devel
This package includes development files for musepack.
%package -n libmpcdec%{so_ver}
Summary : Audio Compression Format
2019-07-04 15:45:09 +02:00
License : BSD-3-Clause AND Zlib
2019-06-26 08:10:16 +02:00
Group : System/Libraries
%description -n libmpcdec%{so_ver}
2019-08-26 11:05:06 +02:00
Musepack is an audio compression format with an emphasis on audio
quality. It is not lossless, but it is designed for transparency, so
that differences between the original wave file and the much smaller
MPC file are indiscernible (given enough of a bitrate, as usual).
It is based on the MPEG-1 Layer-2 / MP2 algorithms, but has further
been developed.
2019-06-26 08:10:16 +02:00
%prep
%setup -q -n %{name} _src_%{version}
%patch0
2020-01-08 17:16:22 +01:00
%patch1
2020-09-17 17:02:01 +02:00
%patch2 -p1
2019-06-26 08:10:16 +02:00
%build
# Fix rpmlint warning "version-control-internal-file"
rm -rf include/mpc/.svn/
# Fix rpmlint errors "spurious-executable-perm" and "executable-docs"
chmod 644 libmpcdec/AUTHORS libmpcdec/COPYING libmpcdec/ChangeLog
# Make the package use rpm optflags
sed -i " s / s e t ( C M A K E _ C _ F L A G S . * $ / / " CMakeLists.txt
%cmake
2019-07-04 15:45:09 +02:00
%cmake_build
2019-06-26 08:10:16 +02:00
%install
%cmake_install
%post -n libmpcdec%{so_ver} -p /sbin/ldconfig
%postun -n libmpcdec%{so_ver} -p /sbin/ldconfig
%files
%{_bindir} /*
%files devel
2019-07-04 15:45:09 +02:00
%license libmpcdec/COPYING
%doc libmpcdec/AUTHORS libmpcdec/ChangeLog
2019-06-26 08:10:16 +02:00
%{_includedir} /mpc/
%{_libdir} /libmpcdec.so
%files -n libmpcdec%{so_ver}
%{_libdir} /libmpcdec.so.%{so_ver} *
%changelog