A new user interface for you!

File ocaml-pa_bench.spec of Package ocaml-pa_bench

# spec file for package ocaml-pa_bench
# Copyright (c) 2016 SUSE LINUX Products 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 http://bugs.opensuse.org/

Name:           ocaml-pa_bench
Version:        0
Release:        0
License:        Apache-2.0
Summary:        OCaml inline benchmarks.
Url:            https://github.com/janestreet/pa_bench
Group:          Development/Libraries/Other
Source:         %{name}-%{version}.tar.xz
BuildRequires:  ocaml
BuildRequires:  ocaml-oasis
BuildRequires:  ocaml-ocamldoc
BuildRequires:  ocaml-rpm-macros >= 4.03
BuildRequires:  ocamlfind(camlp4)
BuildRequires:  ocamlfind(camlp4.extend)
BuildRequires:  ocamlfind(camlp4.lib)
BuildRequires:  ocamlfind(camlp4.quotations)
BuildRequires:  ocamlfind(oasis)
BuildRequires:  ocamlfind(ocamlbuild)
BuildRequires:  ocamlfind(pa_ounit.syntax)
BuildRequires:  ocamlfind(type_conv)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%setup -q

head -vn -0 META* || :
rm -fv setup.ml my*.ml META*
sed -i~ "
/^OASISFormat:/s@^.*@OASISFormat: 0.4@
s@^Plugins:.*@&, META(0.4)@
" _oasis
diff -u _oasis~ _oasis || :
%ocaml_oasis_configure --enable-docs


%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%if %{ocaml_native_compiler}

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