%global debug_package %{nil} Name: ocaml-oasis Version: 0.4.11 Release: 1%{?dist} Summary: Tooling for building OCaml libraries and applications License: LGPLv2+ with exceptions URL: http://oasis.forge.ocamlcore.org/ Source0: https://forge.ocamlcore.org/frs/download.php/1757/oasis-%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-ocamlbuild-devel BuildRequires: ocaml-findlib-devel BuildRequires: ocamlify BuildRequires: ocamlmod BuildRequires: ocaml-ocamldoc BuildRequires: help2man %description OASIS generates a full configure, build and install system for your application. It starts with a simple _oasis file at the toplevel of your project and creates everything required. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n oasis-%{version} %build ocaml setup.ml -configure \ --destdir $RPM_BUILD_ROOT \ --prefix %{_prefix} ocaml setup.ml -build %install export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR ocaml setup.ml -install # generate manpage mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/ help2man $RPM_BUILD_ROOT%{_bindir}/oasis \ --output $RPM_BUILD_ROOT%{_mandir}/man1/oasis.1 \ --name "Tooling for building OCaml libraries and applications" \ --version-string %{version} \ --no-info %check ocaml setup.ml -test %files %doc README.md CHANGES.txt %license COPYING.txt %{_bindir}/* %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs %endif %{_mandir}/man1/* %files devel %doc README.md CHANGES.txt %license COPYING.txt %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/*/*.a %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa %endif %{_libdir}/ocaml/*/*.annot %{_libdir}/ocaml/*/*.cma %{_libdir}/ocaml/*/*.cmi %{_libdir}/ocaml/*/*.cmt %{_libdir}/ocaml/*/*.cmti %{_libdir}/ocaml/*/*.ml %{_libdir}/ocaml/*/*.mli %{_libdir}/ocaml/*/META %changelog * Thu Apr 05 2018 Andy Li - 0.4.11-1 - New upstream release. (#1563675) * Thu Feb 08 2018 Fedora Release Engineering - 0.4.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Dec 13 2017 Richard W.M. Jones - 0.4.10-3 - Rebuild against new ocamlbuild. * Sat Dec 02 2017 Richard W.M. Jones - 0.4.10-2 - OCaml 4.06.0 rebuild. * Wed Nov 15 2017 Andy Li - 0.4.10-1 - Initial RPM release.