forked from pool/ocaml-fileutils
%ocaml_oasis_configure
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-fileutils?expand=0&rev=16
This commit is contained in:
parent
70e020a96c
commit
ecd0a62e16
@ -26,12 +26,12 @@ Group: Development/Libraries/Other
|
|||||||
Url: https://forge.ocamlcore.org/projects/ocaml-fileutils/
|
Url: https://forge.ocamlcore.org/projects/ocaml-fileutils/
|
||||||
Source0: ocaml-fileutils-%{version}.tar.xz
|
Source0: ocaml-fileutils-%{version}.tar.xz
|
||||||
BuildRequires: ocaml >= 4.00.1
|
BuildRequires: ocaml >= 4.00.1
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
|
||||||
BuildRequires: ocamlfind(str)
|
|
||||||
BuildRequires: ocamlfind(oUnit)
|
|
||||||
BuildRequires: ocamlfind(unix)
|
|
||||||
BuildRequires: ocaml-oasis
|
BuildRequires: ocaml-oasis
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||||
|
BuildRequires: ocamlfind(oUnit)
|
||||||
|
BuildRequires: ocamlfind(str)
|
||||||
|
BuildRequires: ocamlfind(unix)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# ocaml autodep start for pkg: ocaml-fileutils
|
# ocaml autodep start for pkg: ocaml-fileutils
|
||||||
# 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
|
||||||
@ -65,31 +65,15 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
oasis setup
|
oasis setup
|
||||||
ocaml setup.ml -configure \
|
%ocaml_oasis_configure --enable-docs
|
||||||
--enable-tests \
|
%ocaml_oasis_build
|
||||||
--bindir '%{_bindir}' \
|
%ocaml_oasis_doc
|
||||||
--mandir '%{_mandir}' \
|
|
||||||
--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
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
ocaml setup.ml -test
|
%ocaml_oasis_test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -103,6 +87,7 @@ ocaml setup.ml -test
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING.txt AUTHORS.txt CHANGELOG.txt README.txt TODO.txt
|
%doc COPYING.txt AUTHORS.txt CHANGELOG.txt README.txt TODO.txt
|
||||||
|
%{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