From 9cdb3cf6bfad65f4ee8c43d8e21688ed130e6209 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Thu, 5 Aug 2021 09:52:07 -0500 Subject: [PATCH] Remove Threads::Threads from link libraries in f35+ --- openexr.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openexr.spec b/openexr.spec index 5fb96f1..89f77c9 100644 --- a/openexr.spec +++ b/openexr.spec @@ -3,7 +3,7 @@ Name: openexr Version: 3.0.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Provides the specification and reference implementation of the EXR file format License: BSD @@ -100,6 +100,12 @@ Summary: Development files for %{name} %install %cmake_install +# As of glibc 2.35 in f35, libpthread has been merged into glibc therefore +# Threads::Threads is not needed and may cause issues. +%if 0%{?fedora} > 34 +sed -i "s/;Threads::Threads//" %{buildroot}%{_libdir}/cmake/OpenEXR/OpenEXRTargets.cmake +%endif + %check # Test 4 currently fails on aarch64 and sometimes times out on armv7hl @@ -126,6 +132,9 @@ Summary: Development files for %{name} %changelog +* Thu Aug 05 2021 Richard Shaw - 3.0.5-3 +- Remove Threads::Threads from link libraries in f35+ + * Thu Jul 22 2021 Fedora Release Engineering - 3.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild