2024-01-06 08:04:57 +01:00
|
|
|
%define ocamlpck xmlm
|
|
|
|
|
|
|
|
Name: ocaml-xmlm
|
2024-01-06 08:04:57 +01:00
|
|
|
Version: 1.4.0
|
2024-01-06 08:04:57 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 08:04:57 +01:00
|
|
|
Summary: An OCaml module providing streaming XML input/output
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 08:04:57 +01:00
|
|
|
URL: https://erratique.ch/software/xmlm
|
2024-01-06 08:04:57 +01:00
|
|
|
Source: http://erratique.ch/software/xmlm/releases/xmlm-%{version}.tbz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 08:04:57 +01:00
|
|
|
BuildRequires: ocaml
|
2024-01-06 08:04:57 +01:00
|
|
|
BuildRequires: ocaml-runtime
|
2024-01-06 08:04:57 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 08:04:57 +01:00
|
|
|
BuildRequires: ocaml >= 4.14.1
|
2024-01-06 08:04:57 +01:00
|
|
|
BuildRequires: opam
|
2024-01-06 08:04:57 +01:00
|
|
|
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
|
2024-01-06 08:04:57 +01:00
|
|
|
ocaml pkg/pkg.ml build
|
2024-01-06 08:04:57 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 08:04:57 +01:00
|
|
|
opam-installer \
|
|
|
|
--prefix=%{buildroot}%{_prefix} \
|
|
|
|
--libdir=%{buildroot}$(ocamlc -where) \
|
|
|
|
--docdir=%{buildroot}%{_docdir}
|
2024-01-06 08:04:57 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/xmltrip
|
|
|
|
%dir %{_libdir}/ocaml/%{ocamlpck}
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/META
|
2024-01-06 08:04:57 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/opam
|
2024-01-06 08:04:57 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cma
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmi
|
2024-01-06 08:04:57 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmti
|
2024-01-06 08:04:57 +01:00
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/xmlm.cmxs
|
2024-01-06 08:04:57 +01:00
|
|
|
%dir %{_datadir}/doc/xmlm
|
|
|
|
%{_datadir}/doc/xmlm/*
|
2024-01-06 08:04:57 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.a
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmx
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.cmxa
|
|
|
|
%{_libdir}/ocaml/%{ocamlpck}/*.mli
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:04:57 +01:00
|
|
|
* Thu Jul 06 2023 Sdk Build System <sdk@mambasoft.it> 1.4.0-2mamba
|
|
|
|
- rebuilt with ocaml 4.14.1
|
|
|
|
|
2024-01-06 08:04:57 +01:00
|
|
|
* Fri Feb 11 2022 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:04:57 +01:00
|
|
|
* Sun Jan 30 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-2mamba
|
|
|
|
- rebuilt with ocaml 4.11.1
|
|
|
|
|
2024-01-06 08:04:57 +01:00
|
|
|
* Fri Feb 19 2021 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:04:57 +01:00
|
|
|
* 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
|