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