%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) %define debug_package %{nil} Name: ocaml-pa-monad Version: 1.2.0 Release: 3%{?dist} Summary: OCaml syntax extension for monads Group: Development/Libraries License: LGPLv2+ URL: http://www.cas.mcmaster.ca/~carette/pa_monad/ Source0: http://www.cas.mcmaster.ca/~carette/pa_monad/pa_monad.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ocaml >= 3.10.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel %define _use_internal_dependency_generator 0 %define __find_requires /usr/lib/rpm/ocaml-find-requires.sh %define __find_provides /usr/lib/rpm/ocaml-find-provides.sh %description This Camlp4 parser adds some syntactic sugar to beautify monadic expressions. The name of the syntax extension is a bit misleading as it does not provide any monad nor monadic computation. %prep %setup -q -c %build make all doc %check make test %install # These rules work if the library uses 'ocamlfind install' to install itself. rm -rf $RPM_BUILD_ROOT export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs make findlib-install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README ChangeLog html-doc %{_libdir}/ocaml/monad %changelog * Mon May 10 2008 Richard W.M. Jones - 1.2.0-3 - Added a check section. - License doesn't include OCaml exception, just LGPLv2+. * Wed Mar 5 2008 Richard W.M. Jones - 1.2.0-2 - Remove ExcludeArch ppc64. * Thu Feb 28 2008 Richard W.M. Jones - 1.2.0-1 - Initial RPM release.