[whenjobs] Import from review bug (RHBZ#803089).

Richard W.M. Jones rjones at fedoraproject.org
Fri Jul 20 14:02:35 UTC 2012


commit 4aaeed7d39657519231f9ede31f35e3d1a3badf7
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Jul 20 15:01:02 2012 +0100

    Import from review bug (RHBZ#803089).

 .gitignore    |    1 +
 sources       |    1 +
 whenjobs.spec |   94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1e1eb24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/whenjobs-0.7.3.tar.gz
diff --git a/sources b/sources
index e69de29..f14eb83 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e0fe81dde02284f7e2a6da90d90def16  whenjobs-0.7.3.tar.gz
diff --git a/whenjobs.spec b/whenjobs.spec
new file mode 100644
index 0000000..1c0ea43
--- /dev/null
+++ b/whenjobs.spec
@@ -0,0 +1,94 @@
+%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
+%global debug_package %{nil}
+
+Name:            whenjobs
+Version:         0.7.3
+Release:         1%{?dist}
+Summary:         Replacement for cron with dependencies
+
+Group:           Development/Libraries
+License:         GPLv2+
+URL:             http://people.redhat.com/~rjones/whenjobs
+Source0:         http://people.redhat.com/~rjones/whenjobs/files/%{name}-%{version}.tar.gz
+
+BuildRequires:   ocaml >= 3.12.0
+BuildRequires:   ocaml-ocamldoc
+BuildRequires:   ocaml-findlib-devel
+BuildRequires:   ocaml-calendar-devel >= 2
+BuildRequires:   ocaml-ocamlnet-devel >= 3
+BuildRequires:   ocaml-camlp4-devel
+BuildRequires:   mailx
+
+# For building manual pages.
+BuildRequires:   /usr/bin/perldoc
+
+# Not clear what requires this, but it is needed.
+BuildRequires:   pcre-devel
+BuildRequires:   ocaml-pcre-devel
+
+# Requires camlp4 and ocamlfind at runtime.
+Requires:        /usr/bin/ocamlc
+Requires:        ocaml-camlp4-devel
+Requires:        ocaml-findlib-devel
+
+# Requires mailx for sending email.
+Requires:        mailx
+
+
+%description
+Whenjobs is a powerful but simple cron replacement.
+
+Two key advantages over cron are a simpler syntax for writing rules
+and a powerful dependency system that lets one job depend on variables
+set when other jobs run (allowing, for example, one job to run only
+when another job has finished successfully).
+
+
+%prep
+%setup -q
+
+rm lib/whenproto_aux.ml
+rm lib/whenproto_aux.mli
+
+
+%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}/whenjobs/whenlib.cma
+%endif
+
+# Strip binaries (why doesn't RPM do this?)
+strip --strip-all $RPM_BUILD_ROOT%{_bindir}/whenjobs
+strip --strip-all $RPM_BUILD_ROOT%{_sbindir}/whenjobsd
+
+
+%files
+%doc COPYING README
+%{_bindir}/whenjobs
+%{_sbindir}/whenjobsd
+%dir %{_libdir}/whenjobs
+%{_libdir}/whenjobs/*.cmi
+%{_libdir}/whenjobs/pa_when.cmo
+%if %opt
+%{_libdir}/whenjobs/whenlib.cmxa
+%else
+%{_libdir}/whenjobs/whenlib.cma
+%endif
+%{_mandir}/man1/*.1*
+%{_mandir}/man8/*.8*
+
+
+%changelog
+* Fri Jul 20 2012 Richard W.M. Jones <rjones at redhat.com> - 0.7.3-1
+- Initial release (RHBZ#803089).


More information about the scm-commits mailing list