%ocaml_oasis_configure
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=35
This commit is contained in:
parent
f7c9a2de98
commit
444e535130
@ -41,7 +41,7 @@ BuildRequires: gawk
|
||||
BuildRequires: ocaml >= 3.10.2
|
||||
BuildRequires: ocaml-oasis
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||
BuildRequires: ocamlfind(bytes)
|
||||
BuildRequires: pcre-devel
|
||||
|
||||
@ -66,19 +66,12 @@ developing applications that use %{name}.
|
||||
|
||||
%build
|
||||
oasis setup
|
||||
ocaml setup.ml -configure --help
|
||||
ocaml setup.ml -configure \
|
||||
--destdir %{buildroot} \
|
||||
--libdir `ocamlc -where` \
|
||||
--bindir %{_bindir} \
|
||||
--prefix %{_prefix}
|
||||
ocaml setup.ml -build
|
||||
%ocaml_oasis_configure --enable-docs
|
||||
%ocaml_oasis_build
|
||||
%ocaml_oasis_doc
|
||||
|
||||
%install
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
|
||||
export OCAMLFIND_LDCONF=/dev/null
|
||||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
ocaml setup.ml -install
|
||||
%ocaml_oasis_findlib_install
|
||||
#
|
||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||
@ -103,6 +96,7 @@ _EOF_
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{oasis_docdir_html}
|
||||
%dir %{_libdir}/ocaml
|
||||
%dir %{_libdir}/ocaml/*
|
||||
%{_libdir}/ocaml/*/*.a
|
||||
|
Loading…
Reference in New Issue
Block a user