ocaml-csexp/ocaml-csexp.spec

47 lines
1.2 KiB
RPMSpec

Name: ocaml-csexp
Version: 1.5.1
Release: 1mamba
Summary: Csexp - Canonical S-expressions
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.5.1-1mamba
- package created using the webbuild interface