name = grub
version = 2.00
-release = 3
+release = 5.1
sup_arches = x86_64 i686
groups = System/Boot
gettext
libdevmapper-devel
ncurses-devel
+ paxctl
zlib-devel
%{unifont}
end
--disable-werror \
CFLAGS="$(echo %{CFLAGS} | sed \
-e 's/-Wp,-D_FORTIFY_SOURCE=2//g' \
+ -e 's/-fstack-protector-strong//g' \
-e 's/-fstack-protector-all//g' \
-e 's/-fstack-protector//g' \
-e 's/-fPIC//g' \
%{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-Bold-14.pf2 \
-s 14 %{datadir}/fonts/dejavu/DejaVuSans-Bold.ttf
popd
+
+ # Disable hardening.
+ paxctl -mpes \
+ %{BUILDROOT}%{sbindir}/grub-bios-setup \
+ %{BUILDROOT}%{sbindir}/grub-probe
+
+ paxctl -mpex \
+ %{BUILDROOT}%{bindir}/grub-script-check
end
debuginfo_strict_build_id = false
quality-agent
whitelist_nx
- /usr/bin/*|/usr/sbin/*
+ %{bindir}/*|%{sbindir}/*
end
end