From e0485370ffd6aeffa77111586c4866634882d3a6 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: May 12 2008 19:18:15 +0000 Subject: Initial import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..186488b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ounit-1.0.2.tar.gz diff --git a/ocaml-ounit.spec b/ocaml-ounit.spec new file mode 100644 index 0000000..b111d53 --- /dev/null +++ b/ocaml-ounit.spec @@ -0,0 +1,96 @@ +%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +%define debug_package %{nil} + +Name: ocaml-ounit +Version: 1.0.2 +Release: 2%{?dist} +Summary: Unit test framework for OCaml + +Group: Development/Libraries +License: MIT +URL: http://www.xs4all.nl/~mmzeeman/ocaml/ +Source0: http://www.xs4all.nl/~mmzeeman/ocaml/ounit-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ocaml >= 3.10.0 +BuildRequires: ocaml-findlib-devel +BuildRequires: ocaml-ocamldoc + +%define _use_internal_dependency_generator 0 +%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh +%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh + + +%description +OUnit is a unit test framework for OCaml. It allows one to easily +create unit-tests for OCaml code. It is based on HUnit, a unit testing +framework for Haskell. It is similar to JUnit, and other xUnit testing +frameworks. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and signature files for +developing applications that use %{name}. + + +%prep +%setup -q -n ounit-%{version} + + +%build +make all +%if %opt +make allopt +%endif +make doc + + +%check +make test + + +%install +rm -rf $RPM_BUILD_ROOT +export DESTDIR=$RPM_BUILD_ROOT +export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml +mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs +make install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENCE +%{_libdir}/ocaml/oUnit +%if %opt +%exclude %{_libdir}/ocaml/oUnit/*.a +%exclude %{_libdir}/ocaml/oUnit/*.cmxa +%endif +%exclude %{_libdir}/ocaml/oUnit/*.mli + + +%files devel +%defattr(-,root,root,-) +%doc LICENCE README doc +%if %opt +%{_libdir}/ocaml/oUnit/*.a +%{_libdir}/ocaml/oUnit/*.cmxa +%endif +%{_libdir}/ocaml/oUnit/*.mli + + +%changelog +* Mon May 12 2008 Richard W.M. Jones - 1.0.2-2 +- License is MIT. + +* Sat May 3 2008 Richard W.M. Jones - 1.0.2-1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..16b12b4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +27320856992f0d1b9b0abc186df2e552 ounit-1.0.2.tar.gz