1 %define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %define debug_package %{nil}
5 Version: @PACKAGE_VERSION@
7 Summary: Replacement for cron with dependencies
9 Group: Development/Libraries
11 URL: http://people.redhat.com/~rjones/whenjobs
12 Source0: http://people.redhat.com/~rjones/whenjobs/files/%{name}-%{version}.tar.gz
14 BuildRequires: ocaml >= 3.12.0
15 BuildRequires: ocaml-ocamldoc
16 BuildRequires: ocaml-findlib-devel
17 BuildRequires: ocaml-calendar-devel >= 2
18 BuildRequires: ocaml-ocamlnet-devel >= 3
19 BuildRequires: ocaml-camlp4-devel
21 # For building manual pages.
22 BuildRequires: /usr/bin/perldoc
24 # Requires camlp4 and ocamlfind at runtime.
25 Requires: /usr/bin/ocamlc
26 Requires: ocaml-camlp4-devel
27 Requires: ocaml-findlib-devel
31 Whenjobs is a powerful but simple cron replacement.
33 Two key advantages over cron are a simpler syntax for writing rules
34 and a powerful dependency system that lets one job depend on variables
35 set when other jobs run (allowing, for example, one job to run only
36 when another job has finished successfully).
53 rm -rf $RPM_BUILD_ROOT
55 make DESTDIR=$RPM_BUILD_ROOT install
57 # Add a prelink blacklist.
58 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
59 cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
60 -b %{_bindir}/whenjobs
61 -b %{_sbindir}/whenjobsd
66 rm -rf $RPM_BUILD_ROOT
70 %defattr(-,root,root,-)
72 %{_sysconfdir}/prelink.conf.d/%{name}.conf
75 %{_libdir}/whenjobs/pa_when.cmo
76 %{_libdir}/whenjobs/whenlib.cma
82 * Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1