Update to 2.5
This commit is contained in:
parent
bb5110dbbd
commit
29363cd7d4
BIN
2.4.tar.gz
BIN
2.4.tar.gz
Binary file not shown.
@ -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
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