Hello community, here is the log from the commit of package ocaml-mccs for openSUSE:Factory checked in at 2019-10-24 23:01:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-mccs (Old) and /work/SRC/openSUSE:Factory/.ocaml-mccs.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-mccs" Thu Oct 24 23:01:53 2019 rev:4 rq:735913 version:1.1+9 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-mccs/ocaml-mccs.changes 2019-02-20 14:12:55.106907658 +0100 +++ /work/SRC/openSUSE:Factory/.ocaml-mccs.new.2990/ocaml-mccs.changes 2019-10-24 23:01:54.736015293 +0200 @@ -1,0 +2,5 @@ +Mon Sep 30 12:34:56 UTC 2019 - oher...@suse.de + +- use dune macros from ocaml-rpm-macros + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-mccs.spec ++++++ --- /var/tmp/diff_new_pack.kvqkVl/_old 2019-10-24 23:01:55.320015965 +0200 +++ /var/tmp/diff_new_pack.kvqkVl/_new 2019-10-24 23:01:55.320015965 +0200 @@ -30,8 +30,7 @@ BuildRequires: ocaml BuildRequires: ocaml-cudf-devel BuildRequires: ocaml-dune -BuildRequires: ocaml-rpm-macros -BuildRequires: ocamlfind +BuildRequires: ocaml-rpm-macros >= 20190930 %description mccs (which stands for Multi Criteria CUDF Solver) is a CUDF problem solver @@ -46,46 +45,27 @@ This package contains development files for %{name}. %prep -%setup -q +%autosetup -p1 %build -dune build @install +%ocaml_dune_setup +%ocaml_dune_build %install -install -d %{buildroot}%{_libdir}/ocaml/mccs/glpk/internal +%ocaml_dune_install +%ocaml_create_file_list -pushd _build/install/default/lib -install -m0644 mccs/{META,dune-package,libmccs*,mccs*} %{buildroot}%{_libdir}/ocaml/mccs -install -m0644 mccs/glpk/internal/*mccs* %{buildroot}%{_libdir}/ocaml/mccs/glpk/internal -install -m0755 stublibs/dllmccs_stubs.so %{buildroot}%{_libdir}/libmccs_stubs.so +%check +%ocaml_dune_test %post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%files +%files -f %{name}.files %doc README.md %license LICENCE -%dir %{_libdir}/ocaml/mccs -%{_libdir}/libmccs_stubs.so -%if 0%{?ocaml_native_compiler} -%{_libdir}/ocaml/mccs/*.cmxs -%endif - -%files devel -%if 0%{?ocaml_native_compiler} -%{_libdir}/ocaml/mccs/*.a -%{_libdir}/ocaml/mccs/*.cmx -%{_libdir}/ocaml/mccs/*.cmxa -%endif -%{_libdir}/ocaml/mccs/*.cma -%{_libdir}/ocaml/mccs/*.cmi -%{_libdir}/ocaml/mccs/*.cmt -%{_libdir}/ocaml/mccs/*.cmti -%{_libdir}/ocaml/mccs/*.ml -%{_libdir}/ocaml/mccs/*.mli -%{_libdir}/ocaml/mccs/META -%{_libdir}/ocaml/mccs/dune-package -%{_libdir}/ocaml/mccs/glpk/ + +%files devel -f %{name}.files.devel %changelog