SHA256
1
0
forked from pool/musepack

Accepting request 713401 from home:StefanBruens:branches:multimedia:libs

- More spec file cleanup:
  * Use SPDX identifiers for License
  * Correct license for libmpcdec (BSD-3-clause)
  * Use https:// for Source and Url
  * Remove __DATE__/__TIME__ mangling, no longer needed with current GCC
  * Remove BuildRoot

OBS-URL: https://build.opensuse.org/request/show/713401
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/musepack?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-07-04 13:45:09 +00:00 committed by Git OBS Bridge
parent 67d02adabb
commit aef94f4740
2 changed files with 22 additions and 12 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jul 4 10:42:03 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- More spec file cleanup:
* Use SPDX identifiers for License
* Correct license for libmpcdec (BSD-3-clause)
* Use https:// for Source and Url
* Remove __DATE__/__TIME__ mangling, no longer needed with current GCC
* Remove BuildRoot
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 21 20:11:03 UTC 2019 - mgorse@suse.com Fri Jun 21 20:11:03 UTC 2019 - mgorse@suse.com

View File

@ -2,6 +2,7 @@
# spec file for package musepack # spec file for package musepack
# #
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>. # Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,23 +13,26 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define so_ver 6 %define so_ver 6
Name: musepack Name: musepack
Version: r475 Version: r475
Release: 0 Release: 0
License: BSD-3-Clause and LGPL-2.1+ and GPL-2.0+ and Zlib # 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
Summary: Audio Compression Format Summary: Audio Compression Format
Url: http://www.musepack.net/ Url: https://www.musepack.net/
Group: Productivity/Multimedia/Other Group: Productivity/Multimedia/Other
Source0: http://files.musepack.net/source/%{name}_src_%{version}.tar.gz Source0: https://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 # 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 Patch0: libmpcdec.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: libcuefile-devel BuildRequires: libcuefile-devel
BuildRequires: libreplaygain-devel BuildRequires: libreplaygain-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Musepack is an audio compression format with a strong emphasis on high quality. Musepack is an audio compression format with a strong emphasis on high quality.
@ -51,6 +55,7 @@ This package includes development files for musepack.
%package -n libmpcdec%{so_ver} %package -n libmpcdec%{so_ver}
Summary: Audio Compression Format Summary: Audio Compression Format
License: BSD-3-Clause AND Zlib
Group: System/Libraries Group: System/Libraries
%description -n libmpcdec%{so_ver} %description -n libmpcdec%{so_ver}
@ -68,12 +73,6 @@ optimized and patentless code.
%patch0 %patch0
%build %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" # Fix rpmlint warning "version-control-internal-file"
rm -rf include/mpc/.svn/ rm -rf include/mpc/.svn/
@ -84,7 +83,7 @@ chmod 644 libmpcdec/AUTHORS libmpcdec/COPYING libmpcdec/ChangeLog
sed -i "s/set(CMAKE_C_FLAGS.*$//" CMakeLists.txt sed -i "s/set(CMAKE_C_FLAGS.*$//" CMakeLists.txt
%cmake %cmake
make %{?_smp_mflags} VERBOSE=1 %cmake_build
%install %install
%cmake_install %cmake_install
@ -97,7 +96,8 @@ make %{?_smp_mflags} VERBOSE=1
%{_bindir}/* %{_bindir}/*
%files devel %files devel
%doc libmpcdec/AUTHORS libmpcdec/COPYING libmpcdec/ChangeLog %license libmpcdec/COPYING
%doc libmpcdec/AUTHORS libmpcdec/ChangeLog
%{_includedir}/mpc/ %{_includedir}/mpc/
%{_libdir}/libmpcdec.so %{_libdir}/libmpcdec.so