%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: @RPM_RELEASE@%{?dist}
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
+# Remove bytecode library.
+rm $RPM_BUILD_ROOT%{_libdir}/whenjobs/whenlib.cma
+
+# Strip binaries (why doesn't RPM do this?)
+strip --strip-all $RPM_BUILD_ROOT%{_bindir}/whenjobs
+strip --strip-all $RPM_BUILD_ROOT%{_sbindir}/whenjobsd
%files
%doc COPYING README
-%{_sysconfdir}/prelink.conf.d/%{name}.conf
%{_bindir}/whenjobs
%{_sbindir}/whenjobsd
%dir %{_libdir}/whenjobs
%{_libdir}/whenjobs/*.cmi
%{_libdir}/whenjobs/pa_when.cmo
-%{_libdir}/whenjobs/whenlib.cma
+%{_libdir}/whenjobs/whenlib.cmxa
%{_mandir}/man1/*.1*
%{_mandir}/man8/*.8*
%changelog
-* Sun Mar 18 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
+* Wed Mar 21 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
- Initial release.