diff --git a/README.md b/README.md index 09fafda..189c2c8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ocaml-uchar +Compatibility library for OCaml's Uchar module. + diff --git a/ocaml-uchar.spec b/ocaml-uchar.spec new file mode 100644 index 0000000..ce8c4ec --- /dev/null +++ b/ocaml-uchar.spec @@ -0,0 +1,59 @@ +%define ocamlpck uchar + +Name: ocaml-uchar +Version: 0.0.2 +Release: 1mamba +Summary: Compatibility library for OCaml's Uchar module +Group: System/Libraries/OCaml +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ocaml/uchar +Source: https://github.com/ocaml/uchar.git/v%{version}/uchar-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +## 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 -n uchar-%{version} + +%build +ocaml pkg/build.ml \ + native=true \ + native-dynlink=true + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +opam-installer -i \ + --prefix="%{buildroot}%{_prefix}" \ + --libdir="%{buildroot}%{_libdir}/ocaml" \ + uchar.install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_libdir}/ocaml/%{ocamlpck} +%{_libdir}/ocaml/%{ocamlpck}/META +%doc LICENSE* + +%changelog +* Fri Feb 04 2022 Silvan Calarco 0.0.2-1mamba +- package created using the webbuild interface