1
0

- remove dependency to ounit via _multibuild

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-fileutils?expand=0&rev=36
This commit is contained in:
Olaf Hering 2021-01-30 11:39:48 +00:00 committed by Git OBS Bridge
parent 017bc243dc
commit 0080bcb020
3 changed files with 36 additions and 7 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>testsuite</package>
</multibuild>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 21 21:21:21 UTC 2021 - ohering@suse.de
- remove dependency to ounit via _multibuild
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de Thu Aug 20 20:20:20 UTC 2020 - ohering@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package ocaml-fileutils # spec file for package ocaml-fileutils
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,15 @@
# #
Name: ocaml-fileutils %define build_flavor @BUILD_FLAVOR@%{nil}
%if "%{build_flavor}" == "testsuite"
%define nsuffix -testsuite
%else
%define nsuffix %{nil}
%endif
%define pkg ocaml-fileutils
Name: %{pkg}%{nsuffix}
Version: 0.6.3 Version: 0.6.3
Release: 0 Release: 0
%{?ocaml_preserve_bytecode} %{?ocaml_preserve_bytecode}
@ -24,16 +32,21 @@ Summary: OCaml library for common file and filename operations
License: SUSE-LGPL-2.0-with-linking-exception License: SUSE-LGPL-2.0-with-linking-exception
Group: Development/Languages/OCaml Group: Development/Languages/OCaml
URL: https://opam.ocaml.org/packages/fileutils URL: https://opam.ocaml.org/packages/fileutils
Source0: %{name}-%{version}.tar.xz Source0: %{pkg}-%{version}.tar.xz
BuildRequires: ocaml BuildRequires: ocaml
BuildRequires: ocaml-dune BuildRequires: ocaml-dune
BuildRequires: ocaml-rpm-macros >= 20200514 BuildRequires: ocaml-rpm-macros >= 20210121
BuildRequires: ocamlfind(bytes) BuildRequires: ocamlfind(bytes)
BuildRequires: ocamlfind(oUnit)
BuildRequires: ocamlfind(stdlib-shims) BuildRequires: ocamlfind(stdlib-shims)
BuildRequires: ocamlfind(str) BuildRequires: ocamlfind(str)
BuildRequires: ocamlfind(unix) BuildRequires: ocamlfind(unix)
%if "%{build_flavor}" == "testsuite"
BuildRequires: ocamlfind(fileutils)
BuildRequires: ocamlfind(oUnit)
BuildRequires: ocamlfind(stdlib-shims)
%endif
%description %description
This library is intended to provide a basic interface to the most This library is intended to provide a basic interface to the most
common file and filename operations. It provides several different common file and filename operations. It provides several different
@ -54,23 +67,31 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}. developing applications that use %{name}.
%prep %prep
%autosetup -p1 %autosetup -p1 -n %{pkg}-%{version}
%build %build
dune_release_pkgs='fileutils' dune_release_pkgs='fileutils'
%ocaml_dune_setup %ocaml_dune_setup
%if "%{build_flavor}" == ""
%ocaml_dune_build %ocaml_dune_build
%endif
%install %install
%if "%{build_flavor}" == ""
%ocaml_dune_install %ocaml_dune_install
%ocaml_create_file_list %ocaml_create_file_list
%endif
%if "%{build_flavor}" == "testsuite"
%check %check
%ocaml_dune_test %ocaml_dune_test
%endif
%if "%{build_flavor}" == ""
%files -f %{name}.files %files -f %{name}.files
%doc README.md
%files devel -f %{name}.files.devel %files devel -f %{name}.files.devel
%endif
%changelog %changelog