Accepting request 711396 from home:mgorse:branches:multimedia:libs
OBS-URL: https://build.opensuse.org/request/show/711396 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/musepack?expand=0&rev=1
This commit is contained in:
commit
67d02adabb
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
15
libmpcdec.patch
Normal file
15
libmpcdec.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- libmpcdec/CMakeLists.txt.orig 2010-08-21 18:55:01.000000000 +0300
|
||||
+++ libmpcdec/CMakeLists.txt 2013-03-11 22:28:18.414009124 +0200
|
||||
@@ -1,7 +1,11 @@
|
||||
include_directories(${libmpc_SOURCE_DIR}/include)
|
||||
if(SHARED)
|
||||
add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
|
||||
+ set_target_properties(mpcdec PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1 VERSION 6.1.0 SOVERSION 6)
|
||||
+ install(TARGETS mpcdec LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
else(SHARED)
|
||||
add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
|
||||
+ set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1)
|
||||
+ install(TARGETS mpcdec_static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
endif(SHARED)
|
||||
-
|
||||
+target_link_libraries(mpcdec m)
|
17
musepack.changes
Normal file
17
musepack.changes
Normal file
@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 21 20:11:03 UTC 2019 - mgorse@suse.com
|
||||
|
||||
- Conflict with libmpcdec-devel, since both packages provide
|
||||
libmpcdec.so.
|
||||
- Use cmake macros.
|
||||
- Move source modifications from %prep to %build. Makes 'quilt
|
||||
setup' more robust.
|
||||
- Remove %defattr.. No longer needed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 11 20:34:11 UTC 2013 - asterios.dramis@gmail.com
|
||||
|
||||
- Initial rpm release (version r475).
|
||||
- Added a patch "libmpcdec.patch" in order to fix CMakeLists.txt
|
||||
to install a libmpcdec shared library and add a missing
|
||||
libmpcdec link to libm.
|
107
musepack.spec
Normal file
107
musepack.spec
Normal file
@ -0,0 +1,107 @@
|
||||
#
|
||||
# spec file for package musepack
|
||||
#
|
||||
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
%define so_ver 6
|
||||
|
||||
Name: musepack
|
||||
Version: r475
|
||||
Release: 0
|
||||
License: BSD-3-Clause and LGPL-2.1+ and GPL-2.0+ and Zlib
|
||||
Summary: Audio Compression Format
|
||||
Url: http://www.musepack.net/
|
||||
Group: Productivity/Multimedia/Other
|
||||
Source0: http://files.musepack.net/source/%{name}_src_%{version}.tar.gz
|
||||
# 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
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libcuefile-devel
|
||||
BuildRequires: libreplaygain-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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 has rapidly developed and
|
||||
vastly improved and is now at an advanced stage in which it contains heavily
|
||||
optimized and patentless code.
|
||||
|
||||
%package devel
|
||||
Summary: Development Files for Musepack
|
||||
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
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libmpcdec%{so_ver}
|
||||
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 has rapidly developed and
|
||||
vastly improved and is now at an advanced stage in which it contains heavily
|
||||
optimized and patentless code.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}_src_%{version}
|
||||
%patch0
|
||||
|
||||
%build
|
||||
# Remove build time references so build-compare can do its work
|
||||
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" mpc2sv8/mpc2sv8.c mpcchap/mpcchap.c mpccut/mpccut.c mpcdec/mpcdec.c mpcenc/mpcenc.c mpcgain/mpcgain.c
|
||||
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" mpc2sv8/mpc2sv8.c mpcchap/mpcchap.c mpccut/mpccut.c mpcdec/mpcdec.c mpcenc/mpcenc.c mpcgain/mpcgain.c
|
||||
|
||||
# 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/set(CMAKE_C_FLAGS.*$//" CMakeLists.txt
|
||||
|
||||
%cmake
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%post -n libmpcdec%{so_ver} -p /sbin/ldconfig
|
||||
|
||||
%postun -n libmpcdec%{so_ver} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%{_bindir}/*
|
||||
|
||||
%files devel
|
||||
%doc libmpcdec/AUTHORS libmpcdec/COPYING libmpcdec/ChangeLog
|
||||
%{_includedir}/mpc/
|
||||
%{_libdir}/libmpcdec.so
|
||||
|
||||
%files -n libmpcdec%{so_ver}
|
||||
%{_libdir}/libmpcdec.so.%{so_ver}*
|
||||
|
||||
%changelog
|
BIN
musepack_src_r475.tar.gz
(Stored with Git LFS)
Normal file
BIN
musepack_src_r475.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user