Name: ocaml-topkg Version: 1.0.0 Release: 1mamba Summary: The transitory OCaml software packager Group: System/Libraries/OCaml Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://erratique.ch/software/topkg ## GITSOURCE https://github.com/dbuenzli/topkg.git v1.0.0 Source: https://github.com/dbuenzli/topkg.git/v%{version}/topkg-%{version}.tar.bz2 License: ISC License ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: ocaml BuildRequires: opam BuildRequires: ocaml-result Requires: ocaml-result Requires: ocaml BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The transitory OCaml software packager. %prep %setup -q -n topkg-%{version} %build pkg/pkg.ml build --pkg-name topkg %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" opam-installer \ --prefix=%{buildroot}%{_prefix} \ --libdir=%{buildroot}$(ocamlc -where) \ --docdir=%{buildroot}%{_docdir} install -dm755 %{buildroot}%{_datadir}/licenses/ocaml-topkg mv %{buildroot}%{_docdir}/topkg/LICENSE.md %{buildroot}%{_datadir}/licenses/ocaml-topkg/LICENSE.md %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{_libdir}/ocaml/topkg %{_libdir}/ocaml/topkg/* %dir %{_datadir}/doc/topkg %{_datadir}/doc/topkg/* %{_datadir}/licenses/ocaml-topkg/LICENSE.md %changelog * Sun May 05 2019 Silvan Calarco 1.0.0-1mamba - package created using the webbuild interface