Hardened build

This commit is contained in:
Matthias Clasen 2013-01-22 14:17:36 -05:00
parent 0c6923ae00
commit 7b55873eb0
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
%define glib2_version 2.31.13
%define gobject_introspection_version 1.30.0
%define gobject_intuirospection_version 1.30.0
%define polkit_version 0.101
%define systemd_version 184
%define libatasmart_version 0.12
@ -8,7 +8,7 @@
Summary: Disk Manager
Name: udisks2
Version: 2.0.91
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://www.freedesktop.org/wiki/Software/udisks
@ -94,6 +94,10 @@ daemon. This package is for the udisks 2.x series.
%setup -q -n udisks-%{version}
%build
# we can't use _hardened_build here, see
# https://bugzilla.redhat.com/show_bug.cgi?id=892837
export CFLAGS='-fPIC %optflags'
export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro'
%configure --enable-gtk-doc
make
@ -151,6 +155,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
# Note: please don't forget the %{?dist} in the changelog. Thanks
%changelog
* Tue Jan 22 2013 Matthias Clasen <mclasen@redhat.com> - 2.0.91-2%{?dist}
- Hardened build
* Mon Jan 07 2013 David Zeuthen <davidz@redhat.com> - 2.0.91-1%{?dist}
- Update to release 2.0.91