X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=whenjobs.spec.in;h=f9ee9618ff2b5ce2f9020d3f4e13238711488bf1;hp=70b85fb2bb2dc1f51c39798775ffc0f801cac259;hb=6c41dfae8a0d60cab2fd3b82f73b762972496c2c;hpb=61cad7bbaf63389b520b695eefdd735bc11a8aa6 diff --git a/whenjobs.spec.in b/whenjobs.spec.in index 70b85fb..f9ee961 100644 --- a/whenjobs.spec.in +++ b/whenjobs.spec.in @@ -1,9 +1,12 @@ %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 +Release: @RPM_RELEASE@ Summary: Replacement for cron with dependencies Group: Development/Libraries @@ -26,6 +29,9 @@ Requires: /usr/bin/ocamlc Requires: ocaml-camlp4-devel Requires: ocaml-findlib-devel +# Requires mailx for sending email. +Requires: /usr/bin/mailx + %description Whenjobs is a powerful but simple cron replacement. @@ -54,6 +60,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 <$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf +-b %{_bindir}/whenjobs +-b %{_sbindir}/whenjobsd +EOF + %clean rm -rf $RPM_BUILD_ROOT @@ -62,8 +75,10 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README +%{_sysconfdir}/prelink.conf.d/%{name}.conf %{_bindir}/whenjobs %{_sbindir}/whenjobsd +%{_libdir}/whenjobs/*.cmi %{_libdir}/whenjobs/pa_when.cmo %{_libdir}/whenjobs/whenlib.cma %{_mandir}/man1/*.1* @@ -71,5 +86,5 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Fri Feb 17 2012 Richard W.M. Jones - @PACKAGE_VERSION@-1 +* Fri Feb 17 2012 Richard W.M. Jones - @PACKAGE_VERSION@-@RPM_RELEASE@ - Initial release.