commit 89abf4b4001d1e42185c3a3d77e524859d151ab6
Author: Peter Oliver <git(a)mavit.org.uk>
Date: Thu Jan 14 12:03:18 2021 +0000
Initial package.
.gitignore | 1 +
hardened-build.patch | 14 +++++++++++++
loudgain.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 73 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..918b23f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/loudgain-0.6.8.tar.gz
diff --git a/hardened-build.patch b/hardened-build.patch
new file mode 100644
index 0000000..5c3d10f
--- /dev/null
+++ b/hardened-build.patch
@@ -0,0 +1,14 @@
+--- CMakeLists.txt~ 2019-09-06 16:31:19.000000000 +0100
++++ CMakeLists.txt 2020-10-18 00:09:05.591898486 +0100
+@@ -72,9 +72,9 @@
+ COMPILE_FLAGS "-Wall -pedantic -g"
+ )
+
+-SET(CMAKE_C_FLAGS "-std=gnu99 -D_GNU_SOURCE")
++SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -D_GNU_SOURCE")
+
+-SET(CMAKE_CXX_FLAGS "-std=gnu++11 -D_GNU_SOURCE")
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -D_GNU_SOURCE")
+
+ INSTALL(TARGETS loudgain DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+
diff --git a/loudgain.spec b/loudgain.spec
new file mode 100644
index 0000000..8c73804
--- /dev/null
+++ b/loudgain.spec
@@ -0,0 +1,57 @@
+Version: 0.6.8
+%global forgeurl
https://github.com/Moonbase59/loudgain
+%forgemeta
+
+Name: %{repo}
+Release: 1%{?dist}
+Summary: ReplayGain 2.0 audio loudness normalizer
+License: BSD
+URL: %{forgeurl}
+Source0: %{forgesource}
+
+#
https://github.com/Moonbase59/loudgain/pull/37
+Patch0: hardened-build.patch
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: ffmpeg-devel
+BuildRequires: libebur128-devel
+BuildRequires: taglib-devel
+
+
+%description
+loudgain is a versatile ReplayGain 2.0 loudness normalizer, based on the
+EBU R128/ITU BS.1770 standard (-18 LUFS) and supports
+FLAC/Ogg/MP2/MP3/MP4/M4A/ALAC/Opus/ASF/WMA/WAV/WavPack/AIFF/APE audio
+files. It uses the well-known mp3gain commandline syntax but will never
+modify the actual audio data.
+
+
+%prep
+%forgeautosetup
+
+
+%build
+%cmake
+%cmake_build
+
+
+%install
+%cmake_install
+
+
+%check
+%ctest
+
+
+%files
+%license COPYING
+%doc README.md
+%{_bindir}/%{name}
+%{_bindir}/rgbpm
+%{_mandir}/man1/%{name}.1*
+
+
+%changelog
+* Mon Oct 19 2020 Peter Oliver <rpm(a)mavit.org.uk> - 0.6.8-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..1c33eb1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (loudgain-0.6.8.tar.gz) =
e41bb6ee3dd85728b8b59b84a1371a88a439a30166db628fae70abe5c20cf9b6c450ee5b1aaa61c971de124cd9be9dbacac4b50f232f64c076d45aafc79ed94c