Lots of documentation.
[goaljobs.git] / goaljobs.spec.in
1 %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2
3 Name:            @PACKAGE_NAME@
4 Version:         @PACKAGE_VERSION@
5 Release:         @RPM_RELEASE@%{?dist}
6 Summary:         Make & cron replacement and business rules manager.
7 License:         GPLv2+
8
9 URL:             http://people.redhat.com/~rjones/goaljobs
10 Source0:         http://people.redhat.com/~rjones/goaljobs/files/%{name}-%{version}.tar.gz
11
12 BuildRequires:   ocaml >= 3.12.0
13 BuildRequires:   ocaml-ocamldoc
14 BuildRequires:   ocaml-findlib-devel
15 BuildRequires:   ocaml-camlp4-devel
16
17 # For building manual pages.
18 BuildRequires:   perl-podlators
19
20 # Requires camlp4 and ocamlfind at runtime.
21 Requires:        /usr/bin/ocamlc
22 Requires:        ocaml-camlp4-devel
23 Requires:        ocaml-findlib-devel
24
25
26 %description
27 Goaljobs is make & cron replacement and business rules manager.
28
29 It can be used in many situations where you want a more powerful
30 'make' or a more powerful 'cron', especially where you have
31 dependencies on network resources.
32
33 This is also an enhancement and replacement for the 'whenjobs'
34 package.
35
36
37 %prep
38 %setup -q
39
40
41 %build
42 %configure
43 make %{?_smp_mflags}
44
45
46 %check
47 make check
48
49
50 %install
51 make DESTDIR=$RPM_BUILD_ROOT install
52
53 %if %opt
54 # Remove bytecode library.
55 rm $RPM_BUILD_ROOT%{_libdir}/ocaml/goaljobs/goaljobs.cma
56 %endif
57
58
59 %files
60 %doc COPYING README
61 %{_bindir}/goaljobs
62 %dir %{_libdir}/ocaml/goaljobs
63 %{_libdir}/ocaml/goaljobs/META
64 %{_libdir}/ocaml/goaljobs/*.mli
65 %{_libdir}/ocaml/goaljobs/*.cmi
66 %{_libdir}/ocaml/goaljobs/pa_goal.cmo
67 %if %opt
68 %{_libdir}/ocaml/goaljobs/goaljobs.cmxa
69 %else
70 %{_libdir}/ocaml/goaljobs/goaljobs.cma
71 %endif
72 %{_mandir}/man1/*.1*
73
74
75 %changelog
76 * Mon Sep 16 2013 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
77 - Initial release.