X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=whenjobs.spec.in;fp=whenjobs.spec.in;h=70b85fb2bb2dc1f51c39798775ffc0f801cac259;hp=0000000000000000000000000000000000000000;hb=61cad7bbaf63389b520b695eefdd735bc11a8aa6;hpb=21298f7a45ee536800be5e771438b01089a5cb2c diff --git a/whenjobs.spec.in b/whenjobs.spec.in new file mode 100644 index 0000000..70b85fb --- /dev/null +++ b/whenjobs.spec.in @@ -0,0 +1,75 @@ +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%define debug_package %{nil} + +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Release: 1 +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 + +# 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 +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 + + +%build +%configure +make %{?_smp_mflags} + + +%check +make check + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING README +%{_bindir}/whenjobs +%{_sbindir}/whenjobsd +%{_libdir}/whenjobs/pa_when.cmo +%{_libdir}/whenjobs/whenlib.cma +%{_mandir}/man1/*.1* +%{_mandir}/man8/*.8* + + +%changelog +* Fri Feb 17 2012 Richard W.M. Jones - @PACKAGE_VERSION@-1 +- Initial release.