ocaml-ounit/ocaml-ounit.spec

134 lines
3.6 KiB
RPMSpec
Raw Normal View History

2008-05-12 19:18:15 +00:00
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
Name: ocaml-ounit
2011-01-05 15:52:17 +00:00
Version: 1.1.0
Release: 1%{?dist}
2008-05-12 19:18:15 +00:00
Summary: Unit test framework for OCaml
Group: Development/Libraries
License: MIT
2011-01-05 15:52:17 +00:00
URL: http://ounit.forge.ocamlcore.org/
Source0: https://forge.ocamlcore.org/frs/download.php/495/ounit-%{version}.tar.gz
2008-05-12 19:18:15 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
2008-05-12 19:18:15 +00:00
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}
2011-01-05 15:52:17 +00:00
sh ./configure --destdir $RPM_BUILD_ROOT
2008-05-12 19:18:15 +00:00
%build
make all
make doc
%check
make test
%install
rm -rf $RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install
2011-01-05 15:52:17 +00:00
# Remove this, reinstall it properly with a %%doc rule below.
rm -rf $RPM_BUILD_ROOT/usr/local/share/doc
2008-05-12 19:18:15 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
2011-01-05 15:52:17 +00:00
%doc LICENSE.txt
2008-05-12 19:18:15 +00:00
%{_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,-)
2011-01-05 15:52:17 +00:00
%doc LICENSE.txt README.txt
%doc _build/src/api-ounit.docdir/*
2008-05-12 19:18:15 +00:00
%if %opt
%{_libdir}/ocaml/oUnit/*.a
%{_libdir}/ocaml/oUnit/*.cmxa
%endif
%{_libdir}/ocaml/oUnit/*.mli
%changelog
2011-01-05 15:52:17 +00:00
* Wed Jan 5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.1.0-1
- New upstream version 1.1.0.
- Project has moved to new upstream URL and Source0.
- Rebuild for OCaml 3.12.0.
- New build system:
+ doesn't need 'make allopt'
+ DESTDIR logic changed (see OASIS bug 852)
+ docdir moved
- LICENSE and README files renamed
2009-12-30 13:51:44 +00:00
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-7
- Rebuild for OCaml 3.11.2.
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-05-23 08:18:06 +00:00
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-5
- Rebuild for OCaml 3.11.1
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
(added sparc64 per request from the sparc maintainer)
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-04 19:34:31 +00:00
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-3
- Rebuild for OCaml 3.11.0+rc1.
2008-11-24 11:46:06 +00:00
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-2
- Rebuild for OCaml 3.11.0
2008-08-31 10:02:34 +00:00
* Sun Aug 31 2008 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-1
- New upstream version 1.0.3.
2008-05-12 19:18:15 +00:00
* 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.