BuildRequires: ocaml-rpm-macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=2
This commit is contained in:
parent
038ea85a2f
commit
bd82807eb0
@ -15,8 +15,9 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define distname ounit
|
||||
|
||||
%define distname ounit
|
||||
%{ocaml_preserve_bytecode}
|
||||
Name: ocaml-%{distname}
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
@ -28,6 +29,7 @@ Source0: %{distname}-%{version}.tar.gz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -60,7 +62,6 @@ ocaml setup.ml -configure \
|
||||
--exec-prefix '%{_exec_prefix}' \
|
||||
--sharedstatedir '%{_sharedstatedir}'
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@ -73,18 +74,22 @@ make install %{?_smp_mflags}
|
||||
%defattr(-,root,root,-)
|
||||
%doc
|
||||
%{_libdir}/ocaml/oUnit
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.a
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.ml
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.mli
|
||||
%if %{ocaml_native_compiler}
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.a
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.cmx
|
||||
%exclude %{_libdir}/ocaml/oUnit/*.cmxa
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/ocaml/oUnit/*.a
|
||||
%{_libdir}/ocaml/oUnit/*.ml
|
||||
%{_libdir}/ocaml/oUnit/*.mli
|
||||
%if %{ocaml_native_compiler}
|
||||
%{_libdir}/ocaml/oUnit/*.a
|
||||
%{_libdir}/ocaml/oUnit/*.cmx
|
||||
%{_libdir}/ocaml/oUnit/*.cmxa
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user