Hello community,

here is the log from the commit of package ocaml-facile for openSUSE:Factory 
checked in at 2017-05-17 17:19:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ocaml-facile (Old)
 and      /work/SRC/openSUSE:Factory/.ocaml-facile.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ocaml-facile"

Wed May 17 17:19:07 2017 rev:18 rq:495545 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ocaml-facile/ocaml-facile.changes        
2016-05-25 21:28:29.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ocaml-facile.new/ocaml-facile.changes   
2017-05-17 17:20:18.584528088 +0200
@@ -1,0 +2,5 @@
+Tue May 16 11:14:08 UTC 2017 - [email protected]
+
+- Build with oasis
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ ocaml-facile.spec ++++++
--- /var/tmp/diff_new_pack.PDkQSL/_old  2017-05-17 17:20:19.756362822 +0200
+++ /var/tmp/diff_new_pack.PDkQSL/_new  2017-05-17 17:20:19.756362822 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ocaml-facile
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,9 @@
 # PATCH-FIX-OPENSUSE ocaml-4.patch [email protected] -- Fixes build with 
ocaml 4
 Patch0:         ocaml-4.patch
 BuildRequires:  ocaml
+BuildRequires:  ocaml-oasis
+BuildRequires:  ocaml-ocamldoc
+BuildRequires:  ocaml-rpm-macros >= 4.03
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -47,20 +50,161 @@
 processing and interface are implemented with the same powerful and
 efficient language.
 
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries/Other
+Requires:       %{name} = %{version}
+
+%description    devel
+The %{name}-devel package contains libraries and signature files for
+developing applications that use %{name}.
+
 %prep
 %setup -q -n facile-%{version}
 %patch0 -p1
 
 %build
-./configure -faciledir %{buildroot}/%{_libdir}/ocaml/facile
-make %{?_smp_mflags}
+# 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
+Synopsis:    Constraint Programming Library
+
+Library facile
+       Install: true
+       Path: src
+       Modules: Facile, \
+               Fcl_alldiff, \
+               Fcl_arith, \
+               Fcl_boolean, \
+               Fcl_conjunto, \
+               Fcl_cstr, \
+               Fcl_data, \
+               Fcl_debug, \
+               Fcl_domain, \
+               Fcl_expr, \
+               Fcl_fdArray, \
+               Fcl_float, \
+               Fcl_gcc, \
+               Fcl_genesis, \
+               Fcl_goals, \
+               Fcl_interval, \
+               Fcl_invariant, \
+               Fcl_linear, \
+               Fcl_misc, \
+               Fcl_nonlinear, \
+               Fcl_opti, \
+               Fcl_reify, \
+               Fcl_setDomain, \
+               Fcl_sorting, \
+               Fcl_stak, \
+               Fcl_var
+       CompiledObject: best
+
+Document "facile"
+       Title:                API reference for facile
+       Type:                 ocamlbuild
+       BuildTools+:          ocamldoc
+       InstallDir:           \$htmldir
+       Install:              true
+       XOCamlbuildPath:      .
+       XOCamlbuildLibraries: facile
+
+Executable "%{name}-coins"
+       Path: examples
+       Install: true
+       MainIs: coins.ml
+       BuildDepends: facile
+Executable "%{name}-golf"
+       Path: examples
+       Install: true
+       MainIs: golf.ml
+       BuildDepends: facile
+Executable "%{name}-golomb"
+       Path: examples
+       Install: true
+       MainIs: golomb.ml
+       BuildDepends: facile
+Executable "%{name}-jobshop"
+       Path: examples
+       Install: true
+       MainIs: jobshop.ml
+       BuildDepends: facile
+Executable "%{name}-magic"
+       Path: examples
+       Install: true
+       MainIs: magic.ml
+       BuildDepends: facile
+Executable "%{name}-marriage"
+       Path: examples
+       Install: true
+       MainIs: marriage.ml
+       BuildDepends: facile
+Executable "%{name}-prolog"
+       Path: examples
+       Install: true
+       MainIs: prolog.ml
+       BuildDepends: facile
+Executable "%{name}-queens"
+       Path: examples
+       Install: true
+       MainIs: queens.ml
+       BuildDepends: facile
+Executable "%{name}-scheduling"
+       Path: examples
+       Install: true
+       MainIs: scheduling.ml
+       BuildDepends: facile
+Executable "%{name}-seven_eleven"
+       Path: examples
+       Install: true
+       MainIs: seven_eleven.ml
+       BuildDepends: facile
+Executable "%{name}-tiles"
+       Path: examples
+       Install: true
+       MainIs: tiles.ml
+       BuildDepends: facile
+_EOF_
+
+%oasis_setup
+%ocaml_oasis_configure --enable-docs --enable-tests
+%ocaml_oasis_build
+%ocaml_oasis_doc
 
 %install
-install -d -m 755 %{buildroot}/%{_libdir}/ocaml/facile
-%make_install
+%ocaml_oasis_findlib_install
 
 %files
 %defattr(-,root,root)
-%{_libdir}/ocaml/facile
+%{_bindir}/*
+%dir %{_libdir}/ocaml
+%dir %{_libdir}/ocaml/*
+%if %{ocaml_native_compiler}
+%{_libdir}/ocaml/*/*.cmxs
+%endif
+
+%files devel
+%defattr(-,root,root,-)
+%{oasis_docdir_html}
+%dir %{_libdir}/ocaml
+%dir %{_libdir}/ocaml/*
+%if %{ocaml_native_compiler}
+%{_libdir}/ocaml/*/*.a
+%{_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/*/META
 
 %changelog


Reply via email to