2019-11-04 20:03:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-variantslib
|
|
|
|
#
|
2021-02-02 11:54:18 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-11-04 20:03:54 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ocaml-variantslib
|
2020-08-21 18:33:02 +00:00
|
|
|
Version: 0.14.0
|
2019-11-04 20:03:54 +00:00
|
|
|
Release: 0
|
|
|
|
%{?ocaml_preserve_bytecode}
|
|
|
|
Summary: Variants as first class values
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/OCaml
|
2020-08-21 18:33:02 +00:00
|
|
|
URL: https://opam.ocaml.org/packages/variantslib
|
2021-02-02 11:54:18 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2019-11-04 20:03:54 +00:00
|
|
|
BuildRequires: ocaml-dune
|
2021-02-02 11:54:18 +00:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20210121
|
2020-08-21 18:33:02 +00:00
|
|
|
BuildRequires: ocaml(ocaml_base_version) >= 4.04
|
2019-11-04 20:03:54 +00:00
|
|
|
BuildRequires: ocamlfind(base)
|
|
|
|
|
|
|
|
%description
|
|
|
|
OCaml variants as first class values
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Languages/OCaml
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
dune_release_pkgs='variantslib'
|
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ocaml_dune_test
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
|
|
|
%files devel -f %{name}.files.devel
|
|
|
|
|
|
|
|
%changelog
|