Avoid use of undefined rpm variable

%{_root_datair} is defined as ${_prefix}/share by the %scl_package
macro, which we don't invoke, so replace its use accordingly.

Resolves: RHEL-30154
This commit is contained in:
Patrick Palka 2024-04-29 10:56:37 -04:00
parent e36651ec5f
commit 3e99124696

View File

@ -149,7 +149,7 @@ Summary: C++ compatibility runtime library for SAP applications
Name: %{?scl_prefix}c++-13
ExclusiveArch: x86_64 ppc64le s390x
Version: %{gcc_version}
Release: %{gcc_release}.3.1%{?dist}
Release: %{gcc_release}.3.2%{?dist}
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@ -630,7 +630,7 @@ CONFIGURE_OPTS="\
%endif
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
--enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=%{_root_datadir}/zoneinfo \
--enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=%{_prefix}/share/zoneinfo \
%ifnarch %{mips}
--with-linker-hash-style=gnu \
%endif
@ -867,5 +867,5 @@ fi
%end
%changelog
* Sun Apr 28 2024 Patrick Palka <ppalka@redhat.com> 13.2.1-6.3.1
* Mon Apr 29 2024 Patrick Palka <ppalka@redhat.com> 13.2.1-6.3.2
- new package