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

epel9
Rahul Sundaram 12 years ago
parent ebf452ad49
commit 2fa893bbab

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

Loading…
Cancel
Save