public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libdeflate] epel9: In F45+/EL11+, don’t build programs, only libraries, on MinGW
@ 2026-08-23 11:33 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-23 11:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libdeflate
Branch : epel9
Commit : 9527a1989c5e45237707b4e2cdf7716ef6314d7a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-08-23T12:31:59+01:00
Stats : +25/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libdeflate/c/9527a1989c5e45237707b4e2cdf7716ef6314d7a?branch=epel9
Log:
In F45+/EL11+, don’t build programs, only libraries, on MinGW
- Works around and closes RHBZ#2481005
---
diff --git a/libdeflate.spec b/libdeflate.spec
index abb446a..a4558b5 100644
--- a/libdeflate.spec
+++ b/libdeflate.spec
@@ -2,6 +2,10 @@
# repositories, *and* are available on x86_64 only. We therefore choose to omit
# the MinGW subpackages altogether.
%bcond mingw 0
+# Work around linker failures on MinGW32 with MinGW C libraries version 14,
+# https://bugzilla.redhat.com/show_bug.cgi?id=2481005, by omitting the
+# mingw{32,64}-libdeflate-utils subpackages.
+%bcond mingw_utils %[ 0%{?fedora} < 45 && 0%{?rhel} < 11 ]
Name: libdeflate
Version: 1.25
@@ -53,29 +57,41 @@ Binaries from libdeflate.
Summary: MinGW Windows %{name} library
BuildArch: noarch
+%if %{without mingw_utils}
+Obsoletes: mingw32-%{name}-utils < 1.25-4
+%endif
+
%description -n mingw32-%{name}
MinGW Windows %{name} library.
+%if %{with mingw_utils}
%package -n mingw32-%{name}-utils
Summary: MinGW Windows %{name} binaries
BuildArch: noarch
%description -n mingw32-%{name}-utils
MinGW Windows %{name} binaries.
+%endif
%package -n mingw64-%{name}
Summary: MinGW Windows %{name} library
BuildArch: noarch
+%if %{without mingw_utils}
+Obsoletes: mingw64-%{name}-utils < 1.25-4
+%endif
+
%description -n mingw64-%{name}
MinGW Windows %{name} library.
+%if %{with mingw_utils}
%package -n mingw64-%{name}-utils
Summary: MinGW Windows %{name} binaries
BuildArch: noarch
%description -n mingw64-%{name}-utils
MinGW Windows %{name} binaries.
+%endif
%{?mingw_debug_package}
%endif
@@ -102,7 +118,11 @@ cmake_opts="\
%if %{with mingw}
# MinGW build
-%mingw_cmake $cmake_opts -DLIBDEFLATE_BUILD_TESTS:BOOL=OFF
+%mingw_cmake $cmake_opts \
+%if %{without mingw_utils}
+ -DLIBDEFLATE_BUILD_GZIP:BOOL=OFF \
+%endif
+ -DLIBDEFLATE_BUILD_TESTS:BOOL=OFF
%mingw_make
%endif
@@ -142,9 +162,11 @@ cmake_opts="\
%{mingw32_libdir}/cmake/libdeflate/
%{mingw32_includedir}/libdeflate.h
+%if %{with mingw_utils}
%files -n mingw32-%{name}-utils
%{mingw32_bindir}/libdeflate-gzip.exe
%{mingw32_bindir}/libdeflate-gunzip.exe
+%endif
%files -n mingw64-%{name}
%{mingw64_bindir}/libdeflate-0.dll
@@ -153,10 +175,12 @@ cmake_opts="\
%{mingw64_libdir}/cmake/libdeflate/
%{mingw64_includedir}/libdeflate.h
+%if %{with mingw_utils}
%files -n mingw64-%{name}-utils
%{mingw64_bindir}/libdeflate-gzip.exe
%{mingw64_bindir}/libdeflate-gunzip.exe
%endif
+%endif
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-23 11:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23 11:33 [rpms/libdeflate] epel9: In F45+/EL11+, don’t build programs, only libraries, on MinGW Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox