Cleanup spec file conditionals
This commit is contained in:
parent
364e8a5927
commit
1b69fa99d4
15
gdb.spec
15
gdb.spec
@ -26,7 +26,7 @@ Version: 8.0.1
|
|||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 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.
|
# `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
|
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
|
Group: Development/Debuggers
|
||||||
@ -114,7 +114,7 @@ Recommends: default-yama-scope
|
|||||||
%if 0%{?el7:1}
|
%if 0%{?el7:1}
|
||||||
%global librpmver 3
|
%global librpmver 3
|
||||||
%else
|
%else
|
||||||
%if 0%{?fedora} >= 27
|
%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
|
||||||
%global librpmver 8
|
%global librpmver 8
|
||||||
%else
|
%else
|
||||||
%global librpmver 7
|
%global librpmver 7
|
||||||
@ -762,7 +762,7 @@ BuildRequires: texlive-collection-latexrecommended
|
|||||||
%endif
|
%endif
|
||||||
# Permit rebuilding *.[0-9] files even if they are distributed in gdb-*.tar:
|
# Permit rebuilding *.[0-9] files even if they are distributed in gdb-*.tar:
|
||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
%if 0%{!?rhel:1}
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
BuildRequires: libbabeltrace-devel%{buildisa}
|
BuildRequires: libbabeltrace-devel%{buildisa}
|
||||||
BuildRequires: guile-devel%{buildisa}
|
BuildRequires: guile-devel%{buildisa}
|
||||||
%endif
|
%endif
|
||||||
@ -834,7 +834,7 @@ BuildRequires: prelink
|
|||||||
BuildRequires: libmpx%{bits_local} libmpx%{bits_other}
|
BuildRequires: libmpx%{bits_local} libmpx%{bits_other}
|
||||||
BuildRequires: opencl-headers ocl-icd-devel%{bits_local} ocl-icd-devel%{bits_other}
|
BuildRequires: opencl-headers ocl-icd-devel%{bits_local} ocl-icd-devel%{bits_other}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{!?rhel:1}
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
# Fedora arm+ppc64le do not yet have fpc built.
|
# Fedora arm+ppc64le do not yet have fpc built.
|
||||||
%ifnarch %{arm} ppc64le
|
%ifnarch %{arm} ppc64le
|
||||||
BuildRequires: fpc
|
BuildRequires: fpc
|
||||||
@ -1263,7 +1263,7 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
--with-separate-debug-dir=/usr/lib/debug \
|
--with-separate-debug-dir=/usr/lib/debug \
|
||||||
--disable-sim \
|
--disable-sim \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
%if 0%{!?rhel:1}
|
%if 0%{!?rhel:1} || 0%{?rhel} > 7
|
||||||
--with-babeltrace \
|
--with-babeltrace \
|
||||||
--with-guile \
|
--with-guile \
|
||||||
%else
|
%else
|
||||||
@ -1596,7 +1596,7 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/stabs*
|
|||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
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
|
# /usr/share/gdb/guile/ gets installed even --without-guile
|
||||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=17105
|
# https://sourceware.org/bugzilla/show_bug.cgi?id=17105
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/gdb/guile
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/gdb/guile
|
||||||
@ -1715,6 +1715,9 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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).
|
- Rebase to FSF GDB 8.0.1 (8.0 stable branch).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user