public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-zlib] rawhide: Conditionalize BRs, subpackages and files sections based on mingw_build_ucrt64
Date: Sat, 07 Nov 2026 13:15:45 GMT	[thread overview]
Message-ID: <179405734557.1.16829034276066470168.rpms-mingw-zlib-da5dc3d59cdb@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-07 13:15 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=179405734557.1.16829034276066470168.rpms-mingw-zlib-da5dc3d59cdb@fedoraproject.org \
    --to=manisandro@gmail.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