%ocaml_oasis_configure
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=18
This commit is contained in:
parent
9195d2770a
commit
a1e4f94de0
@ -29,7 +29,7 @@ Patch0: ounit-strict-formats.diff
|
|||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-oasis
|
BuildRequires: ocaml-oasis
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# ocaml autodep start for pkg: ocaml-ounit
|
# ocaml autodep start for pkg: ocaml-ounit
|
||||||
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
||||||
@ -64,26 +64,12 @@ Development files needed for application based on %{name}.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
oasis setup
|
oasis setup
|
||||||
ocaml setup.ml -configure \
|
%ocaml_oasis_configure --enable-docs
|
||||||
--bindir '%{_bindir}' \
|
%ocaml_oasis_build
|
||||||
--mandir '%{_mandir}' \
|
%ocaml_oasis_doc
|
||||||
--destdir '%{buildroot}' \
|
|
||||||
--datarootdir '%{_datadir}' \
|
|
||||||
--libdir '%{_libdir}' \
|
|
||||||
--libexecdir '%{_libexecdir}' \
|
|
||||||
--localstatedir '%{_localstatedir}' \
|
|
||||||
--sbindir '%{_sbindir}' \
|
|
||||||
--prefix '%{_prefix}' \
|
|
||||||
--sysconfdir '%{_sysconfdir}' \
|
|
||||||
--exec-prefix '%{_exec_prefix}' \
|
|
||||||
--sharedstatedir '%{_sharedstatedir}'
|
|
||||||
|
|
||||||
ocaml setup.ml -build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
|
%ocaml_oasis_findlib_install
|
||||||
mkdir -p $OCAMLFIND_DESTDIR
|
|
||||||
ocaml setup.ml -install
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -96,6 +82,7 @@ ocaml setup.ml -install
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%{oasis_docdir_html}
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%if %{ocaml_native_compiler}
|
%if %{ocaml_native_compiler}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user