goaljobs 0.3
[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-camlp4-devel
15 BuildRequires:   ocaml-findlib-devel
16 BuildRequires:   ocaml-calendar-devel
17
18 # For building manual pages.
19 BuildRequires:   perl-podlators
20
21 # For sending email.
22 BuildRequires:   mailx
23
24 # Requires camlp4 and ocamlfind and libraries at runtime.
25 Requires:        /usr/bin/ocamlc
26 Requires:        ocaml-camlp4-devel
27 Requires:        ocaml-findlib-devel
28 Requires:        ocaml-calendar-devel
29
30 Requires:        curl
31 Requires:        mailx
32
33
34 %description
35 Goaljobs is make & cron replacement and business rules manager.
36
37 It can be used in many situations where you want a more powerful
38 'make' or a more powerful 'cron', especially where you have
39 dependencies on network resources.
40
41 This is also an enhancement and replacement for the 'whenjobs'
42 package.
43
44
45 %prep
46 %setup -q
47
48
49 %build
50 %configure
51 make %{?_smp_mflags}
52
53
54 %check
55 make check
56
57
58 %install
59 make DESTDIR=$RPM_BUILD_ROOT install
60
61 %if %opt
62 # Remove bytecode library.
63 rm $RPM_BUILD_ROOT%{_libdir}/ocaml/goaljobs/goaljobs.cma
64 %endif
65
66 # Move the installed documentation out of the way.  It will
67 # be installed using %doc below.
68 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}
69
70
71 %files
72 %doc COPYING README TODO
73 %doc html/*.html html/*.css
74 %{_bindir}/goaljobs
75 %{_bindir}/goaljobs-memory
76 %dir %{_libdir}/ocaml/goaljobs
77 %{_libdir}/ocaml/goaljobs/META
78 %{_libdir}/ocaml/goaljobs/*.mli
79 %{_libdir}/ocaml/goaljobs/*.cmi
80 %{_libdir}/ocaml/goaljobs/pa_goal.cmo
81 %if %opt
82 %{_libdir}/ocaml/goaljobs/goaljobs.cmxa
83 %else
84 %{_libdir}/ocaml/goaljobs/goaljobs.cma
85 %endif
86 %{_mandir}/man1/*.1*
87
88
89 %changelog
90 * Mon Sep 16 2013 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
91 - Initial release.
92
93 # Local variables:
94 # mode: shell-script
95 # sh-shell: rpm
96 # end: