spec: enable hardened build

Resolves: #1014133
This commit is contained in:
Michal Sekletar 2013-09-14 18:37:55 +02:00
parent 6b0e9ae5c4
commit be24752376

View File

@ -1,7 +1,9 @@
%global _hardened_build 1
Summary: A network diagnostic tool
Name: mtr
Version: 0.85
Release: 2%{?dist}
Release: 3%{?dist}
Epoch: 2
Group: Applications/Internet
License: GPLv2+
@ -46,6 +48,9 @@ diagnostic tool.
%patch4 -p1
%build
export CFLAGS="%{optflags} -fPIE"
export LDFLAGS="-z now -pie"
%configure --enable-gtk2
make %{?_smp_mflags} && mv mtr xmtr && make distclean
%configure --without-gtk
@ -97,6 +102,9 @@ desktop-file-install \
%{_datadir}/pixmaps/mtr_icon.xpm
%changelog
* Sat Sep 14 2013 Michal Sekletar <msekleta@redhat.com> - 2:0.85-3
- enable hardened build
* Mon Aug 05 2013 Michal Sekletar <msekleta@redhat.com> - 2:0.85-2
- add generate-tarball.sh script