Initial import.
This commit is contained in:
parent
ac80ca0b32
commit
e0485370ff
|
@ -0,0 +1 @@
|
|||
ounit-1.0.2.tar.gz
|
|
@ -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 <rjones@redhat.com> - 1.0.2-2
|
||||
- License is MIT.
|
||||
|
||||
* Sat May 3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.2-1
|
||||
- Initial RPM release.
|
Loading…
Reference in New Issue