public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Cleanup spec file conditionals
@ 2026-06-27 23:58 Troy Dawson
  0 siblings, 0 replies; only message in thread
From: Troy Dawson @ 2026-06-27 23:58 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 1b69fa99d423093778cd202e9c968803dda0f410
Author : Troy Dawson <tdawson@redhat.com>
Date   : 2017-09-26T15:31:01-07:00
Stats  : +9/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/1b69fa99d423093778cd202e9c968803dda0f410?branch=gdb-17.2-rebase-f44

Log:
Cleanup spec file conditionals

---
diff --git a/gdb.spec b/gdb.spec
index d8ec92c..ffa1c3b 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 8.0.1
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 26%{?dist}
+Release: 27%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -114,7 +114,7 @@ Recommends: default-yama-scope
 %if 0%{?el7:1}
 %global librpmver 3
 %else
-%if 0%{?fedora} >= 27
+%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
 %global librpmver 8
 %else
 %global librpmver 7
@@ -762,7 +762,7 @@ BuildRequires: texlive-collection-latexrecommended
 %endif
 # Permit rebuilding *.[0-9] files even if they are distributed in gdb-*.tar:
 BuildRequires: /usr/bin/pod2man
-%if 0%{!?rhel:1}
+%if 0%{!?rhel:1} || 0%{?rhel} > 7
 BuildRequires: libbabeltrace-devel%{buildisa}
 BuildRequires: guile-devel%{buildisa}
 %endif
@@ -834,7 +834,7 @@ BuildRequires: prelink
 BuildRequires: libmpx%{bits_local} libmpx%{bits_other}
 BuildRequires: opencl-headers ocl-icd-devel%{bits_local} ocl-icd-devel%{bits_other}
 %endif
-%if 0%{!?rhel:1}
+%if 0%{!?rhel:1} || 0%{?rhel} > 7
 # Fedora arm+ppc64le do not yet have fpc built.
 %ifnarch %{arm} ppc64le
 BuildRequires: fpc
@@ -1263,7 +1263,7 @@ export CXXFLAGS="$CFLAGS"
 	--with-separate-debug-dir=/usr/lib/debug		\
 	--disable-sim						\
 	--disable-rpath						\
-%if 0%{!?rhel:1}
+%if 0%{!?rhel:1} || 0%{?rhel} > 7
 	--with-babeltrace					\
 	--with-guile						\
 %else
@@ -1596,7 +1596,7 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/stabs*
 
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
-%if 0%{?rhel:1}
+%if 0%{?rhel:1}  && 0%{?rhel} <= 7
 # /usr/share/gdb/guile/ gets installed even --without-guile
 # https://sourceware.org/bugzilla/show_bug.cgi?id=17105
 rm -rf $RPM_BUILD_ROOT%{_datadir}/gdb/guile
@@ -1715,6 +1715,9 @@ then
 fi
 
 %changelog
+* Tue Sep 26 2017 Troy Dawson <tdawson@redhat.com> - 8.0.1-27.fc28
+- Cleanup spec file conditionals
+
 * Tue Sep 12 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 8.0.1-26.fc26
 - Rebase to FSF GDB 8.0.1 (8.0 stable branch).
 

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

only message in thread, other threads:[~2026-06-27 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:58 [rpms/gdb] gdb-17.2-rebase-f44: Cleanup spec file conditionals Troy Dawson

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