ocaml-uchar/ocaml-uchar.spec

60 lines
1.5 KiB
RPMSpec

%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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.0.2-1mamba
- package created using the webbuild interface