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