File ocaml-ocamlbuild.spec of Package ocaml-ocamlbuild

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

Name:           ocaml-ocamlbuild
Version:        0.11.0
Release:        0
Summary:        Generic build tool for building OCaml library and programs
License:        LGPL-2.0
Group:          Development/Languages/OCaml
Source:         %{name}-%{version}.tar.xz
Conflicts:      ocaml < 4.03.0
BuildRequires:  ocaml >= 4.03.0
BuildRequires:  ocaml-rpm-macros >= 4.02.1
BuildRequires:  ocaml-runtime
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

OCamlbuild is a generic build tool, that has built-in rules for
building OCaml library and programs.

OCamlbuild was distributed as part of the OCaml distribution for
OCaml versions between 3.10.0 and 4.02.3. Starting from OCaml
4.03, it is now released separately.

%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}.

%setup -q -n ocamlbuild-%{version}

tee %{name}.sh <<'_EOF_'
set -x
exec \
make \
PREFIX=%{_prefix} \
%if 0%{?ocaml_native_compiler}
sh %{name}.sh -f configure.make
sh %{name}.sh configure
sh %{name}.sh %{?_smp_mflags}

sh %{name}.sh \
install \
DESTDIR=%{buildroot} %{?_smp_mflags}
find %{buildroot} -ls

%doc Changes  LICENSE
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*

%files devel
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%if 0%{?ocaml_native_compiler}

openSUSE Build Service is sponsored by