LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ocaml-pa_bench.spec of Package ocaml-pa_bench (Project home:olh:ocaml)

#
# 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
%{ocaml_preserve_bytecode}
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

%description
pa_bench

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


%prep
%setup -q

%build
head -vn -0 META* || :
rm -fv setup.ml my*.ml META*
sed -i~ "
/^OASISFormat:/s@^.*@OASISFormat: 0.4@
/^Plugins:/s@0\.3@0.4@g
/^Plugins:.*META/n
s@^Plugins:.*@&, META(0.4)@
/^FilesAB/d
" _oasis
diff -u _oasis~ _oasis || :
%oasis_setup_dynamic
%ocaml_oasis_configure --enable-docs
%ocaml_oasis_build
%ocaml_oasis_doc

%install
%ocaml_oasis_findlib_install

%files
%defattr(-,root,root)
%doc LICENSE*
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmxs
%endif

%files devel
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/*.a
%if %{ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%endif
%{_libdir}/ocaml/*/*.annot
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.cmt
%{_libdir}/ocaml/*/*.cmti
%{_libdir}/ocaml/*/*.ml
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/META

%changelog