- Use oasis (fate#320836)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=16
This commit is contained in:
parent
9578927c7b
commit
b692b460be
@ -1,7 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 30 06:39:17 UTC 2016 - ohering@suse.de
|
||||
|
||||
- Use ocamlfind() macro (fate#320836)
|
||||
- Use oasis (fate#320836)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 10 10:18:47 UTC 2015 - ohering@suse.de
|
||||
|
@ -27,8 +27,7 @@ Url: http://ounit.forge.ocamlcore.org/
|
||||
Source0: ounit-%{version}.tar.gz
|
||||
Patch0: ounit-strict-formats.diff
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocamlfind(findlib)
|
||||
BuildRequires: ocaml-ocamlbuild
|
||||
BuildRequires: ocaml-oasis
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -64,6 +63,7 @@ Development files needed for application based on %{name}.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
oasis setup
|
||||
ocaml setup.ml -configure \
|
||||
--bindir '%{_bindir}' \
|
||||
--mandir '%{_mandir}' \
|
||||
@ -78,12 +78,12 @@ ocaml setup.ml -configure \
|
||||
--exec-prefix '%{_exec_prefix}' \
|
||||
--sharedstatedir '%{_sharedstatedir}'
|
||||
|
||||
make %{?_smp_mflags}
|
||||
ocaml setup.ml -build
|
||||
|
||||
%install
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
||||
test -d "$OCAMLFIND_DESTDIR" || mkdir -p "$OCAMLFIND_DESTDIR"
|
||||
make install %{?_smp_mflags}
|
||||
export OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
|
||||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
ocaml setup.ml -install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
@ -103,8 +103,11 @@ make install %{?_smp_mflags}
|
||||
%{_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
|
||||
|
Loading…
Reference in New Issue
Block a user