1 %define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %define debug_package %{nil}
4 # Prevent unwanted bytecode stripping by RPM.
5 %define __strip /bin/true
8 Version: @PACKAGE_VERSION@
10 Summary: Replacement for cron with dependencies
12 Group: Development/Libraries
14 URL: http://people.redhat.com/~rjones/whenjobs
15 Source0: http://people.redhat.com/~rjones/whenjobs/files/%{name}-%{version}.tar.gz
17 BuildRequires: ocaml >= 3.12.0
18 BuildRequires: ocaml-ocamldoc
19 BuildRequires: ocaml-findlib-devel
20 BuildRequires: ocaml-calendar-devel >= 2
21 BuildRequires: ocaml-ocamlnet-devel >= 3
22 BuildRequires: ocaml-camlp4-devel
25 # For building manual pages.
26 BuildRequires: /usr/bin/perldoc
28 # Requires camlp4 and ocamlfind at runtime.
29 Requires: /usr/bin/ocamlc
30 Requires: ocaml-camlp4-devel
31 Requires: ocaml-findlib-devel
33 # Requires mailx for sending email.
38 Whenjobs is a powerful but simple cron replacement.
40 Two key advantages over cron are a simpler syntax for writing rules
41 and a powerful dependency system that lets one job depend on variables
42 set when other jobs run (allowing, for example, one job to run only
43 when another job has finished successfully).
60 rm -rf $RPM_BUILD_ROOT
62 make DESTDIR=$RPM_BUILD_ROOT install
64 # Add a prelink blacklist.
65 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
66 cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
67 -b %{_bindir}/whenjobs
68 -b %{_sbindir}/whenjobsd
73 rm -rf $RPM_BUILD_ROOT
77 %defattr(-,root,root,-)
79 %{_sysconfdir}/prelink.conf.d/%{name}.conf
82 %{_libdir}/whenjobs/*.cmi
83 %{_libdir}/whenjobs/pa_when.cmo
84 %{_libdir}/whenjobs/whenlib.cma
90 * Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@