oasis
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=33
This commit is contained in:
parent
6b67211f7d
commit
7c5ce3e2fe
@ -39,8 +39,9 @@ Requires: ocaml-runtime
|
||||
|
||||
BuildRequires: gawk
|
||||
BuildRequires: ocaml >= 3.10.2
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-oasis-devel
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-oasis
|
||||
BuildRequires: ocaml-ocamlbuild
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRequires: ocamlfind(bytes)
|
||||
@ -66,16 +67,20 @@ developing applications that use %{name}.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
oasis -debug setup-clean
|
||||
oasis -debug setup -setup-update none
|
||||
ls -AlRt .
|
||||
make setup.data CONFIGUREFLAGS="--destdir $RPM_BUILD_ROOT --docdir %{_defaultdocdir}/%{name}"
|
||||
make all
|
||||
oasis setup
|
||||
ocaml setup.ml -configure --help
|
||||
ocaml setup.ml -configure \
|
||||
--destdir %{buildroot} \
|
||||
--libdir `ocamlc -where` \
|
||||
--bindir %{_bindir} \
|
||||
--prefix %{_prefix}
|
||||
ocaml setup.ml -build
|
||||
|
||||
%install
|
||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
make NATIVE=true install
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
|
||||
export OCAMLFIND_LDCONF=/dev/null
|
||||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
ocaml setup.ml -install
|
||||
#
|
||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||
@ -97,7 +102,6 @@ _EOF_
|
||||
%{_libdir}/ocaml/*/*.cmxs
|
||||
%endif
|
||||
%{_libdir}/ocaml/*/*.so
|
||||
%{_libdir}/ocaml/*/*.so.owner
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user