%define modname benchmark Name: ocaml-%{modname} Version: 1.2 Release: %mkrel 3 Summary: OCaml module for benchmarking code Group: Development/OCaml License: LGPLv2+ with linking exception URL: http://ocaml-benchmark.forge.ocamlcore.org/ Source0: http://download.ocamlcore.org/%{name}/%{name}/%{version}/%{modname}-%{version}.tar.gz BuildRequires: ocaml-compiler BuildRequires: ocaml-findlib BuildRequires: ocaml-pcre-devel BuildRequires: ocaml-oasis BuildRequires: camlp4 %description OCaml Benchmark is a small module to benchmark running times of code. %package devel Summary: Development files for %{name} Requires: %{name} = %{EVRD} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n %{modname}-%{version} %build oasis setup ocaml setup.ml -configure ocaml setup.ml -build %install export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR ocaml setup.ml -install ocaml setup.ml -doc mv API.docdir api-html %files %doc README.md %dir %{_libdir}/ocaml/%{modname} %{_libdir}/ocaml/%{modname}/META %{_libdir}/ocaml/%{modname}/*.cma %{_libdir}/ocaml/%{modname}/*.cmx %{_libdir}/ocaml/%{modname}/*.cmi %{_libdir}/ocaml/%{modname}/*.cmxs %files devel %doc LICENSE.txt %doc examples/ %doc api-html/ %{_libdir}/ocaml/%{modname}/*.a %{_libdir}/ocaml/%{modname}/*.cmxa %{_libdir}/ocaml/%{modname}/*.mli %changelog * Sat Oct 19 2013 umeabot <umeabot> 1.2-3.mga4 + Revision: 536413 - Mageia 4 Mass Rebuild * Mon Sep 23 2013 blue_prawn <blue_prawn> 1.2-2.mga4 + Revision: 484223 - rebuild for ocaml-4.01.0 * Sat Jun 29 2013 malo <malo> 1.2-1.mga4 + Revision: 448323 - update to 1.2 and spec clean-up + blue_prawn <blue_prawn> - providing the generated api documentation - providing the examples - don't create unneeded directories - use a safer URI - if you would use this link you would get the previous version 1.0 even if there is 1.1 after due to how fusion forge works * Sat Jan 12 2013 umeabot <umeabot> 1.1-4.mga3 + Revision: 361156 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Oct 17 2012 malo <malo> 1.1-3.mga3 + Revision: 307712 - fix buildrequires - fix compilation + blue_prawn <blue_prawn> - new rpm group for ocaml - new rpm group for ocaml * Thu Mar 01 2012 blue_prawn <blue_prawn> 1.1-1.mga2 + Revision: 216285 - update to new version 1.1 * Sat Oct 22 2011 malo <malo> 1.0-2.mga2 + Revision: 157422 - update license and rebuild for Ocaml 3.12.1 * Sun Sep 25 2011 shlomif <shlomif> 1.0-1.mga2 + Revision: 147786 - New version - thank to Malo * Tue Apr 12 2011 ennael <ennael> 0.9-1.mga1 + Revision: 83664 - fix release tag - Imported package ocaml-benchmark from Mandriva where it was made by Per ?\195?\152yvind Karlsen. * Sun Apr 10 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.9-1 + Revision: 652421 - imported package ocaml-benchmark * Sun Apr 10 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.9-1 - initial package