public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-zlib] rawhide: Conditionalize BRs, subpackages and files sections based on mingw_build_ucrt64
@ 2026-11-07 13:15 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-11-07 13:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mingw-zlib
Branch : rawhide
Commit : da5dc3d59cdb066688e2960644297fe8744adba1
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-29T14:44:22+01:00
Stats  : +8/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/mingw-zlib/c/da5dc3d59cdb066688e2960644297fe8744adba1?branch=rawhide

Log:
Conditionalize BRs, subpackages and files sections based on mingw_build_ucrt64

---
diff --git a/mingw-zlib.spec b/mingw-zlib.spec
index 9c2ae26..5954f09 100644
--- a/mingw-zlib.spec
+++ b/mingw-zlib.spec
@@ -1,4 +1,5 @@
-%global mingw_build_ucrt64 1
+%global mingw_build_ucrt64 %{!?el10:1}%{?el10:0}
+
 %{?mingw_package_header}
 
 Name:           mingw-zlib
@@ -23,8 +24,10 @@ BuildRequires:  mingw32-gcc
 BuildRequires:  mingw64-filesystem
 BuildRequires:  mingw64-gcc
 
+%if %mingw_build_ucrt64
 BuildRequires:  ucrt64-filesystem
 BuildRequires:  ucrt64-gcc
+%endif
 
 
 %description
@@ -63,6 +66,7 @@ The mingw64-zlib-static package contains static library for mingw64-zlib develop
 
 
 # UCRT64
+%if %mingw_build_ucrt64
 %package -n ucrt64-zlib
 Summary:        MinGW Windows zlib compression library for the ucrt64 target
 
@@ -75,7 +79,7 @@ Requires:       ucrt64-zlib = %{version}-%{release}
 
 %description -n ucrt64-zlib-static
 The ucrt64-zlib-static package contains static library for ucrt64-zlib development.
-
+%endif
 
 %{?mingw_debug_package}
 
@@ -129,6 +133,7 @@ rm -rf %{buildroot}%{ucrt64_docdir}
 %{mingw64_libdir}/libz.a
 
 # UCRT64
+%if %mingw_build_ucrt64
 %files -n ucrt64-zlib
 %{ucrt64_includedir}/zconf.h
 %{ucrt64_includedir}/zlib.h
@@ -139,6 +144,7 @@ rm -rf %{buildroot}%{ucrt64_docdir}
 
 %files -n ucrt64-zlib-static
 %{ucrt64_libdir}/libz.a
+%endif
 
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-07 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 13:15 [rpms/mingw-zlib] rawhide: Conditionalize BRs, subpackages and files sections based on mingw_build_ucrt64 Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox