rpms/moc/devel moc.spec,1.13,1.14

Antonio sagitter at rpmfusion.org
Thu Nov 5 17:17:45 CET 2015


Author: sagitter

Update of /cvs/free/rpms/moc/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8747/devel

Modified Files:
	moc.spec 
Log Message:
- Hardened builds



Index: moc.spec
===================================================================
RCS file: /cvs/free/rpms/moc/devel/moc.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- moc.spec	29 Sep 2015 11:15:00 -0000	1.13
+++ moc.spec	5 Nov 2015 16:17:45 -0000	1.14
@@ -1,10 +1,14 @@
+%if 0%{?fedora} <= 22
+%global _hardened_build 1
+%endif
+
 # Set up a new macro to define MOC's 'mocp' executable
 %global   exec   mocp
 
 Name:    moc
 Summary: Music on Console - Console audio player for Linux/UNIX
 Version: 2.6
-Release: 0.5.alpha1%{?dist}
+Release: 0.6.alpha1%{?dist}
 License: GPLv2+ and GPLv3+
 URL:     http://www.moc.daper.net
 
@@ -59,12 +63,14 @@
 autoupdate -v
 mv configure.in configure.ac
 autoreconf -ivf
-%configure --disable-static --disable-silent-rules \
-           --disable-rpath --with-rcc \
-           --with-oss --with-alsa --with-jack --with-aac --with-mp3 \
-           --with-musepack --with-vorbis --with-flac --with-wavpack  \
-           --with-sndfile --with-modplug --with-ffmpeg --with-speex  \
-           --with-samplerate --with-curl --disable-debug --without-magic
+export CFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now"
+export CXXFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now"
+export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,now"
+%configure --disable-static --disable-silent-rules --disable-rpath --with-rcc \
+ --with-oss --with-alsa --with-jack --with-aac --with-mp3 \
+ --with-musepack --with-vorbis --with-flac --with-wavpack  \
+ --with-sndfile --with-modplug --with-ffmpeg --with-speex  \
+ --with-samplerate --with-curl --disable-debug --without-magic
 make %{?_smp_mflags}
 
 %install
@@ -85,6 +91,9 @@
 %{_libdir}/%{name}/
 
 %changelog
+* Sun Nov 01 2015 Antonio Trande <sagitter at fedoraproject.org> - 2.6-0.6.alpha1
+- Hardened builds on <F23
+
 * Tue Sep 29 2015 Antonio Trande <sagitter at fedoraproject.org> - 2.6-0.5.alpha1
 - Update to svn commit #2776
 - Used %%license macro


More information about the rpmfusion-commits mailing list