70b85fb2bb2dc1f51c39798775ffc0f801cac259
[whenjobs.git] / whenjobs.spec.in
1 %define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %define debug_package %{nil}
3
4 Name:            @PACKAGE_NAME@
5 Version:         @PACKAGE_VERSION@
6 Release:         1
7 Summary:         Replacement for cron with dependencies
8
9 Group:           Development/Libraries
10 License:         GPLv2+
11 URL:             http://people.redhat.com/~rjones/whenjobs
12 Source0:         http://people.redhat.com/~rjones/whenjobs/files/%{name}-%{version}.tar.gz
13
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
20
21 # For building manual pages.
22 BuildRequires:   /usr/bin/perldoc
23
24 # Requires camlp4 and ocamlfind at runtime.
25 Requires:        /usr/bin/ocamlc
26 Requires:        ocaml-camlp4-devel
27 Requires:        ocaml-findlib-devel
28
29
30 %description
31 Whenjobs is a powerful but simple cron replacement.
32
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).
37
38
39 %prep
40 %setup -q
41
42
43 %build
44 %configure
45 make %{?_smp_mflags}
46
47
48 %check
49 make check
50
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make DESTDIR=$RPM_BUILD_ROOT install
56
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61
62 %files
63 %defattr(-,root,root,-)
64 %doc COPYING README
65 %{_bindir}/whenjobs
66 %{_sbindir}/whenjobsd
67 %{_libdir}/whenjobs/pa_when.cmo
68 %{_libdir}/whenjobs/whenlib.cma
69 %{_mandir}/man1/*.1*
70 %{_mandir}/man8/*.8*
71
72
73 %changelog
74 * Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
75 - Initial release.