diff --git a/2.4.tar.gz b/2.4.tar.gz deleted file mode 100644 index d07700d..0000000 Binary files a/2.4.tar.gz and /dev/null differ diff --git a/ocaml-xml-light.spec b/ocaml-xml-light.spec index 08bd60a..3679edc 100644 --- a/ocaml-xml-light.spec +++ b/ocaml-xml-light.spec @@ -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 <<123/> - -EOF - -./test_opt.exe <<123/> - -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 - 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 - 2.4-0.31.1 - Package init diff --git a/ocaml-xml-light.yaml b/ocaml-xml-light.yaml new file mode 100644 index 0000000..01031e9 --- /dev/null +++ b/ocaml-xml-light.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ncannasse/xml-light +tag_prefix: "" +separator: "." diff --git a/xml-light-2.5.tar.gz b/xml-light-2.5.tar.gz new file mode 100644 index 0000000..5b30b48 Binary files /dev/null and b/xml-light-2.5.tar.gz differ