!2 Update to 2.5

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-09-25 00:53:38 +00:00 committed by Gitee
commit 46fe1ac7a3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 23 additions and 30 deletions

Binary file not shown.

View File

@ -1,14 +1,15 @@
%global debug_package %{nil}
Name: ocaml-xml-light
Version: 2.4
Release: 0.31.1
Version: 2.5
Release: 1
Summary: Minimal XML parser and printer for OCaml
License: LGPLv2+
URL: http://tech.motion-twin.com/xmllight.html
Source0: https://github.com/gasche/xml-light/archive/%{version}.tar.gz
BuildRequires: ocaml >= 4.00.1 ocaml-findlib-devel >= 1.3.3-3
BuildRequires: ocaml-ocamldoc gawk
Source0: https://github.com/ncannasse/xml-light/archive/%{version}/xml-light-%{version}.tar.gz
BuildRequires: ocaml >= 4.03
BuildRequires: ocaml-dune >= 2.7
%description
The package provides functions to parse an XML document into an OCaml data structure and print it back to an XML document.
@ -29,43 +30,28 @@ developing applications that use ocaml-xml-light.
%autosetup -n xml-light-%{version}
%build
unset MAKEFLAGS
make all
make doc
make opt
sed -e 's/@VERSION@/%{VERSION}/' < META.in > META
%check
./test.exe <<EOF
<abc><123/></abc>
EOF
./test_opt.exe <<EOF
<abc><123/></abc>
EOF
dune build %{?_smp_mflags} --verbose --profile release
%install
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
dune install --destdir=%{buildroot}
rm -rf %{buildroot}/usr/doc
%check
dune runtest --verbose --release %{?_smp_mflags}
%files
%doc README
%doc README.md
%license LICENSE
%{_libdir}/ocaml/xml-light
%exclude %{_libdir}/ocaml/xml-light/*.a
%exclude %{_libdir}/ocaml/xml-light/*.cmxa
%exclude %{_libdir}/ocaml/xml-light/*.cmx
%exclude %{_libdir}/ocaml/xml-light/*.mli
%exclude %{_libdir}/ocaml/xml-light/test.cmi
%files devel
%doc README doc/*
%doc README.md
%license LICENSE
%{_libdir}/ocaml/xml-light/*.a
%{_libdir}/ocaml/xml-light/*.cmxa
%{_libdir}/ocaml/xml-light/*.cmx
@ -73,5 +59,8 @@ ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
%changelog
* Thu Feb 27 2020 zhujunhao <zhujunhao5@huawei.com> - 2.3-0.31.1
* Thu Sep 21 2023 wangkai <13474090681@163.com> - 2.5-1
- Update to 2.5
* Thu Feb 27 2020 zhujunhao <zhujunhao5@huawei.com> - 2.4-0.31.1
- Package init

4
ocaml-xml-light.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ncannasse/xml-light
tag_prefix: ""
separator: "."

BIN
xml-light-2.5.tar.gz Normal file

Binary file not shown.