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: gawk
|
||||||
BuildRequires: ocaml >= 3.10.2
|
BuildRequires: ocaml >= 3.10.2
|
||||||
BuildRequires: ocaml-findlib-devel
|
BuildRequires: ocaml-findlib
|
||||||
BuildRequires: ocaml-oasis-devel
|
BuildRequires: ocaml-oasis
|
||||||
|
BuildRequires: ocaml-ocamlbuild
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||||
BuildRequires: ocamlfind(bytes)
|
BuildRequires: ocamlfind(bytes)
|
||||||
@ -66,16 +67,20 @@ developing applications that use %{name}.
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
oasis -debug setup-clean
|
oasis setup
|
||||||
oasis -debug setup -setup-update none
|
ocaml setup.ml -configure --help
|
||||||
ls -AlRt .
|
ocaml setup.ml -configure \
|
||||||
make setup.data CONFIGUREFLAGS="--destdir $RPM_BUILD_ROOT --docdir %{_defaultdocdir}/%{name}"
|
--destdir %{buildroot} \
|
||||||
make all
|
--libdir `ocamlc -where` \
|
||||||
|
--bindir %{_bindir} \
|
||||||
|
--prefix %{_prefix}
|
||||||
|
ocaml setup.ml -build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
export OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
|
||||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
export OCAMLFIND_LDCONF=/dev/null
|
||||||
make NATIVE=true install
|
mkdir -p $OCAMLFIND_DESTDIR
|
||||||
|
ocaml setup.ml -install
|
||||||
#
|
#
|
||||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||||
@ -97,7 +102,6 @@ _EOF_
|
|||||||
%{_libdir}/ocaml/*/*.cmxs
|
%{_libdir}/ocaml/*/*.cmxs
|
||||||
%endif
|
%endif
|
||||||
%{_libdir}/ocaml/*/*.so
|
%{_libdir}/ocaml/*/*.so
|
||||||
%{_libdir}/ocaml/*/*.so.owner
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user