From 5d4f68ad560ba59f11c8e32df025ac5cfabfb06f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 08:04:01 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0.0-1mamba;Sun May 05 2019] --- README.md | 2 ++ ocaml-topkg.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 ocaml-topkg.spec diff --git a/README.md b/README.md index 26d245a..a0ecc30 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-topkg +The transitory OCaml software packager. + diff --git a/ocaml-topkg.spec b/ocaml-topkg.spec new file mode 100644 index 0000000..63edd30 --- /dev/null +++ b/ocaml-topkg.spec @@ -0,0 +1,54 @@ +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