diff --git a/SPECS/acpid.spec b/SPECS/acpid.spec index 7a176ab..3651bec 100644 --- a/SPECS/acpid.spec +++ b/SPECS/acpid.spec @@ -1,7 +1,14 @@ +# hardened build if not overridden +%{!?_hardened_build:%global _hardened_build 1} + +%if %{?_hardened_build}%{!?_hardened_build:0} +%global harden -pie -Wl,-z,relro,-z,now +%endif + Summary: ACPI Event Daemon Name: acpid Version: 2.0.19 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ Group: System Environment/Daemons Source: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz @@ -38,7 +45,7 @@ The acpid-sysvinit contains SysV initscript. %build %configure -make %{?_smp_mflags} +make %{?_smp_mflags} CFLAGS="%{optflags} %{?harden}" %install @@ -117,6 +124,10 @@ fi %changelog +* Wed Sep 2 2015 Jaroslav Škarvada - 2.0.19-6 +- Hardened build + Resolves: rhbz#1092516 + * Tue Feb 18 2014 Jaroslav Škarvada - 2.0.19-5 - Used unitdir macro instead of the hardcoded systemd paths Related: rhbz#1057268