From 268ddaee1b389fd50144c038973327805ff82ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 14 Oct 2024 15:07:58 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 libreplaygain revision 241c75160c1ec88e345a6bfc3f1f4855 --- .gitattributes | 23 +++++++++++ libreplaygain-math.patch | 10 +++++ libreplaygain.changes | 32 +++++++++++++++ libreplaygain.spec | 86 +++++++++++++++++++++++++++++++++++++++ libreplaygain_r475.tar.gz | 3 ++ 5 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 libreplaygain-math.patch create mode 100644 libreplaygain.changes create mode 100644 libreplaygain.spec create mode 100644 libreplaygain_r475.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libreplaygain-math.patch b/libreplaygain-math.patch new file mode 100644 index 0000000..b4ff490 --- /dev/null +++ b/libreplaygain-math.patch @@ -0,0 +1,10 @@ +diff -urp libreplaygain_r475.orig/src/CMakeLists.txt libreplaygain_r475/src/CMakeLists.txt +--- libreplaygain_r475.orig/src/CMakeLists.txt 2009-07-31 07:03:57.000000000 -0500 ++++ libreplaygain_r475/src/CMakeLists.txt 2019-06-21 14:38:53.507794158 -0500 +@@ -5,5 +5,6 @@ set_target_properties(replaygain-static + + add_library(replaygain-shared SHARED gain_analysis) + set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1) ++target_link_libraries(replaygain-shared -lm) + + install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}") diff --git a/libreplaygain.changes b/libreplaygain.changes new file mode 100644 index 0000000..53ab54a --- /dev/null +++ b/libreplaygain.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Sun Jul 7 00:41:38 UTC 2019 - Jan Engelhardt + +- Make descriptions more meaningful. + +------------------------------------------------------------------- +Thu Jul 4 10:42:03 UTC 2019 - Stefan BrĂ¼ns + +- More spec file cleanup: + * Use SPDX identifier to License + * Use https:// for Source and Url + * Remove BuildRoot + +------------------------------------------------------------------- +Fri Jun 21 19:40:34 UTC 2019 - mgorse@suse.com + +- Add libreplaygain-math.patch: link with -lm. +- Use cmake macros. +- Move source modifications from %prep to %build. Makes 'quilt + setup' more robust. +- Remove some unneeded comments from %install. +- Remove %defattr.. No longer needed. + +------------------------------------------------------------------- +Sun Mar 10 23:04:14 UTC 2013 - asterios.dramis@gmail.com + +- Correct version number to r475. + +------------------------------------------------------------------- +Sun Mar 10 18:13:10 UTC 2013 - asterios.dramis@gmail.com + +- Initial rpm release (version 20110810_r475). diff --git a/libreplaygain.spec b/libreplaygain.spec new file mode 100644 index 0000000..85d86cc --- /dev/null +++ b/libreplaygain.spec @@ -0,0 +1,86 @@ +# +# spec file for package libreplaygain +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2013 Asterios Dramis . +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define so_ver 1 + +Name: libreplaygain +Summary: Library for analyzing sound and recommending volume change +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +Version: r475 +Release: 0 +URL: https://www.musepack.net/ +Source0: https://files.musepack.net/source/%{name}_%{version}.tar.gz +Patch0: libreplaygain-math.patch +BuildRequires: cmake + +%description +libreplaygain is a library that analyzes input samples and gives the +recommended volume change. + +%package devel +Summary: Development files for libreplaygain +Group: Development/Libraries/C and C++ +Requires: libreplaygain%{so_ver} = %{version} + +%description devel +This package includes development files for libreplaygain. + +%package -n libreplaygain%{so_ver} +Summary: Library for analyzing sound and recommending volume change +Group: System/Libraries + +%description -n libreplaygain%{so_ver} +libreplaygain is a library that analyzes input samples and gives the +recommended volume change. + +%prep +%setup -q -n %{name}_%{version} +%patch0 -p1 + +%build +# Fix rpmlint error "spurious-executable-perm" +chmod 644 include/replaygain/*.h + +# Make the package use rpm optflags +sed -i "s/set(CMAKE_C_FLAGS.*$//" CMakeLists.txt + +%cmake +%cmake_build + +%install +%cmake_install + +mkdir -p %{buildroot}%{_includedir} +cp -a include/replaygain/ %{buildroot}%{_includedir} + +rm -f %{buildroot}%{_libdir}/*.a + +%post -n libreplaygain%{so_ver} -p /sbin/ldconfig + +%postun -n libreplaygain%{so_ver} -p /sbin/ldconfig + +%files devel +%{_includedir}/replaygain/ +%{_libdir}/libreplaygain.so + +%files -n libreplaygain%{so_ver} +%{_libdir}/libreplaygain.so.%{so_ver}* + +%changelog diff --git a/libreplaygain_r475.tar.gz b/libreplaygain_r475.tar.gz new file mode 100644 index 0000000..4df7c35 --- /dev/null +++ b/libreplaygain_r475.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482 +size 8693