Hello community, here is the log from the commit of package ocaml-extlib for openSUSE:Factory checked in at 2017-05-27 13:18:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-extlib (Old) and /work/SRC/openSUSE:Factory/.ocaml-extlib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-extlib" Sat May 27 13:18:12 2017 rev:2 rq:498053 version:1.7.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-extlib/ocaml-extlib.changes 2016-10-19 13:01:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ocaml-extlib.new/ocaml-extlib.changes 2017-05-27 13:19:08.728884867 +0200 @@ -1,0 +2,7 @@ +Wed May 17 16:01:12 UTC 2017 - [email protected] + +- Update to version 1.7.2 +- Build with oasis +- Remove ocaml-extlib-makefile.patch + +------------------------------------------------------------------- Old: ---- ocaml-extlib-1.7.0.tar.xz ocaml-extlib-makefile.patch New: ---- extlib-1.7.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-extlib.spec ++++++ --- /var/tmp/diff_new_pack.e6zVEL/_old 2017-05-27 13:19:09.288805709 +0200 +++ /var/tmp/diff_new_pack.e6zVEL/_new 2017-05-27 13:19:09.292805144 +0200 @@ -1,7 +1,7 @@ # # spec file for package ocaml-extlib # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2011 Andrew Psaltis <ampsaltis at gmail dot com> # # All modifications and additions to the file contributed by third parties @@ -18,21 +18,19 @@ Name: ocaml-extlib -Version: 1.7.0 +Version: 1.7.2 Release: 0 %{ocaml_preserve_bytecode} Summary: OCaml ExtLib additions to the standard library License: LGPL-2.1+ Group: Development/Libraries/Other Url: https://github.com/ygrek/ocaml-extlib -Source0: %{name}-%{version}.tar.xz -Patch0: ocaml-extlib-makefile.patch -BuildRequires: ocaml >= 3.10.1 -BuildRequires: ocaml-cppo -BuildRequires: ocaml-findlib -BuildRequires: ocamlfind(bytes) +Source0: extlib-%{version}.tar.gz +BuildRequires: ocaml +BuildRequires: ocaml-oasis BuildRequires: ocaml-ocamldoc -BuildRequires: ocaml-rpm-macros >= 4.02.1 +BuildRequires: ocaml-rpm-macros >= 4.03 +BuildRequires: ocamlfind(ocamlbuild_cppo) BuildRoot: %{_tmppath}/%{name}-%{version}-build # ocaml autodep start for pkg: ocaml-extlib # hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires @@ -59,25 +57,85 @@ developing applications that use %{name}. %prep -%setup -q -%patch0 -p1 +%setup -q -n extlib-%{version} %build -make -C src all -%if %{ocaml_native_compiler} -make -C src opt cmxs -%endif +rm -fv setup.ml myocamlbuild.ml META* _* */_* */META* +# +tee cppo <<_EOF_ +#!/bin/bash +exec $(type -p cppo) `ocaml src/configure.ml | xargs` "\$@" +_EOF_ +chmod -v 00755 cppo +export PATH=$PWD:$PATH +# +tee src/_tags <<_EOF_ +<**/*.ml>: pp(cppo) +<**/*.mli>: pp(cppo) +_EOF_ +# obs service changes every ^Version line ... +sh -c "sed 's/^Version.*/Version: %{version}/' | tee _oasis" <<_EOF_ +OASISFormat: 0.4 +Name: %{name} +Version: %{version} +Authors: [email protected] +License: LGPL-2.1+ +Plugins: META(`oasis version`) +BuildTools: ocamlbuild, cppo +Synopsis: Extended Standard Library for OCaml +OCamlVersion: >= 4.03 +AlphaFeatures: ocamlbuild_more_args +XOCamlbuildPluginTags: package(ocamlbuild_cppo) + +Library extlib + Install: true + Path: src + Modules: \ + Base64, \ + BitSet, \ + Dllist, \ + DynArray, \ + Enum, \ + ExtArray, \ + ExtBuffer, \ + ExtBytes, \ + ExtHashtbl, \ + ExtLib, \ + ExtList, \ + ExtString, \ + Global, \ + IO, \ + OptParse, \ + Option, \ + PMap, \ + RefList, \ + Std, \ + UChar, \ + UTF8, \ + Unzip + +Document "extlib" + Title: API reference for extlib + Type: ocamlbuild + BuildTools+: ocamldoc + InstallDir: \$htmldir + Install: true + XOCamlbuildPath: . + XOCamlbuildLibraries: extlib + +_EOF_ + +%oasis_setup +%ocaml_oasis_configure --enable-docs --enable-tests +%ocaml_oasis_build +%ocaml_oasis_doc %install -d="$RPM_BUILD_ROOT`ocamlfind printconf destdir`" -mkdir -vp $d -env \ -OCAMLFIND_DESTDIR=$d \ -make install +%ocaml_oasis_findlib_install %files %defattr(-,root,root,-) -%doc README LICENSE +%doc CHANGES LICENSE README.md %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %if %{ocaml_native_compiler} @@ -86,6 +144,7 @@ %files devel %defattr(-,root,root,-) +%{oasis_docdir_html} %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %if %{ocaml_native_compiler} @@ -93,9 +152,13 @@ %{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmxa %endif +%{_libdir}/ocaml/*/*.annot %{_libdir}/ocaml/*/*.cma %{_libdir}/ocaml/*/*.cmi +%{_libdir}/ocaml/*/*.cmt +%{_libdir}/ocaml/*/*.cmti %{_libdir}/ocaml/*/*.mli +%{_libdir}/ocaml/*/*.ml %{_libdir}/ocaml/*/META %changelog
