%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ Release: @RPM_RELEASE@%{?dist} Summary: Make & cron replacement and business rules manager. License: GPLv2+ URL: http://people.redhat.com/~rjones/goaljobs Source0: http://people.redhat.com/~rjones/goaljobs/files/%{name}-%{version}.tar.gz BuildRequires: ocaml >= 3.12.0 BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-camlp4-devel # For building manual pages. BuildRequires: /usr/bin/perldoc # Requires camlp4 and ocamlfind at runtime. Requires: /usr/bin/ocamlc Requires: ocaml-camlp4-devel Requires: ocaml-findlib-devel %description Goaljobs is make & cron replacement and business rules manager. It can be used in many situations where you want a more powerful 'make' or a more powerful 'cron', especially where you have dependencies on network resources. This is also an enhancement and replacement for the 'whenjobs' package. %prep %setup -q %build %configure make %{?_smp_mflags} %check make check %install make DESTDIR=$RPM_BUILD_ROOT install %if %opt # Remove bytecode library. rm $RPM_BUILD_ROOT%{_libdir}/ocaml/goaljobs/goaljobs.cma %endif %files %doc COPYING README %{_bindir}/goaljobs %dir %{_libdir}/ocaml/goaljobs %{_libdir}/ocaml/goaljobs/META %{_libdir}/ocaml/goaljobs/*.mli %{_libdir}/ocaml/goaljobs/*.cmi %{_libdir}/ocaml/goaljobs/pa_goal.cmo %if %opt %{_libdir}/ocaml/goaljobs/goaljobs.cmxa %else %{_libdir}/ocaml/goaljobs/goaljobs.cma %endif #%{_mandir}/man1/*.1* %changelog * Mon Sep 16 2013 Richard W.M. Jones - @PACKAGE_VERSION@-@RPM_RELEASE@ - Initial release.