commit a37621ffd5e4d447bb25548a55f1aea13cc4f525
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Tue Oct 3 09:23:11 2017 -0500
Rebuild for f28.
Add patch to deal with removal of pow10f function from glibc, fixes
RFBZ#4672.
avidemux-pow10f.patch | 22 ++++++++++++++++++++++
avidemux.spec | 9 ++++++++-
2 files changed, 30 insertions(+), 1 deletion(-)
---
diff --git a/avidemux-pow10f.patch b/avidemux-pow10f.patch
new file mode 100644
index 0000000..166791f
--- /dev/null
+++ b/avidemux-pow10f.patch
@@ -0,0 +1,22 @@
+From afdd9c4b876d77a4974d3fa7d9f25caeffbdf13d Mon Sep 17 00:00:00 2001
+From: eumagga0x2a <eumagga0x2a(a)users.noreply.github.com>
+Date: Fri, 29 Sep 2017 15:53:14 +0200
+Subject: [PATCH] [build] Fix compilation with glibc >= 2.27
+
+---
+ avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp
b/avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp
+index c6cb43bb6..269c2d2e3 100644
+--- a/avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp
++++ b/avidemux/common/ADM_audioFilter/src/audiofilter_normalize.cpp
+@@ -35,7 +35,7 @@
+ #elif defined(ADM_BSD_FAMILY) || defined(__sun__)
+ #define POW10(x) powf(10.0,x)
+ #else
+-#define POW10(x) pow10f(x)
++#define POW10(x) exp10f(x)
+ #endif
+
+ #define LINEAR_TO_DB(x) (20.*log10(x))
diff --git a/avidemux.spec b/avidemux.spec
index e66c88f..87164e6 100644
--- a/avidemux.spec
+++ b/avidemux.spec
@@ -5,7 +5,7 @@
Name: avidemux
Version: 2.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Graphical video editing and transcoding tool
License: GPLv2+
@@ -13,6 +13,8 @@ URL:
http://www.avidemux.org
Source0:
http://downloads.sourceforge.net/%{name}/%{name}_%{version}.tar.gz
Source1: avidemux-qt.desktop
+Patch0: avidemux-pow10f.patch
+
# Don't try to build on arm, aarch64 or ppc
ExclusiveArch: i686 x86_64
@@ -290,6 +292,11 @@ fi
%changelog
+* Tue Oct 3 2017 Richard Shaw <hobbes1069(a)gmail.com> - 2.7.0-2
+- Rebuild for f28.
+- Add patch to deal with removal of pow10f function from glibc, fixes
+ RFBZ#4672.
+
* Fri Sep 01 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 2.7.0-1
- Update to latest upstream release, 2.7.0.
- Remove gtk files section