commit 77a35d21632003157b7349b9880e46aa8c2b3b6d43098a82dfd34188b36bc91e Author: Takashi Iwai Date: Wed Jun 26 06:10:05 2019 +0000 Accepting request 711394 from home:mgorse:branches:multimedia:libs OBS-URL: https://build.opensuse.org/request/show/711394 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libreplaygain?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libreplaygain-math.patch b/libreplaygain-math.patch new file mode 100644 index 0000000..0870db8 --- /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..1412348 --- /dev/null +++ b/libreplaygain.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +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..12dd048 --- /dev/null +++ b/libreplaygain.spec @@ -0,0 +1,83 @@ +# +# spec file for package libreplaygain +# +# 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. + + +%define so_ver 1 + +Name: libreplaygain +Version: r475 +Release: 0 +License: LGPL-2.1+ +Summary: Analyze Input Samples and Give the Recommended dB Change +Url: http://www.musepack.net/ +Group: System/Libraries +Source0: http://files.musepack.net/source/%{name}_%{version}.tar.gz +Patch0: libreplaygain-math.patch +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +libreplaygain is a library that analyzes input samples and give the recommended +dB 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: Analyze Input Samples and Give the Recommended dB Change +Group: System/Libraries + +%description -n libreplaygain%{so_ver} +libreplaygain is a library that analyzes input samples and give the recommended +dB 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 +make %{?_smp_mflags} VERBOSE=1 + +%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..c30be1c --- /dev/null +++ b/libreplaygain_r475.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482 +size 8693