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