[transmission] use hardened build macro and enable fPIC for Qt build. resolves rhbz#955268

Rahul Sundaram sundaram at fedoraproject.org
Thu Apr 25 19:41:54 UTC 2013


commit 2fa893bbab158bebc57d2fc577cdaa6a174c3e73
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Thu Apr 25 15:41:23 2013 -0400

    use hardened build macro and enable fPIC for Qt build. resolves rhbz#955268

 transmission.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/transmission.spec b/transmission.spec
index 3056036..7e0c9ff 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -1,6 +1,8 @@
+%global _hardened_build 1
+
 Name:           transmission
 Version:        2.77
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A lightweight GTK+ BitTorrent client
 
 Group:          Applications/Internet
@@ -94,16 +96,18 @@ iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
 mv NEWS.new NEWS
 
 %build
+
+CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
+
 %configure --disable-static --enable-utp --enable-daemon \
            --enable-nls --enable-cli --enable-daemon  --with-gnu-ld 
 make %{?_smp_mflags}
 
 pushd qt
-qmake-qt4 QMAKE_LFLAGS="$RPM_LD_FLAGS" qtr.pro
+qmake-qt4 QMAKE_LFLAGS="$RPM_LD_FLAGS" QMAKE_CXXFLAGS="$CXXFLAGS" qtr.pro
 make %{?_smp_mflags}
 popd
 
-
 %install
 mkdir -p %{buildroot}%{_unitdir}
 install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/transmission-daemon.service
@@ -183,6 +187,9 @@ update-desktop-database > /dev/null 2>&1 || :
 %doc %{_mandir}/man1/transmission-qt.*
 
 %changelog
+* Mon Apr 22 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 2.77-3
+- use hardened build macro and enable fPIC for Qt build. resolves rhbz#955268
+
 * Tue Apr 02 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 2.77-2
 - fix use of systemd macros to apply to daemon subpackage only
 
@@ -240,7 +247,7 @@ update-desktop-database > /dev/null 2>&1 || :
 * Wed Oct 26 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.42-2
 - Rebuilt for glibc bug#747377
 
-* Sat Oct 23 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 2.42-1
+* Sun Oct 23 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 2.42-1
 - upstream release 2.42
 - https://trac.transmissionbt.com/wiki/Changes#version-2.42
 
@@ -339,7 +346,7 @@ update-desktop-database > /dev/null 2>&1 || :
 - Some bug fixes
 - http://trac.transmissionbt.com/query?groupdesc=1&group=component&milestone=1.92&order=severity
 
-* Mon Mar 07 2010 Rahul Sundaram <sundaram at fedoraproject.org> - 1.91-3
+* Sun Mar 07 2010 Rahul Sundaram <sundaram at fedoraproject.org> - 1.91-3
 - Don't lose user configuration with updates 
 - Fixes rhbz#571044
 


More information about the scm-commits mailing list