Hello community, here is the log from the commit of package ocaml-cppo for openSUSE:Factory checked in at 2019-02-20 14:11:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-cppo (Old) and /work/SRC/openSUSE:Factory/.ocaml-cppo.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-cppo" Wed Feb 20 14:11:00 2019 rev:5 rq:677298 version:1.6.5 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-cppo/ocaml-cppo.changes 2017-08-18 15:01:30.918555342 +0200 +++ /work/SRC/openSUSE:Factory/.ocaml-cppo.new.28833/ocaml-cppo.changes 2019-02-20 14:11:02.194945356 +0100 @@ -1,0 +2,36 @@ +Tue Feb 19 03:21:22 UTC 2019 - [email protected] + +- Update install files for ocaml-dune 1.7.1. + +------------------------------------------------------------------- +Fri Feb 8 01:35:59 UTC 2019 - [email protected] + +- Remove ocaml-cppo-1.6.1-install-args.patch and directly call dune + in the install section. + +------------------------------------------------------------------- +Tue Feb 5 18:39:39 UTC 2019 - [email protected] + +- Update to 1.6.5: + * Fix tests. + * Fix 'asr' operator. +- Update build command for latest version of dune. +- Update upstream url (migrated to ocaml-community GitHub account). + +------------------------------------------------------------------- +Mon Jun 11 09:28:49 UTC 2018 - [email protected] + +- Package the .ml and .dune files produced by latest dune. + +------------------------------------------------------------------- +Wed Jan 31 21:45:59 UTC 2018 - [email protected] + +- Update to 1.6.1: + * Emit line directives always containing the file name, as + mandated starting with ocaml 4.07. +- Update to 1.6.0: + * BREAKING: cppo and cppo_ocamlbuild are now two distinct opam + packages. +- Build with dune instead of oasis. + +------------------------------------------------------------------- Old: ---- ocaml-cppo-1.5.0.tar.xz New: ---- ocaml-cppo-1.6.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-cppo.spec ++++++ --- /var/tmp/diff_new_pack.P99hgF/_old 2019-02-20 14:11:02.718945181 +0100 +++ /var/tmp/diff_new_pack.P99hgF/_new 2019-02-20 14:11:02.722945179 +0100 @@ -1,7 +1,8 @@ # # spec file for package ocaml-cppo # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 The openSUSE Project. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,24 +18,30 @@ # +# cppo may use opam-installer but opam requires cppo for its build. +# So here we don't use opam-installer by default. +# Build with "--with-opam" to use opam despite the circular dependency. +%bcond_with opam Name: ocaml-cppo -Version: 1.5.0 +Version: 1.6.5 Release: 0 %{?ocaml_preserve_bytecode} Summary: The C preprocessor written in OCaml License: BSD-3-Clause Group: Development/Languages/OCaml -Url: https://github.com/mjambon/cppo +Url: https://github.com/ocaml-community/cppo Source: %{name}-%{version}.tar.xz BuildRequires: ocaml -BuildRequires: ocaml-oasis +BuildRequires: ocaml-dune BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-rpm-macros >= 4.03 BuildRequires: ocamlfind(easy-format) BuildRequires: ocamlfind(ocamlbuild) BuildRequires: ocamlfind(str) BuildRequires: ocamlfind(unix) -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{with opam} +BuildRequires: opam +%endif %description Cppo is an equivalent of the C preprocessor targeted at the OCaml language and @@ -62,60 +69,27 @@ %setup -q %build -echo 'let cppo_version = "%{version}"' > cppo_version.ml -# obs service changes every ^Version line ... -sh -c "sed 's/^Version.*/Version: %{version}/' | tee _oasis" <<_EOF_ -OASISFormat: 0.4 -Name: cppo -Version: 0 -Synopsis: The C preprocessor written in OCaml -Authors: Martin Jambon -LicenseFile: LICENSE -License: %{license} -Plugins: META(`oasis version`) -BuildTools: ocamlbuild - -Library ocamlbuild_cppo - Path: ocamlbuild_plugin - Modules: Ocamlbuild_cppo - Install: true - BuildDepends: ocamlbuild - -Document ocamlbuild_cppo - Title: API reference for ocamlbuild_cppo - Type: ocamlbuild - BuildTools+: ocamldoc - InstallDir: \$htmldir - Install: true - XOCamlbuildPath: . - XOCamlbuildLibraries: ocamlbuild_cppo - -Executable cppo - Path: . - MainIs: cppo_main.ml - CompiledObject: best - BuildDepends: unix, str - -Test cppo - Type: Custom (0.0.1) - Command: ln -sfvbn \$cppo cppo ; make -C test all - Run: true -_EOF_ -%oasis_setup -%ocaml_oasis_configure --enable-docs --enable-tests -%ocaml_oasis_build -%ocaml_oasis_doc +dune build @install --profile release %install -%ocaml_oasis_findlib_install - -%check -%ocaml_oasis_test +%if %{with opam} + install -d %{buildroot}%{_libdir}/ocaml + dune install --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml + rm -r %{buildroot}%{_prefix}/doc +%else + # By hand, not funny + cd _build/install/default + install -d %{buildroot}%{_libdir}/ocaml/cppo{,_ocamlbuild} + install -m0644 lib/cppo/* %{buildroot}%{_libdir}/ocaml/cppo/ + install -m0644 lib/cppo_ocamlbuild/* %{buildroot}%{_libdir}/ocaml/cppo_ocamlbuild/ + install -d %{buildroot}%{_bindir} + install -m0755 bin/cppo %{buildroot}%{_bindir} +%endif %files %defattr(-,root,root) -%doc LICENSE README.md -%{_bindir}/* +%{_bindir}/cppo +%doc LICENSE.md README.md %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %if 0%{?ocaml_native_compiler} @@ -124,7 +98,6 @@ %files devel %defattr(-,root,root,-) -%{oasis_docdir_html} %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %if 0%{?ocaml_native_compiler} @@ -132,12 +105,14 @@ %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa %endif -%{_libdir}/ocaml/*/*.annot %{_libdir}/ocaml/*/*.cma %{_libdir}/ocaml/*/*.cmi %{_libdir}/ocaml/*/*.cmt %{_libdir}/ocaml/*/*.cmti +%{_libdir}/ocaml/*/*.ml %{_libdir}/ocaml/*/*.mli +%{_libdir}/ocaml/*/dune-package %{_libdir}/ocaml/*/META +%{_libdir}/ocaml/*/opam %changelog ++++++ _service ++++++ --- /var/tmp/diff_new_pack.P99hgF/_old 2019-02-20 14:11:02.738945175 +0100 +++ /var/tmp/diff_new_pack.P99hgF/_new 2019-02-20 14:11:02.738945175 +0100 @@ -1,9 +1,9 @@ <services> <service name="tar_scm" mode="disabled"> - <param name="url">git://github.com/mjambon/cppo.git</param> + <param name="url">git://github.com/ocaml-community/cppo.git</param> <param name="scm">git</param> - <param name="versionformat">1.5.0</param> - <param name="revision">v1.5.0</param> + <param name="versionformat">1.6.5</param> + <param name="revision">v1.6.5</param> <param name="filename">ocaml-cppo</param> </service> <service name="recompress" mode="disabled"> ++++++ ocaml-cppo-1.5.0.tar.xz -> ocaml-cppo-1.6.5.tar.xz ++++++ ++++ 5372 lines of diff (skipped)
