public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jiri Kucera <jkucera@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libavif] epel9-next: Drop gtest on RHEL
Date: Mon, 20 Jul 2026 16:37:55 GMT [thread overview]
Message-ID: <178456547576.1.14887611538454600741.rpms-libavif-deb6ac34d7c5@fedoraproject.org> (raw)
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
reply other threads:[~2026-07-20 16:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178456547576.1.14887611538454600741.rpms-libavif-deb6ac34d7c5@fedoraproject.org \
--to=jkucera@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox