File ocaml-dose.spec of Package ocaml-dose

# spec file for package ocaml-dose
# 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
# 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

%bcond_with ocaml_dose_testsuite
%define build_flavor @BUILD_FLAVOR@%{nil}
%if "%{build_flavor}" == "testsuite"
%if %{without ocaml_dose_testsuite}
ExclusiveArch:  do-not-build
%define nsuffix -testsuite
%define nsuffix %{nil}

%define     pkg ocaml-dose
Name:           %{pkg}%{nsuffix}
Version:        6.1
Release:        0
Summary:        An OCaml dependency toolkit
License:        LGPL-3.0-or-later
Source0:        %{pkg}-%{version}.tar.xz
BuildRequires:  ocaml
BuildRequires:  ocaml-dune >= 2.7
BuildRequires:  ocaml-rpm-macros >= 20210409
%if 1
BuildRequires:  ocamlfind(base64)
BuildRequires:  ocamlfind(bz2)
BuildRequires:  ocamlfind(cudf)
BuildRequires:  ocamlfind(extlib)
BuildRequires:  ocamlfind(findlib)
BuildRequires:  ocamlfind(ocamlgraph)
BuildRequires:  ocamlfind(parmap)
BuildRequires:  ocamlfind(re.pcre)
BuildRequires:  ocamlfind(zip)

%if "%{build_flavor}" == "testsuite"
BuildRequires:  dctrl-tools
BuildRequires:  dpkg
BuildRequires:  git-core
BuildRequires:  ocamlfind(dose3)
BuildRequires:  ocamlfind(oUnit)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-PyYAML

Dose3 is a framework made of several OCaml libraries for managing distribution
packages and their dependencies.

Though not tied to any particular distribution, dose3 constitutes a pool of
libraries which enable analyzing packages coming from various distributions.

Besides basic functionalities for querying and setting package properties,
dose3 also implements algorithms for solving more complex problems (monitoring
package evolutions, correct and complete dependency resolution, repository-wide
uninstallability checks).

%package devel
Summary:        An OCaml dependency toolkit -- Development files
Requires:       %{name} = %{version}

%description devel
This package contains development files for package %{name}.

%autosetup -p1 -n %{pkg}-%{version}

%if "%{build_flavor}" == ""

%if "%{build_flavor}" == ""

%if "%{build_flavor}" == "testsuite"
git --no-pager config --global ''
git --no-pager config --global  'Your Name'
git --no-pager init .
git --no-pager add .
git --no-pager commit -m '%{version}'
git --no-pager tag '%{version}'

%if "%{build_flavor}" == ""
%files -f %{name}.files

%files devel -f %{name}.files.devel


openSUSE Build Service is sponsored by