%define ocamlpck augeas Name: ocaml-augeas Version: 0.6 Release: 1mamba Summary: Ocaml Bindings to the Augeas configuration library Group: System/Libraries/OCaml Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://people.redhat.com/~rjones/augeas/ Source: https://people.redhat.com/~rjones/augeas/files/ocaml-augeas-%{version}.tar.gz Patch0: ocaml-augeas-0.6-options.patch Patch1: ocaml-augeas-0.6-ocaml-4.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libaugeas-devel BuildRequires: libxml2-devel BuildRequires: ocaml-runtime ## AUTOBUILDREQ-END BuildRequires: dune BuildRequires: ocaml BuildRequires: ocaml-findlib %description %{summary}. %package devel Group: Development/Libraries/OCaml Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and signature files for developing applications that use %{name}. %debug_package %prep %setup -q %patch 0 -p1 -b .options %patch 1 -p1 -b .ocaml-4 %build ./configure make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -dm0755 %{buildroot}%{_libdir}/ocaml/stublibs OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml \ make install rm -rf %{buildroot}/usr/doc %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{_libdir}/ocaml/%{ocamlpck} %{_libdir}/ocaml/%{ocamlpck}/* %exclude %{_libdir}/ocaml/%{ocamlpck}/*.a %exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmx %exclude %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %exclude %{_libdir}/ocaml/%{ocamlpck}/*.mli %{_libdir}/ocaml/stublibs/*.so* %doc COPYING.LIB %files devel %defattr(-,root,root) %{_libdir}/ocaml/%{ocamlpck}/*.a %{_libdir}/ocaml/%{ocamlpck}/*.cmx %{_libdir}/ocaml/%{ocamlpck}/*.cmxa %{_libdir}/ocaml/%{ocamlpck}/*.mli #%doc CHANGES* README.md %changelog * Mon Feb 05 2024 Silvan Calarco 0.6-1mamba - package created using the webbuild interface