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:
Olaf Hering 2014-10-23 11:34:51 +00:00 committed by Git OBS Bridge
parent 038ea85a2f
commit bd82807eb0

View File

@ -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
@ -25,9 +26,10 @@ License: GPL-3.0
Group: Development/Libraries/Other
Url: http://ounit.forge.ocamlcore.org/
Source0: %{distname}-%{version}.tar.gz
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.02.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -37,9 +39,9 @@ framework for Haskell. It is similar to JUnit, and other xUnit testing
frameworks.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
Development files needed for application based on %{name}.
@ -59,7 +61,6 @@ ocaml setup.ml -configure \
--sysconfdir '%{_sysconfdir}' \
--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