ocaml-xmlm/ocaml-xmlm.spec

89 lines
2.5 KiB
RPMSpec
Raw Normal View History

%define ocamlpck xmlm
Name: ocaml-xmlm
Version: 1.4.0
Release: 2mamba
Summary: An OCaml module providing streaming XML input/output
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://erratique.ch/software/xmlm
Source: http://erratique.ch/software/xmlm/releases/xmlm-%{version}.tbz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ocaml
BuildRequires: ocaml-runtime
## AUTOBUILDREQ-END
BuildRequires: ocaml >= 4.14.1
BuildRequires: opam
BuildRequires: ocaml-findlib
%description
Xmlm is an OCaml module providing streaming XML input/output.
It aims at making XML processing robust and painless.
%package devel
Group: Development/Libraries
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}.
%prep
%setup -q -n xmlm-%{version}
%build
ocaml pkg/pkg.ml build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
opam-installer \
--prefix=%{buildroot}%{_prefix} \
--libdir=%{buildroot}$(ocamlc -where) \
--docdir=%{buildroot}%{_docdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/xmltrip
%dir %{_libdir}/ocaml/%{ocamlpck}
%{_libdir}/ocaml/%{ocamlpck}/META
%{_libdir}/ocaml/%{ocamlpck}/opam
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cma
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmi
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmti
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmxs
%dir %{_datadir}/doc/xmlm
%{_datadir}/doc/xmlm/*
%files devel
%defattr(-,root,root)
%{_libdir}/ocaml/%{ocamlpck}/*.a
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
%{_libdir}/ocaml/%{ocamlpck}/*.mli
%changelog
* Thu Jul 06 2023 Sdk Build System <sdk@mambasoft.it> 1.4.0-2mamba
- rebuilt with ocaml 4.14.1
* Fri Feb 11 2022 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Sun Jan 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-2mamba
- rebuilt with ocaml 4.11.1
* Fri Feb 19 2021 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
- automatic version update by autodist
* Sun Jun 23 2013 openmamba WebBuild System <webbuild@openmamba.org> 1.1.1-2mamba
- add a devel package
* Fri Jan 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- package created by silvan using the webbuild interface