From 1bd05dbad70144160c30772b2f8a2b37bc25f612 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:08:43 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.4-1mamba;Sun May 05 2019] --- README.md | 2 ++ opam.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 opam.spec diff --git a/README.md b/README.md index dceb229..5db0dd2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # opam +opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow. + diff --git a/opam.spec b/opam.spec new file mode 100644 index 0000000..4d7dd95 --- /dev/null +++ b/opam.spec @@ -0,0 +1,64 @@ +Name: opam +Version: 2.0.4 +Release: 1mamba +Summary: opam is a source-based package manager for OCaml +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://opam.ocaml.org +## GITSOURCE https://github.com/ocaml/opam.git 2.0.4 +Source: https://github.com/ocaml/opam.git/%{version}/opam-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-ENDcd +BuildRequires: ocaml +BuildRequires: ocaml-re +BuildRequires: ocaml-compiler-libs +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow. + +%debug_package + +%prep +%setup -q +# 2.0.4: fix blocking error in install due just to dune warnings +sed -i "s|; false ;|; true ;|" doc/Makefile + +%build +%configure + +make lib-ext all -j1 \ + OCAMLC='ocamlc -unsafe-string' \ + OCAMLOPT='ocamlopt -unsafe-string' + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -d %{buildroot}%{_docdir} +mv %{buildroot}/usr/doc/opam-installer %{buildroot}%{_docdir}/opam +rmdir %{buildroot}/usr/doc + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/opam +%{_bindir}/opam-installer +%dir %{_prefix}/lib/opam-installer +%{_prefix}/lib/opam-installer/* +%dir %{_datadir}/doc/opam +%{_datadir}/doc/opam/* +%{_mandir}/man1/opam*.1* +%doc AUTHORS LICENSE + +%changelog +* Sun May 05 2019 Silvan Calarco 2.0.4-1mamba +- package created using the webbuild interface