Name: ocaml-batteries Version: 2.0 Release: 1%{?dist} Summary: Batteries included is a community-driven effort to standardize on an uniform, documented, and comprehensive OCaml development platform. Group: Development/Libraries License: LGPL URL: http://batteries.forge.ocamlcore.org/ Source0: batteries-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) # for the build BuildRequires: make ocaml ocaml-findlib ocaml-findlib-devel ocaml-pcre ocaml-pcre-devel ocaml-camomile ocaml-camlidl ocaml-bisect ocaml-bisect-devel ocaml-ounit ocaml-ounit-devel ocaml-ocamldoc # for benchmark tests, ocaml-benchmark not in fedora #BuildRequires: ocaml-benchmark ocaml-benchmark-devel Requires: ocaml ocaml-camlp4 ocaml-camomile ocaml-findlib ocaml-ounit %description Batteries included is a community-driven effort to standardize on an uniform, documented, and comprehensive OCaml development platform. Batteries included serves the following purposes: * define a standard set of libraries which may be expected on every compliant installation of OCaml * organize these libraries into a hierarchy of modules, with one source of documentation * define a standard set of language extensions which may be expected on every compliant installation of OCaml * provide a consistent API for otherwise independent libraries. %prep %setup -q -n batteries-%{version} %build make make doc #make test %install rm -rf %{buildroot} # doesn't take DESTDIR :( mkdir -p %{buildroot}/%{_libdir}/ocaml/ mkdir -p %{buildroot}/%{_docdir}/ make install make install-doc mv %{_libdir}/ocaml/batteries/ %{buildroot}/%{_libdir}/ocaml/ mv %{_docdir}/ocaml-batteries/ %{buildroot}/%{_docdir}/ocaml-batteries-%{version}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{_docdir}/ocaml-batteries-%{version}/ %{_libdir}/ocaml/batteries/ %changelog