Simplified macros check related to hardening

This commit is contained in:
Jaroslav Škarvada 2015-09-02 12:32:48 +02:00
parent ba574e01a2
commit 48dcc21e3f

View File

@ -1,14 +1,14 @@
# hardened build if not overrided
%{!?_hardened_build:%global _hardened_build 1}
%if %{?_hardened_build:%{_hardened_build}}%{!?_hardened_build:0}
%if %{?_hardened_build}%{!?_hardened_build:0}
%global harden -pie -Wl,-z,relro,-z,now
%endif
Summary: ACPI Event Daemon
Name: acpid
Version: 2.0.25
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz
@ -135,6 +135,9 @@ fi
%changelog
* Wed Sep 2 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.25-2
- Simplified macros check related to hardening
* Mon Aug 17 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.25-1
- New version
Resolves: rhbz#1253985