17e166
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
17e166
%global debug_package %{nil}
17e166
17e166
Name:           ocaml-extlib
17e166
Version:        1.5.3
17e166
Release:        7%{?dist}
17e166
Summary:        OCaml ExtLib additions to the standard library
17e166
17e166
License:        LGPLv2+ with exceptions
17e166
URL:            http://code.google.com/p/ocaml-extlib/
17e166
Source0:        http://ocaml-extlib.googlecode.com/files/extlib-%{version}.tar.gz
17e166
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17e166
17e166
Patch0:         extlib-install.patch
17e166
17e166
# Omitted from source tarball, I think.  This is copied from 1.5.2.
17e166
Source1:        odoc_style.css
17e166
17e166
BuildRequires:  ocaml >= 4.00.1
17e166
BuildRequires:  ocaml-findlib-devel >= 1.3.3-3
17e166
BuildRequires:  ocaml-ocamldoc
17e166
BuildRequires:  gawk
17e166
17e166
17e166
%description
17e166
ExtLib is a project aiming at providing a complete - yet small -
17e166
standard library for the OCaml programming language. The purpose of
17e166
this library is to add new functions to OCaml Standard Library
17e166
modules, to modify some functions in order to get better performances
17e166
or more safety (tail-recursive) but also to provide new modules which
17e166
should be useful for the average OCaml programmer.
17e166
17e166
17e166
%package        devel
17e166
Summary:        Development files for %{name}
17e166
Requires:       %{name} = %{version}-%{release}
17e166
17e166
17e166
%description    devel
17e166
The %{name}-devel package contains libraries and signature files for
17e166
developing applications that use %{name}.
17e166
17e166
17e166
%prep
17e166
%setup -q -n extlib-%{version}
17e166
17e166
cp %{SOURCE1} .
17e166
17e166
%patch0 -p1
17e166
17e166
17e166
%build
17e166
# You can't just build extlib!
17e166
17e166
17e166
%install
17e166
rm -rf $RPM_BUILD_ROOT
17e166
17e166
extlibdir=$RPM_BUILD_ROOT%{_libdir}/ocaml/extlib
17e166
mkdir -p $extlibdir
17e166
17e166
# This does the build and install.
17e166
%if %opt
17e166
ocaml install.ml -d $extlibdir -b -n -doc
17e166
%else
17e166
ocaml install.ml -d $extlibdir -b -doc
17e166
%endif
17e166
17e166
# Copy the interface files, and extLib.ml which is really an interface.
17e166
cp extLib.ml *.mli $RPM_BUILD_ROOT%{_libdir}/ocaml/extlib
17e166
17e166
install -m 0644 META $RPM_BUILD_ROOT%{_libdir}/ocaml/extlib/
17e166
17e166
# Move the HTML documentation - we'll install it using a %doc rule.
17e166
mv $extlibdir/extlib-doc .
17e166
17e166
17e166
%files
17e166
%doc README.txt LICENSE
17e166
%{_libdir}/ocaml/extlib
17e166
%if %opt
17e166
%exclude %{_libdir}/ocaml/extlib/*.a
17e166
%exclude %{_libdir}/ocaml/extlib/*.cmxa
17e166
%exclude %{_libdir}/ocaml/extlib/*.cmx
17e166
%endif
17e166
%exclude %{_libdir}/ocaml/extlib/*.mli
17e166
%exclude %{_libdir}/ocaml/extlib/*.ml
17e166
17e166
17e166
%files devel
17e166
%doc extlib-doc/*
17e166
%if %opt
17e166
%{_libdir}/ocaml/extlib/*.a
17e166
%{_libdir}/ocaml/extlib/*.cmxa
17e166
%{_libdir}/ocaml/extlib/*.cmx
17e166
%endif
17e166
%{_libdir}/ocaml/extlib/*.mli
17e166
%{_libdir}/ocaml/extlib/*.ml
17e166
17e166
17e166
%changelog
17e166
* Sat Sep 23 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-7
17e166
- Remove ExcludeArch and build on s390x.
17e166
  related: rhbz#1447990
17e166
17e166
* Fri Sep 22 2017 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-6
17e166
- Rebuild for OCaml 4.05
17e166
  resolves: rhbz#1447990
17e166
17e166
* Fri Aug 08 2014 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-5
17e166
- Resolves: rhbz#1125625
17e166
17e166
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5.3-4
17e166
- Mass rebuild 2013-12-27
17e166
17e166
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-3
17e166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
17e166
17e166
* Tue Nov 27 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-2
17e166
- BR >= OCaml 4.00.1 so we can't be built against the wrong OCaml.
17e166
17e166
* Mon Oct 29 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5.3-1
17e166
- New upstream version 1.5.3.
17e166
- Remove patch, now upstream.
17e166
- Clean up the spec file.
17e166
- Rebuild for OCaml 4.00.1.
17e166
17e166
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-4
17e166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
17e166
17e166
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-3
17e166
- Rebuild for OCaml 4.00.0.
17e166
17e166
* Thu Jun  7 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-2
17e166
- Fix for OCaml 4.00.0.
17e166
17e166
* Fri Jan  6 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5.2-1
17e166
- New upstream version 1.5.2.
17e166
17e166
* Wed Jan  5 2011 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-10
17e166
- Rebuild for OCaml 3.12.0.
17e166
17e166
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-9
17e166
- Rebuild for OCaml 3.11.2.
17e166
17e166
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-8
17e166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
17e166
17e166
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-7
17e166
- Rebuild for OCaml 3.11.1
17e166
17e166
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
17e166
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
17e166
  (added sparc64 per request from the sparc maintainer)
17e166
17e166
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-6
17e166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
17e166
17e166
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-5
17e166
- Rebuild for OCaml 3.11.0+rc1.
17e166
17e166
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-4
17e166
- Rebuild for OCaml 3.11.0
17e166
17e166
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-3
17e166
- Rebuild for OCaml 3.10.2
17e166
17e166
* Sat Mar  1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-2
17e166
- License is LGPLv2+ with exceptions.
17e166
- Rebuild for ppc64.
17e166
17e166
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-1
17e166
- New upstream version 1.5.1.
17e166
- New home page.
17e166
- Rebuild for OCaml 3.10.1.
17e166
17e166
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-8
17e166
- Force rebuild because of updated requires/provides scripts in OCaml.
17e166
17e166
* Mon Sep  3 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-7
17e166
- Force rebuild because of base OCaml.
17e166
17e166
* Thu Aug 30 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-6
17e166
- Force rebuild because of changed BRs in base OCaml.
17e166
17e166
* Wed Aug  1 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-5
17e166
- ExcludeArch ppc64
17e166
- Added BR on ocaml-ocamldoc
17e166
- Use %doc to install documentation.
17e166
17e166
* Mon Jun 11 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-4
17e166
- Updated to latest packaging guidelines.
17e166
17e166
* Sat Jun  2 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-3
17e166
- Support for bytecode-only architectures.
17e166
- *.cmx files are needed.
17e166
17e166
* Fri May 25 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-2
17e166
- Use OCaml find-requires and find-provides.
17e166
17e166
* Fri May 18 2007 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
17e166
- Initial RPM release.
17e166