Assure that the build is compliant with RHEL security rules

Add the %{optflags} and %{build_ldflags} macros to get the standard
build flags to meet RHEL requirements.
Bump the nvr to 1.10.2-3.
Resolves: rhbz#1922002
This commit is contained in:
Tony Camuso 2021-07-27 10:14:08 -04:00
parent 973429b029
commit 152d9753e1

View File

@ -1,7 +1,7 @@
Summary: Performs a verified launch using Intel TXT
Name: tboot
Version: 1.10.2
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 1
License: BSD
@ -27,7 +27,8 @@ and verified launch of an OS kernel/VMM.
%autosetup -p1 -n %{name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
CFLAGS="%{optflags}"; export CFLAGS
LDFLAGS="%{build_ldflags}"; export LDFLAGS
make debug=y %{?_smp_mflags}
%install
@ -57,6 +58,11 @@ make debug=y DISTDIR=$RPM_BUILD_ROOT install
/boot/tboot-syms
%changelog
* Tue Jul 27 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-3
- Add the %{optflags} and %{build_ldflags} macros to assure the
build meets RHEL security requirements.
Resolves: rhbz#1922002
* Thu Jul 22 2021 Tony Camuso <tcamuso@redhat.com> - 1:1.10.2-2
- Bump the NVR as a result of including the gating.yaml file in
the git repo.