- Update to version 2.8.2

see included CHANGES.md for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=59
This commit is contained in:
Olaf Hering 2021-01-24 22:08:15 +00:00 committed by Git OBS Bridge
parent e484a7116e
commit 26291f1c92
5 changed files with 50 additions and 12 deletions

View File

@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-dune</param>
<param name="revision">85b4e16bd6c310811fcc206d3d0cbb391eb8b81c</param>
<param name="revision">6c471da57bea666267a8a63034aed57962f378b0</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/ocaml/dune.git</param>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7203c79d7ac74391b84e55eb42a1dbd0f7a406426a69f240fd9b32bc5ea7f54
size 949816

3
ocaml-dune-2.8.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:abca193fc2d4d5c3ae08fc8c273b19b59eced5dca87adbc9a286783e509b1e38
size 1009608

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de
- Update to version 2.8.2
see included CHANGES.md for details
-------------------------------------------------------------------
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ocaml-dune
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,23 +15,45 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define build_flavor @BUILD_FLAVOR@%{nil}
%define tag ocaml-dune
%if "%{build_flavor}" == ""
%define pkg %{tag}
%else
%define pkg %{tag}-%{build_flavor}
%endif
Name: ocaml-dune
Version: 2.7.0
Name: %{pkg}
Version: 2.8.2
Release: 0
%{?ocaml_preserve_bytecode}
Summary: A composable build system for OCaml
License: MIT
Group: Development/Languages/OCaml
URL: https://opam.ocaml.org/packages/dune
Source: %{name}-%{version}.tar.xz
Source0: %{tag}-%{version}.tar.xz
Requires: ocamlfind(compiler-libs)
BuildRequires: ocaml-rpm-macros >= 20200514
BuildRequires: ocaml-rpm-macros >= 20210114
BuildRequires: ocaml(ocaml_base_version) >= 4.08
%if "%{build_flavor}" == ""
BuildRequires: ocamlfind(compiler-libs)
%description
A composable build system for OCaml
%endif
%if "%{build_flavor}" == "configurator"
BuildRequires: ocaml-dune = %{version}
BuildRequires: ocamlfind(csexp)
BuildRequires: ocamlfind(result)
%description
dune-configurator is a small library that helps writing OCaml scripts that
test features available on the system, in order to generate config.h
files for instance.
Among other things, dune-configurator allows one to:
- test if a C program compiles
- query pkg-config
- import #define from OCaml header files
- generate config.h file
%endif
%package devel
Summary: Development files for %{name}
@ -43,9 +65,11 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%autosetup -p1
%autosetup -p1 -n %{tag}-%{version}
%build
%if "%{build_flavor}" == ""
mv -vb src/dune_rules/setup.defaults.ml src/dune_rules/setup.ml
ocaml configure.ml '--libdir=%{ocaml_standard_library}' '--mandir=%{_mandir}'
ocaml bootstrap.ml
rm -rfv '%{_tmppath}/%{name}-%{release}'
@ -54,7 +78,13 @@ mkdir -vm 0700 '%{_tmppath}/%{name}-%{release}/bin'
test -x "$PWD/dune.exe"
ln -vs "$_" '%{_tmppath}/%{name}-%{release}/bin/dune'
export "PATH=%{_tmppath}/%{name}-%{release}/bin:$PATH"
dune_release_pkgs='dune,dune-action-plugin,dune-build-info,dune-configurator,dune-glob,dune-private-libs'
dune_release_pkgs='dune,dune-action-plugin,dune-build-info,dune-glob,dune-private-libs'
%endif
#
%if "%{build_flavor}" == "configurator"
dune_release_pkgs='dune-configurator'
%endif
#
%ocaml_dune_setup
%ocaml_dune_build
@ -65,11 +95,13 @@ export "PATH=%{_tmppath}/%{name}-%{release}/bin:$PATH"
rm -rfv '%{_tmppath}/%{name}-%{release}'
%files -f %{name}.files
%if "%{build_flavor}" == ""
%doc CHANGES.md README.md
%doc doc/*.rst
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/emacs
%endif
%files devel -f %{name}.files.devel