diff --git a/udisks2.spec b/udisks2.spec index 8aba64b..a39a5ac 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -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 - 2.0.91-2%{?dist} +- Hardened build + * Mon Jan 07 2013 David Zeuthen - 2.0.91-1%{?dist} - Update to release 2.0.91