public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libavif] epel9-next: Drop gtest on RHEL
@ 2026-07-20 16:37 Jiri Kucera
0 siblings, 0 replies; only message in thread
From: Jiri Kucera @ 2026-07-20 16:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libavif
Branch : epel9-next
Commit : deb6ac34d7c5a9f238d1976da57987f21fc01d20
Author : Jiri Kucera <jkucera@redhat.com>
Date : 2023-06-21T23:07:52+02:00
Stats : +46/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libavif/c/deb6ac34d7c5a9f238d1976da57987f21fc01d20?branch=epel9-next
Log:
Drop gtest on RHEL
---
diff --git a/libavif-0.11.1-build_tests_fix.patch b/libavif-0.11.1-build_tests_fix.patch
new file mode 100644
index 0000000..102b606
--- /dev/null
+++ b/libavif-0.11.1-build_tests_fix.patch
@@ -0,0 +1,37 @@
+From e279707a001c8f95f8a2bc51c0d19bf35bfc79ab Mon Sep 17 00:00:00 2001
+From: Wan-Teh Chang <wtc@google.com>
+Date: Fri, 11 Nov 2022 14:08:33 -0800
+Subject: [PATCH] Build aviftest_helpers for are_images_equal.cc
+
+If are_images_equal.cc is built, enable CXX and build the
+aviftest_helpers library.
+
+Fix the build failure when -DAVIF_BUILD_APPS=ON -DAVIF_BUILD_TESTS=ON
+-DAVIF_ENABLE_GTEST=OFF is passed to the cmake command.
+
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 5af7ea560..632ba7a71 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -39,15 +39,17 @@ foreach(AVIFYUV_MODE limited rgb) # Modes drift and premultiply take more than 2
+ add_test(NAME avifyuv_${AVIFYUV_MODE} COMMAND avifyuv -m ${AVIFYUV_MODE})
+ endforeach()
+
+-################################################################################
+-# GoogleTest
+-
+-if(AVIF_ENABLE_GTEST)
++if(AVIF_ENABLE_GTEST OR AVIF_BUILD_APPS)
+ enable_language(CXX)
+ set(CMAKE_CXX_STANDARD 11)
+ add_library(aviftest_helpers OBJECT gtest/aviftest_helpers.cc)
+ target_link_libraries(aviftest_helpers avif_apps)
++endif()
+
++################################################################################
++# GoogleTest
++
++if(AVIF_ENABLE_GTEST)
+ if(AVIF_LOCAL_GTEST)
+ set(GTEST_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/ext/googletest/googletest/include)
+ set(GTEST_LIBRARIES
diff --git a/libavif.spec b/libavif.spec
index 8a6a3d5..b2e2daf 100644
--- a/libavif.spec
+++ b/libavif.spec
@@ -2,11 +2,16 @@
%bcond_without aom
# Build SVT-AV1
%bcond_without svt
-%if 0%{?rhel} && 0%{?rhel} < 9
+%if (0%{?rhel} && 0%{?rhel} < 9) || 0%{?rhel} >= 10
%bcond_with rav1e
%else
%bcond_without rav1e
%endif
+%if 0%{?rhel} >= 10
+%bcond_with gtest
+%else
+%bcond_without gtest
+%endif
%bcond_without check
Name: libavif
@@ -17,10 +22,11 @@ Summary: Library for encoding and decoding .avif files
License: BSD-2-Clause
URL: https://github.com/AOMediaCodec/libavif
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0: libavif-0.11.1-build_tests_fix.patch
BuildRequires: cmake
BuildRequires: gcc-c++
-%{?with_check:BuildRequires: gtest-devel}
+%{?with_check:%{?with_gtest:BuildRequires: gtest-devel}}
BuildRequires: nasm
%if %{with aom}
BuildRequires: pkgconfig(aom)
@@ -76,7 +82,7 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
%{?with_svt:-DAVIF_CODEC_SVT=1} \
-DAVIF_BUILD_APPS=1 \
-DAVIF_BUILD_GDK_PIXBUF=1 \
- %{?with_check:-DAVIF_BUILD_TESTS=1 -DAVIF_ENABLE_GTEST=1}
+ %{?with_check:-DAVIF_BUILD_TESTS=1 -DAVIF_ENABLE_GTEST=%{with gtest}}
%cmake_build
%install
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 16:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 16:37 [rpms/libavif] epel9-next: Drop gtest on RHEL Jiri Kucera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox