%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
+# Prevent unwanted bytecode stripping by RPM.
+%define __strip /bin/true
+
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1
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
%files
%defattr(-,root,root,-)
%doc COPYING README
+%{_sysconfdir}/prelink.conf.d/%{name}.conf
%{_bindir}/whenjobs
%{_sbindir}/whenjobsd
%{_libdir}/whenjobs/pa_when.cmo