Hello community,

here is the log from the commit of package ocaml-qtest for openSUSE:Factory 
checked in at 2019-10-24 23:02:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ocaml-qtest (Old)
 and      /work/SRC/openSUSE:Factory/.ocaml-qtest.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ocaml-qtest"

Thu Oct 24 23:02:08 2019 rev:4 rq:735918 version:2.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/ocaml-qtest/ocaml-qtest.changes  2019-02-24 
17:17:59.508422856 +0100
+++ /work/SRC/openSUSE:Factory/.ocaml-qtest.new.2990/ocaml-qtest.changes        
2019-10-24 23:02:11.628034706 +0200
@@ -1,0 +2,5 @@
+Mon Sep 30 12:34:56 UTC 2019 - [email protected]
+
+- use dune macros from ocaml-rpm-macros
+
+-------------------------------------------------------------------

Old:
----
  ocaml-qtest-2.9.tar.gz

New:
----
  _service
  ocaml-qtest-2.9.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ocaml-qtest.spec ++++++
--- /var/tmp/diff_new_pack.PpskWy/_old  2019-10-24 23:02:12.300035478 +0200
+++ /var/tmp/diff_new_pack.PpskWy/_new  2019-10-24 23:02:12.304035482 +0200
@@ -25,17 +25,12 @@
 Group:          Development/Languages/OCaml
 
 URL:            https://github.com/vincent-hugot/qtest
-Source0:        
https://github.com/vincent-hugot/qtest/archive/v%{version}/%{name}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Source0:        %{name}-%{version}.tar.xz
 
-BuildRequires:  help2man
 BuildRequires:  ocaml
 BuildRequires:  ocaml-dune
-BuildRequires:  ocaml-findlib
-BuildRequires:  ocaml-ounit-devel
-BuildRequires:  ocaml-qcheck-devel
-BuildRequires:  ocaml-rpm-macros
-BuildRequires:  opam-installer
+BuildRequires:  ocaml-rpm-macros >= 20190930
+BuildRequires:  ocamlfind(qcheck)
 
 %description
 qtest extracts inline unit tests written using a special syntax in
@@ -55,56 +50,24 @@
 
 
 %prep
-%setup -q -n qtest-%{version}
+%autosetup -p1
 
 %build
-dune build @install --profile=release
+%ocaml_dune_setup
+%ocaml_dune_build
 
 %install
-dune install --destdir="%{buildroot}" --verbose
+%ocaml_dune_install
+%ocaml_create_file_list
 
-# These files will be installed using the doc and license directives
-rm %{buildroot}/usr/doc/qtest/{LICENSE,README.adoc}
+%check
+%ocaml_dune_test
 
-# generate manpage
-mkdir -p %{buildroot}/%{_mandir}/man1/
-help2man %{buildroot}/%{_bindir}/qtest \
-    --output %{buildroot}/%{_mandir}/man1/qtest.1 \
-    --name "Inline (Unit) Tests for OCaml" \
-    --version-string %{version} \
-    --no-info
-
-%files
-%defattr(-,root,root,-)
-%doc README.adoc HOWTO.adoc
+%files -f %{name}.files
 %license LICENSE
-%{_bindir}/qtest
-%{_mandir}/man1/qtest.1*
-%dir %{_libdir}/ocaml
-%dir %{_libdir}/ocaml/*/
-%dir %{_libdir}/ocaml/*/*/
-%if 0%{?ocaml_native_compiler}
-%{_libdir}/ocaml/*/*/*.cmxs
-%endif
-
-%files devel
-%defattr(-,root,root,-)
-%doc README.adoc HOWTO.adoc
-%license LICENSE
-%dir %{_libdir}/ocaml
-%dir %{_libdir}/ocaml/*/
-%dir %{_libdir}/ocaml/*/*/
-%if 0%{?ocaml_native_compiler}
-%{_libdir}/ocaml/*/*/*.a
-%{_libdir}/ocaml/*/*/*.cmx
-%{_libdir}/ocaml/*/*/*.cmxa
-%endif
-%{_libdir}/ocaml/*/*/*.cma
-%{_libdir}/ocaml/*/*/*.cmi
-%{_libdir}/ocaml/*/*/*.cmt
-%{_libdir}/ocaml/*/*/*.ml
-%{_libdir}/ocaml/*/META
-%{_libdir}/ocaml/*/opam
-%{_libdir}/ocaml/*/dune-package
+%doc README.adoc
+%{_bindir}/*
+
+%files devel -f %{name}.files.devel
 
 %changelog

++++++ _service ++++++
<services>
  <service name="tar_scm" mode="disabled">
    <param name="url">https://github.com/vincent-hugot/qtest.git</param>
    <param name="scm">git</param>
    <param name="versionformat">2.9</param>
    <param name="revision">074da5e3a0d480937ddc379fc6f4feeab9da85e3</param>
    <param name="filename">ocaml-qtest</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>

Reply via email to