Hello community, here is the log from the commit of package ocaml-menhir for openSUSE:Factory checked in at 2020-03-09 14:14:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-menhir (Old) and /work/SRC/openSUSE:Factory/.ocaml-menhir.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-menhir" Mon Mar 9 14:14:00 2020 rev:3 rq:780711 version:20200211 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-menhir/ocaml-menhir.changes 2017-08-24 18:42:04.552641218 +0200 +++ /work/SRC/openSUSE:Factory/.ocaml-menhir.new.26092/ocaml-menhir.changes 2020-03-09 14:14:03.262533109 +0100 @@ -1,0 +2,6 @@ +Sat Feb 29 20:20:20 UTC 2020 - [email protected] + +- update version 20200211, with _service file +- Require dune 2.0+ + +------------------------------------------------------------------- Old: ---- menhir-20170712.tar.gz New: ---- _service ocaml-menhir-20200211.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-menhir.spec ++++++ --- /var/tmp/diff_new_pack.pmFRID/_old 2020-03-09 14:14:03.778533449 +0100 +++ /var/tmp/diff_new_pack.pmFRID/_new 2020-03-09 14:14:03.778533449 +0100 @@ -12,25 +12,24 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: ocaml-menhir -Version: 20170712 +Version: 20200211 Release: 0 %{?ocaml_preserve_bytecode} Summary: LR(1) parser generator for the OCaml programming language License: LGPL-2.0 Group: Development/Languages/OCaml -Url: http://gallium.inria.fr/~fpottier/menhir/ -Source: http://gallium.inria.fr/~fpottier/menhir/menhir-%{version}.tar.gz +Url: https://opam.ocaml.org/packages/menhir +Source: %{name}-%{version}.tar.xz +BuildRequires: time BuildRequires: ocaml -BuildRequires: ocaml-findlib -BuildRequires: ocaml-ocamlbuild -BuildRequires: ocaml-ocamldoc -BuildRequires: ocaml-rpm-macros >= 4.02.1 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: ocaml-dune >= 2.0 +BuildRequires: ocaml-rpm-macros >= 20200220 +BuildRequires: ocamlfind(unix) %description LR(1) parser generator @@ -45,61 +44,29 @@ developing applications that use %{name}. %prep -%setup -q -n menhir-%{version} +%autosetup -p1 %build -o= -make \ -%if 0%{?ocaml_native_compiler} - TARGET=native \ -%else - TARGET=byte \ -%endif - PREFIX=${o}%{_prefix} \ - %{?_smp_mflags} \ - -j 1 +dune_release_pkgs='menhir,menhirLib,menhirSdk' +%ocaml_dune_setup +%ocaml_dune_build %install -o=%{buildroot} -OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where` -mkdir -vp ${OCAMLFIND_DESTDIR} -make \ - install \ -%if 0%{?ocaml_native_compiler} - TARGET=native \ +%ocaml_dune_install +%ocaml_create_file_list + +%check +%ifarch x86_64 %else - TARGET=byte \ -%endif - PREFIX=${o}%{_prefix} \ - OCAMLFIND_DESTDIR=${OCAMLFIND_DESTDIR} \ - %{?_smp_mflags} \ - -j 1 -rm -rfv %{buildroot}/usr/share/doc - -%files -%defattr(-,root,root) -%doc CHANGES.md LICENSE manual.pdf -%{_bindir}/* -%{_datadir}/menhir -%dir %{_libdir}/ocaml -%dir %{_libdir}/ocaml/* -%{_libdir}/ocaml/*/META -%if 0%{?ocaml_native_compiler} -%{_libdir}/ocaml/*/*.o +dune_test_tolerate_fail='dune_test_tolerate_fail bitsize' %endif -%{_libdir}/ocaml/*/*.cmi -%{_libdir}/ocaml/*/*.cmo +%ocaml_dune_test -%files devel -%defattr(-,root,root,-) -%doc LICENSE +%files -f %{name}.files +%doc CHANGES.md +%{_bindir}/* %{_mandir}/*/* -%dir %{_libdir}/ocaml -%dir %{_libdir}/ocaml/* -%if 0%{?ocaml_native_compiler} -%{_libdir}/ocaml/*/*.cmx -%endif -%{_libdir}/ocaml/*/*.mli -%{_libdir}/ocaml/*/*.ml + +%files devel -f %{name}.files.devel %changelog ++++++ _service ++++++ <services> <service name="tar_scm" mode="disabled"> <param name="filename">ocaml-menhir</param> <param name="revision">ad9297c0a505e878fb60b77f3b83a9caa1e42548</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://gitlab.inria.fr/fpottier/menhir.git</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param> <param name="versionrewrite-replacement">\1</param> </service> <service name="recompress" mode="disabled"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version" mode="disabled"/> </services>
