Sync from SUSE:ALP:Source:Standard:1.0 libreplaygain revision 241c75160c1ec88e345a6bfc3f1f4855

This commit is contained in:
Adrian Schröter 2024-10-14 15:07:58 +02:00
commit 268ddaee1b
5 changed files with 154 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

10
libreplaygain-math.patch Normal file
View File

@ -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}")

32
libreplaygain.changes Normal file
View File

@ -0,0 +1,32 @@
-------------------------------------------------------------------
Sun Jul 7 00:41:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Make descriptions more meaningful.
-------------------------------------------------------------------
Thu Jul 4 10:42:03 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- 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).

86
libreplaygain.spec Normal file
View File

@ -0,0 +1,86 @@
#
# spec file for package libreplaygain
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.
# 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

BIN
libreplaygain_r475.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.