!2 Update to 2.5
From: @wk333 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
46fe1ac7a3
BIN
2.4.tar.gz
BIN
2.4.tar.gz
Binary file not shown.
@ -1,14 +1,15 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: ocaml-xml-light
|
Name: ocaml-xml-light
|
||||||
Version: 2.4
|
Version: 2.5
|
||||||
Release: 0.31.1
|
Release: 1
|
||||||
Summary: Minimal XML parser and printer for OCaml
|
Summary: Minimal XML parser and printer for OCaml
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://tech.motion-twin.com/xmllight.html
|
URL: http://tech.motion-twin.com/xmllight.html
|
||||||
Source0: https://github.com/gasche/xml-light/archive/%{version}.tar.gz
|
Source0: https://github.com/ncannasse/xml-light/archive/%{version}/xml-light-%{version}.tar.gz
|
||||||
BuildRequires: ocaml >= 4.00.1 ocaml-findlib-devel >= 1.3.3-3
|
BuildRequires: ocaml >= 4.03
|
||||||
BuildRequires: ocaml-ocamldoc gawk
|
BuildRequires: ocaml-dune >= 2.7
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The package provides functions to parse an XML document into an OCaml data structure and print it back to an XML document.
|
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}
|
%autosetup -n xml-light-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
unset MAKEFLAGS
|
dune build %{?_smp_mflags} --verbose --profile release
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
dune install --destdir=%{buildroot}
|
||||||
install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
rm -rf %{buildroot}/usr/doc
|
||||||
ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
dune runtest --verbose --release %{?_smp_mflags}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
%{_libdir}/ocaml/xml-light
|
%{_libdir}/ocaml/xml-light
|
||||||
%exclude %{_libdir}/ocaml/xml-light/*.a
|
%exclude %{_libdir}/ocaml/xml-light/*.a
|
||||||
%exclude %{_libdir}/ocaml/xml-light/*.cmxa
|
%exclude %{_libdir}/ocaml/xml-light/*.cmxa
|
||||||
%exclude %{_libdir}/ocaml/xml-light/*.cmx
|
%exclude %{_libdir}/ocaml/xml-light/*.cmx
|
||||||
%exclude %{_libdir}/ocaml/xml-light/*.mli
|
%exclude %{_libdir}/ocaml/xml-light/*.mli
|
||||||
%exclude %{_libdir}/ocaml/xml-light/test.cmi
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc README doc/*
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
%{_libdir}/ocaml/xml-light/*.a
|
%{_libdir}/ocaml/xml-light/*.a
|
||||||
%{_libdir}/ocaml/xml-light/*.cmxa
|
%{_libdir}/ocaml/xml-light/*.cmxa
|
||||||
%{_libdir}/ocaml/xml-light/*.cmx
|
%{_libdir}/ocaml/xml-light/*.cmx
|
||||||
@ -73,5 +59,8 @@ ocamlfind install xml-light META *.mli *.cmi *.cma *.a *.cmxa *.cmx
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
- Package init
|
||||||
|
|||||||
4
ocaml-xml-light.yaml
Normal file
4
ocaml-xml-light.yaml
Normal 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
BIN
xml-light-2.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user