Blame SPECS/ocaml-extlib.spec

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