commit f1461dbfe6440b5ac89bf8147c8151ab554a39f8
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Nov 7 23:13:33 2023 +0000
fix
faad2-drop-lrintf-redefinition.patch | 11 +++++++++++
faad2.spec | 1 +
2 files changed, 12 insertions(+)
---
diff --git a/faad2-drop-lrintf-redefinition.patch b/faad2-drop-lrintf-redefinition.patch
new file mode 100644
index 0000000..20a7565
--- /dev/null
+++ b/faad2-drop-lrintf-redefinition.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.15)
+
+ project(LIBFAAD2 LANGUAGES C)
+
++add_definitions(-DHAVE_LRINTF)
++
+ # If FAAD is being bundled in another project, we don't want to
+ # install anything. However, we want to let people override this, so
+ # we'll use the FAAD_BUNDLED_MODE variable to let them do that; just
diff --git a/faad2.spec b/faad2.spec
index 30e4afd..0c82e05 100644
--- a/faad2.spec
+++ b/faad2.spec
@@ -6,6 +6,7 @@ Release: 1%{?dist}
License: GPLv2+
URL:
http://www.audiocoding.com/faad2.html
Source:
https://github.com/knik0/faad2/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0: faad2-drop-lrintf-redefinition.patch
BuildRequires: gcc-c++