From f97ad14f9c11fe68f51182037418be82127d2291 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:51:52 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.5.1-1mamba;Tue May 04 2021] --- README.md | 2 ++ ocaml-csexp.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 ocaml-csexp.spec diff --git a/README.md b/README.md index 060c93a..1bc0794 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-csexp +This project provides minimal support for parsing and printing S-expressions in canonical form, which is a very simple and canonical binary encoding of S-expressions. + diff --git a/ocaml-csexp.spec b/ocaml-csexp.spec new file mode 100644 index 0000000..a256ea9 --- /dev/null +++ b/ocaml-csexp.spec @@ -0,0 +1,46 @@ +Name: ocaml-csexp +Version: 1.5.1 +Release: 1mamba +Summary: Csexp - Canonical S-expressions +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ocaml-dune/csexp +Source: https://github.com/ocaml-dune/csexp.git/%{version}/csexp-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ocaml +BuildRequires: ocaml-runtime +## AUTOBUILDREQ-END +BuildRequires: dune + +%description +This project provides minimal support for parsing and printing S-expressions in canonical form, which is a very simple and canonical binary encoding of S-expressions. + +%debug_package + +%prep +%setup -q -n csexp-%{version} + +%build +dune build -p csexp + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +DESTDIR="%{buildroot}" dune install --prefix "%{_prefix}" --libdir "%{_lib}/ocaml" + +rm -r %{buildroot}/usr/doc + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/csexp +%{_libdir}/ocaml/csexp/* + +%changelog +* Tue May 04 2021 Silvan Calarco 1.5.1-1mamba +- package created using the webbuild interface