ocaml-re/ocaml-re.spec

53 lines
1.3 KiB
RPMSpec

Name: ocaml-re
Version: 1.9.0
Release: 2mamba
Summary: Pure OCaml regular expressions, with support for Perl and POSIX-style strings
Group: System/Libraries/OCaml
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ocaml/ocaml-re
Source: https://github.com/ocaml/ocaml-re.git/%{version}/ocaml-re-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ocaml
BuildRequires: ocaml-runtime
BuildRequires: ocaml-seq-devel
## AUTOBUILDREQ-END
BuildRequires: ocaml >= 4.14.1
BuildRequires: dune
%description
Pure OCaml regular expressions, with support for Perl and POSIX-style strings.
%prep
%setup -q
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
dune install \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir}/ocaml
rm -rf %{buildroot}%{_prefix}/doc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_libdir}/ocaml/re
%{_libdir}/ocaml/re/*
%changelog
* Fri Jul 07 2023 Sdk Build System <sdk@mambasoft.it> 1.9.0-2mamba
- rebuilt with ocaml 4.14.1
* Sun May 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.0-1mamba
- package created using the webbuild interface