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