Add prelink blacklist to specfile.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 22 Feb 2012 11:22:37 +0000 (11:22 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 22 Feb 2012 11:22:37 +0000 (11:22 +0000)
whenjobs.spec.in

index 70b85fb..22ad6de 100644 (file)
@@ -54,6 +54,13 @@ rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR=$RPM_BUILD_ROOT install
 
+# Add a prelink blacklist.
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
+cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
+-b %{_bindir}/whenjobs
+-b %{_sbindir}/whenjobsd
+EOF
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -62,6 +69,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc COPYING README
+%{_sysconfdir}/prelink.conf.d/%{name}.conf
 %{_bindir}/whenjobs
 %{_sbindir}/whenjobsd
 %{_libdir}/whenjobs/pa_when.cmo