public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: [rhel5] Fix up the previous commit (BZ 799318).
@ 2026-06-27 23:55 Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2026-06-27 23:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 46d8530cd6c11f2cd2a700b274433412b626b78a
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date : 2012-03-04T18:52:21+01:00
Stats : +11/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/46d8530cd6c11f2cd2a700b274433412b626b78a?branch=gdb-17.2-rebase-f44
Log:
[rhel5] Fix up the previous commit (BZ 799318).
---
diff --git a/gdb.spec b/gdb.spec
index dceecde..6422732 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -33,7 +33,7 @@ Version: 7.4.50.%{snap}
# 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 BSD and Public Domain
Group: Development/Debuggers
@@ -582,6 +582,11 @@ BuildRequires: libstdc++%{?_isa}
# gdb-doc in PDF:
BuildRequires: texinfo-tex
+# BuildArch would break RHEL-5 by overriding arch and not building noarch.
+%if 0%{?el5:1}
+ExclusiveArch: noarch i386 x86_64 ppc ppc64 ia64 s390 s390x
+%endif # 0%{?el5:1}
+
%if 0%{?_with_testsuite:1}
# Ensure the devel libraries are installed for both multilib arches.
@@ -684,11 +689,9 @@ Summary: Documentation for GDB (the GNU source-level debugger)
License: GFDL
Group: Documentation
# It would break RHEL-5 by overriding arch and not building noarch separately.
-%if 0%{?el5:1}
-ExclusiveArch: noarch i386 x86_64 ppc ppc64 ia64 s390 s390x
-%else # !0%{?el5:1}
+%if 0%{!?el5:1}
BuildArch: noarch
-%endif # !0%{?el5:1}
+%endif # 0%{!?el5:1}
%description doc
GDB, the GNU debugger, allows you to debug programs written in C, C++,
@@ -1293,6 +1296,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog
+* Sun Mar 4 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-27.fc17
+- [rhel5] Fix up the previous commit (BZ 799318).
+
* Sun Mar 4 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-26.fc17
- [rhel5] Fix up the previous commit (BZ 799318).
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/gdb] gdb-17.2-rebase-f44: [rhel5] Fix up the previous commit (BZ 799318).
@ 2026-06-27 23:55 Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2026-06-27 23:55 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 9fd125663d912998c766191b90c8f05626963641
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date : 2012-03-04T18:19:48+01:00
Stats : +36/-23 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/9fd125663d912998c766191b90c8f05626963641?branch=gdb-17.2-rebase-f44
Log:
[rhel5] Fix up the previous commit (BZ 799318).
---
diff --git a/gdb.spec b/gdb.spec
index 6f0e04c..dceecde 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -33,7 +33,7 @@ Version: 7.4.50.%{snap}
# 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: 25%{?dist}
+Release: 26%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group: Development/Debuggers
@@ -677,6 +677,7 @@ machine than the one which is running the program being debugged.
# It would break RHEL-5 by leaving excessive files for the doc subpackage.
%endif # !noarch
+%if 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%package doc
Summary: Documentation for GDB (the GNU source-level debugger)
@@ -699,6 +700,8 @@ This package provides INFO, HTML and PDF user manual for GDB.
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
+%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
+
%prep
%setup -q -n %{gdb_src}
@@ -1195,6 +1198,10 @@ ln -s gstack $RPM_BUILD_ROOT%{_bindir}/pstack
)
# It would break RHEL-5 by leaving excessive files for the doc subpackage.
+%if 0%{?el5:1}
+rm -f $RPM_BUILD_ROOT%{_infodir}/annotate.info*
+rm -f $RPM_BUILD_ROOT%{_infodir}/gdb.info*
+%endif # 0%{?el5:1}
%else # noarch
# -j1: There is some race resulting in:
# /usr/bin/texi2dvi: texinfo.tex appears to be broken, quitting.
@@ -1213,28 +1220,6 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf $RPM_BUILD_ROOT
-%post doc
-# This step is part of the installation of the RPM. Not to be confused
-# with the 'make install ' of the build (rpmbuild) process.
-
-# For --excludedocs:
-if [ -e %{_infodir}/gdb.info.gz ]
-then
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
- /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
-fi
-
-%preun doc
-if [ $1 = 0 ]
-then
- # For --excludedocs:
- if [ -e %{_infodir}/gdb.info.gz ]
- then
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
- /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
- fi
-fi
-
# It would break RHEL-5 by leaving excessive files for the doc subpackage.
%ifnarch noarch
@@ -1275,6 +1260,7 @@ fi
# It would break RHEL-5 by leaving excessive files for the doc subpackage.
%endif # !noarch
+%if 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%files doc
%doc %{gdb_build}/gdb/doc/{gdb,annotate}.{html,pdf}
@@ -1282,7 +1268,34 @@ fi
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*
+%post doc
+# This step is part of the installation of the RPM. Not to be confused
+# with the 'make install ' of the build (rpmbuild) process.
+
+# For --excludedocs:
+if [ -e %{_infodir}/gdb.info.gz ]
+then
+ /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
+ /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
+fi
+
+%preun doc
+if [ $1 = 0 ]
+then
+ # For --excludedocs:
+ if [ -e %{_infodir}/gdb.info.gz ]
+ then
+ /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
+ /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
+ fi
+fi
+
+%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
+
%changelog
+* Sun Mar 4 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-26.fc17
+- [rhel5] Fix up the previous commit (BZ 799318).
+
* Sun Mar 4 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-25.fc17
- [rhel5] Workaround rpmbuild to make the doc subpkg noarch again (BZ 799318).
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-27 23:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:55 [rpms/gdb] gdb-17.2-rebase-f44: [rhel5] Fix up the previous commit (BZ 799318) Jan Kratochvil
-- strict thread matches above, loose matches on Subject: below --
2026-06-27 23:55 Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox