public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Replace %bcond_with and %bcond_without with %bcond [0|1]
@ 2026-08-13 13:10 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-08-13 13:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/binutils
Branch : rawhide
Commit : 064736651b89494733eca3d837409a8147073f08
Author : Nick Clifton <nickc@redhat.com>
Date : 2026-08-13T14:09:50+01:00
Stats : +24/-22 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/binutils/c/064736651b89494733eca3d837409a8147073f08?branch=rawhide
Log:
Replace %bcond_with and %bcond_without with %bcond [0|1]
---
diff --git a/binutils.spec b/binutils.spec
index 9c81204..dca5619 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@ Name: binutils%{?_with_debug:-debug}
# The variable %%{source} (see below) should be set to indicate which of these
# origins is being used.
Version: 2.47.50
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
URL: https://sourceware.org/binutils
@@ -138,42 +138,45 @@ URL: https://sourceware.org/binutils
#----End of Configure Options------------------------------------------------
# Default: Not bootstrapping.
-%bcond_with bootstrap
+%bcond bootstrap 0
# Default: Not debug
-%bcond_with debug
+%bcond debug 0
# Default: support debuginfod.
-%bcond_without debuginfod
+%bcond debuginfod 1
# Default: Always build documentation.
-%bcond_without docs
+%bcond docs 1
# Default: build binutils-gprofng package.
-%bcond_without gprofng
+%bcond gprofng 1
# Default: Use the system supplied version of the zlib compression library.
-%bcond_without systemzlib
+%bcond systemzlib 1
# Default: Always run the testsuite.
-%bcond_without testsuite
+%bcond testsuite 1
# Default: Use the xxhash-devel library.
-%bcond_without xxhash
+%bcond xxhash 1
# Default: Use the libztsd-devel library.
-%bcond_without zstd
+%bcond zstd 1
+# Default: Do not create cross targeted versions of the binutils.
+%bcond crossbuilds 0
-# Note - in the future the gold linker will become deprecated.
+# Note - in the future the gold linker will become deprecated in Fedora.
+# And it will be deprecated in RHEL-11.
%if 0%{?rhel} >= 11
-%bcond_with gold
+%bcond gold 0
%else
+# RISC-V does not have ld.gold thus disable by default.
%ifnarch riscv64
-%bcond_without gold
+%bcond gold 0
%else
-# RISC-V does not have ld.gold thus disable by default.
-%bcond_with gold
+%bcond gold 1
%endif
%endif
# Allow the user to override the compiler used to build the binutils.
# The default build compiler is gcc if %%toolchain is not clang.
%if "%toolchain" == "clang"
-%bcond_without clang
+%bcond clang 1
%else
-%bcond_with clang
+%bcond clang 0
%endif
%if %{with clang}
@@ -182,10 +185,6 @@ URL: https://sourceware.org/binutils
%global toolchain gcc
%endif
-# (Do not) create cross targeted versions of the binutils.
-%bcond_with crossbuilds
-# %%bcond_without crossbuilds
-
%if %{with bootstrap}
%undefine with_docs
%undefine with_testsuite
@@ -1501,8 +1500,11 @@ exit 0
#----------------------------------------------------------------------------
%changelog
+* Thu Aug 13 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-3
+- Switch from using %%bcond_with and %%bcond_without to just %%bcond <0|1>
+
* Thu Aug 13 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-2
-- Re-enable the gold linker - for now.
+- Re-enable the gold linker - for now - for Rawhide.
* Wed Aug 12 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-1
- Rebase to commit 4e8ba93fdb2.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-13 13:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 13:10 [rpms/binutils] rawhide: Replace %bcond_with and %bcond_without with %bcond [0|1] Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox