1 %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %global debug_package %{nil}
5 Version: @PACKAGE_VERSION@
6 Release: @RPM_RELEASE@%{?dist}
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
22 # For building manual pages.
23 BuildRequires: /usr/bin/perldoc
25 # Not clear what requires this, but it is needed.
26 BuildRequires: pcre-devel
27 BuildRequires: ocaml-pcre-devel
29 # Requires camlp4 and ocamlfind at runtime.
30 Requires: /usr/bin/ocamlc
31 Requires: ocaml-camlp4-devel
32 Requires: ocaml-findlib-devel
34 # Requires mailx for sending email.
39 Whenjobs is a powerful but simple cron replacement.
41 Two key advantages over cron are a simpler syntax for writing rules
42 and a powerful dependency system that lets one job depend on variables
43 set when other jobs run (allowing, for example, one job to run only
44 when another job has finished successfully).
61 make DESTDIR=$RPM_BUILD_ROOT install
63 # Remove bytecode library.
64 rm $RPM_BUILD_ROOT%{_libdir}/whenjobs/whenlib.cma
66 # Strip binaries (why doesn't RPM do this?)
67 strip --strip-all $RPM_BUILD_ROOT%{_bindir}/whenjobs
68 strip --strip-all $RPM_BUILD_ROOT%{_sbindir}/whenjobsd
75 %dir %{_libdir}/whenjobs
76 %{_libdir}/whenjobs/*.cmi
77 %{_libdir}/whenjobs/pa_when.cmo
78 %{_libdir}/whenjobs/whenlib.cmxa
84 * Wed Mar 21 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@