From 79f0bf50a0b6f504506f80c94c1a67e2e2cf9c26 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:54:29 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.2.2-1mamba;Sun May 05 2019] --- README.md | 2 ++ ocaml-integers.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ocaml-integers.spec diff --git a/README.md b/README.md index 8182525..e5d43f5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-integers +The ocaml-integers library provides a number of 8-, 16-, 32- and 64-bit signed and unsigned integer types, together with aliases such as `long` and `size_t` whose sizes depend on the host platform. + diff --git a/ocaml-integers.spec b/ocaml-integers.spec new file mode 100644 index 0000000..7c3b6d9 --- /dev/null +++ b/ocaml-integers.spec @@ -0,0 +1,53 @@ +Name: ocaml-integers +Version: 0.2.2 +Release: 1mamba +Summary: Various signed and unsigned integer types for OCaml +Group: System/Libraries/OCaml +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ocamllabs/ocaml-integers +## GITSOURCE https://github.com/ocamllabs/ocaml-integers.git 0.3.0 +Source: https://github.com/ocamllabs/ocaml-integers.git/v%{version}/ocaml-integers-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: dune +BuildRequires: ocaml +BuildRequires: opam +BuildRequires: ocaml-topkg +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The ocaml-integers library provides a number of 8-, 16-, 32- and 64-bit signed and unsigned integer types, together with aliases such as `long` and `size_t` whose sizes depend on the host platform. + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +opam-installer \ + --prefix=%{buildroot}%{_prefix} \ + --libdir=%{buildroot}$(ocamlc -where) \ + --docdir=%{buildroot}%{_docdir} \ + --stubsdir=%{buildroot}$(ocamlc -where)/stublibs + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/integers +%{_libdir}/ocaml/integers/* +%{_libdir}/ocaml/stublibs/dllintegers.so +%dir %{_datadir}/doc/integers +%{_datadir}/doc/integers/* +%doc LICENSE.md + +%changelog +* Sun May 05 2019 Silvan Calarco 0.2.2-1mamba +- package created using the webbuild interface