ead83e
# OCaml has a bytecode backend that works on anything with a C
ead83e
# compiler, and a native code backend available on a subset of
ead83e
# architectures.  A further subset of architectures support native
ead83e
# dynamic linking.
ead83e
ead83e
%ifarch %{ocaml_native_compiler}
ead83e
%global native_compiler 1
ead83e
%else
ead83e
%global native_compiler 0
ead83e
%endif
ead83e
ead83e
%ifarch %{ocaml_natdynlink}
ead83e
%global natdynlink 1
ead83e
%else
ead83e
%global natdynlink 0
ead83e
%endif
ead83e
5815ad
%global gitcommit c4f3a6c70c12681871573851921d3b070be5744b
5815ad
%global shortcommit c4f3a6c7
7335bb
fdf6a5
Name:           ocaml
7335bb
Version:        4.02.0
5815ad
Release:        0.6.git%{shortcommit}%{?dist}
fdf6a5
183751
Summary:        OCaml compiler and programming environment
fdf6a5
fdf6a5
License:        QPL and (LGPLv2+ with exceptions)
f7302e
fdf6a5
URL:            http://www.ocaml.org
f7302e
7335bb
Source0:        https://github.com/ocaml/%{name}/archive/%{gitcommit}/%{name}-%{gitcommit}.tar.gz
7335bb
Source1:        http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02beta-refman-html.tar.gz
7335bb
Source2:        http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02beta-refman.pdf
7335bb
Source3:        http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02beta-refman.info.tar.gz
f7302e
a07112
# IMPORTANT NOTE:
a07112
#
a07112
# These patches are generated from unpacked sources stored in a
a07112
# fedorahosted git repository.  If you change the patches here, they
a07112
# will be OVERWRITTEN by the next update.  Instead, request commit
a07112
# access to the fedorahosted project:
a07112
#
44cd19
# https://git.fedorahosted.org/cgit/fedora-ocaml.git/
a07112
#
7335bb
# Current branch: fedora-22-4.02
7335bb
#
a07112
# ALTERNATIVELY add a patch to the end of the list (leaving the
a07112
# existing patches unchanged) adding a comment to note that it should
a07112
# be incorporated into the git repo at a later time.
a07112
#
7335bb
Patch0001:      0001-Don-t-ignore-.-configure-it-s-a-real-git-file.patch
518f1a
Patch0002:      0002-Ensure-empty-compilerlibs-directory-is-created-by-gi.patch
7335bb
Patch0003:      0003-Don-t-add-rpaths-to-libraries.patch
7335bb
Patch0004:      0004-ocamlbyteinfo-ocamlplugininfo-Useful-utilities-from-.patch
518f1a
Patch0005:      0005-configure-Allow-user-defined-C-compiler-flags.patch
24e662
Patch0006:      0006-Add-support-for-ppc64.patch
7335bb
Patch0007:      0007-Add-support-for-ppc64le.patch
7335bb
Patch0008:      0008-arm-arm64-Mark-stack-as-non-executable.patch
7335bb
Patch0009:      0009-arg-Add-no_arg-and-get_arg-helper-functions.patch
7335bb
Patch0010:      0010-arg-Allow-flags-such-as-flag-arg-as-well-as-flag-arg.patch
e575a8
98f566
# Add BFD support so that ocamlobjinfo supports *.cmxs format (RHBZ#1113735).
98f566
BuildRequires:  binutils-devel
37ad9b
fdf6a5
BuildRequires:  ncurses-devel
03108e
BuildRequires:  gdbm-devel
fdf6a5
BuildRequires:  emacs
8859c7
BuildRequires:  gawk
6c6aa2
BuildRequires:  perl
bf42ec
BuildRequires:  util-linux
a5dcf3
BuildRequires:  libICE-devel
a5dcf3
BuildRequires:  libSM-devel
03108e
BuildRequires:  libX11-devel
a5dcf3
BuildRequires:  libXaw-devel
a5dcf3
BuildRequires:  libXext-devel
a5dcf3
BuildRequires:  libXft-devel
a5dcf3
BuildRequires:  libXmu-devel
a5dcf3
BuildRequires:  libXrender-devel
a5dcf3
BuildRequires:  libXt-devel
a5dcf3
BuildRequires:  mesa-libGL-devel
a5dcf3
BuildRequires:  mesa-libGLU-devel
25069b
BuildRequires:  chrpath
66cff0
66cff0
# git is required for patch management.
66cff0
BuildRequires:  git
66cff0
6c6aa2
Requires:       gcc
be42b9
Requires:       rpm-build >= 4.8.0
66cff0
0d053e
# Bundles an MD5 implementation in byterun/md5.{c,h}
0d053e
Provides:       bundled(md5-plumb)
0d053e
fdf6a5
Provides:       ocaml(compiler) = %{version}
01afb1
dca492
%global __ocaml_requires_opts -c -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo'
dca492
%global __ocaml_provides_opts -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo'
fdf6a5
f7302e
cvsextras be41c8
%description
183751
OCaml is a high-level, strongly-typed, functional and object-oriented
183751
programming language from the ML family of languages.
cvsextras be41c8
cvsextras be41c8
This package comprises two batch compilers (a fast bytecode compiler
cvsextras be41c8
and an optimizing native-code compiler), an interactive toplevel system,
7335bb
parsing tools (Lex,Yacc), a replay debugger, a documentation generator,
cvsextras be41c8
and a comprehensive library.
cvsextras be41c8
a5dcf3
6c6aa2
%package runtime
183751
Summary:        OCaml runtime environment
bf42ec
Requires:       util-linux
fdf6a5
Provides:       ocaml(runtime) = %{version}
6c6aa2
6c6aa2
%description runtime
183751
OCaml is a high-level, strongly-typed, functional and object-oriented
183751
programming language from the ML family of languages.
6c6aa2
183751
This package contains the runtime environment needed to run OCaml
183751
bytecode.
6c6aa2
6c6aa2
6c6aa2
%package source
183751
Summary:        Source code for OCaml libraries
6c6aa2
Requires:       ocaml = %{version}-%{release}
6c6aa2
6c6aa2
%description source
183751
Source code for OCaml libraries.
6c6aa2
6c6aa2
6c6aa2
%package x11
183751
Summary:        X11 support for OCaml
6c6aa2
Requires:       ocaml-runtime = %{version}-%{release}
6c6aa2
Requires:       libX11-devel
6c6aa2
6c6aa2
%description x11
183751
X11 support for OCaml.
6c6aa2
6c6aa2
cvsextras be41c8
%package ocamldoc
2d6392
Summary:        Documentation generator for OCaml
fdf6a5
Requires:       ocaml = %{version}-%{release}
fd5d93
Provides:	ocamldoc
cvsextras be41c8
cvsextras be41c8
%description ocamldoc
183751
Documentation generator for OCaml.
cvsextras be41c8
a5dcf3
cvsextras be41c8
%package emacs
183751
Summary:        Emacs mode for OCaml
fdf6a5
Requires:       ocaml = %{version}-%{release}
fdf6a5
Requires:       emacs
cvsextras be41c8
cvsextras be41c8
%description emacs
183751
Emacs mode for OCaml.
cvsextras be41c8
a5dcf3
cvsextras be41c8
%package docs
183751
Summary:        Documentation for OCaml
fdf6a5
Requires:       ocaml = %{version}-%{release}
fdf6a5
Requires(post): /sbin/install-info
6c6aa2
Requires(preun): /sbin/install-info
6c6aa2
cvsextras be41c8
cvsextras be41c8
%description docs
183751
OCaml is a high-level, strongly-typed, functional and object-oriented
183751
programming language from the ML family of languages.
6c6aa2
6c6aa2
This package contains documentation in PDF and HTML format as well as
6c6aa2
man pages and info files.
cvsextras be41c8
a5dcf3
183751
%package compiler-libs
183751
Summary:        Compiler libraries for OCaml
183751
Requires:       ocaml = %{version}-%{release}
183751
183751
183751
%description compiler-libs
183751
OCaml is a high-level, strongly-typed, functional and object-oriented
183751
programming language from the ML family of languages.
183751
183751
This package contains some modules used internally by the OCaml
183751
compilers, useful for the development of some OCaml applications.
183751
Note that this exposes internal details of the OCaml compiler which
183751
may not be portable between versions.
183751
183751
cvsextras be41c8
%prep
7335bb
%setup -q -T -b 0 -n %{name}-%{gitcommit}
7335bb
%setup -q -T -D -a 1 -n %{name}-%{gitcommit}
7335bb
%setup -q -T -D -a 3 -n %{name}-%{gitcommit}
9cefc9
cp %{SOURCE2} refman.pdf
a07112
a07112
git init
a07112
git config user.email "noone@example.com"
a07112
git config user.name "no one"
a07112
git add .
7335bb
git add -f configure   ;# required because .gitignore lists this file
a07112
git commit -a -q -m "%{version} baseline"
5815ad
git am %{patches} 
817b03
a5dcf3
cvsextras be41c8
%build
f67fde
# make -jN (N > 1) breaks the build.  Therefore we cannot use
f67fde
# %{?_smp_mflags} nor MAKEFLAGS.
f67fde
unset MAKEFLAGS
518f1a
518f1a
# For ppc64 we need a larger stack than default to compile some files
518f1a
# because the stages in the OCaml compiler are not mutually tail
518f1a
# recursive.
a0eedc
%ifarch ppc64 ppc64le
518f1a
ulimit -a
518f1a
ulimit -Hs 65536
518f1a
ulimit -Ss 65536
518f1a
%endif
518f1a
9cefc9
CFLAGS="$RPM_OPT_FLAGS" \
9cefc9
./configure \
cvsextras be41c8
    -bindir %{_bindir} \
cvsextras be41c8
    -libdir %{_libdir}/ocaml \
eafcfe
    -x11lib %{_libdir} \
eafcfe
    -x11include %{_includedir} \
119698
    -mandir %{_mandir}/man1 \
119698
    -no-curses
01afb1
make world
01afb1
%if %{native_compiler}
01afb1
make opt opt.opt
01afb1
%endif
fa207e
make -C emacs ocamltags
6c6aa2
a06adc
# Currently these tools are supplied by Debian, but are expected
a06adc
# to go upstream at some point.
84643c
includes="-nostdlib -I stdlib -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I otherlibs/unix -I otherlibs/str -I otherlibs/dynlink"
84643c
boot/ocamlrun ./ocamlc $includes dynlinkaux.cmo ocamlbyteinfo.ml -o ocamlbyteinfo
2d6392
# ocamlplugininfo doesn't compile because it needs 'dynheader' (type
2d6392
# decl) and I have no idea where that comes from
c6dd15
#cp otherlibs/dynlink/natdynlink.ml .
c6dd15
#boot/ocamlrun ./ocamlopt $includes unix.cmxa str.cmxa natdynlink.ml ocamlplugininfo.ml -o ocamlplugininfo
a06adc
a5dcf3
cvsextras be41c8
%install
6c6aa2
make install \
6c6aa2
     BINDIR=$RPM_BUILD_ROOT%{_bindir} \
6c6aa2
     LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
6c6aa2
     MANDIR=$RPM_BUILD_ROOT%{_mandir}
cvsextras be41c8
perl -pi -e "s|^$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{_libdir}/ocaml/ld.conf
6c6aa2
cvsextras be41c8
(
6c6aa2
    # install emacs files
cvsextras be41c8
    cd emacs;
6c6aa2
    make install \
fdf6a5
         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
fdf6a5
         EMACSDIR=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
cvsextras be41c8
    make install-ocamltags BINDIR=$RPM_BUILD_ROOT%{_bindir}
cvsextras be41c8
)
6c6aa2
cvsextras be41c8
(
6c6aa2
    # install info files
cvsextras be41c8
    mkdir -p $RPM_BUILD_ROOT%{_infodir};
cvsextras be41c8
    cd infoman; cp ocaml*.gz $RPM_BUILD_ROOT%{_infodir}
cvsextras be41c8
)
6c6aa2
6a495c
echo %{version} > $RPM_BUILD_ROOT%{_libdir}/ocaml/fedora-ocaml-release
6c6aa2
25069b
# Remove rpaths from stublibs .so files.
25069b
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so
25069b
a06adc
install -m 0755 ocamlbyteinfo $RPM_BUILD_ROOT%{_bindir}
c6dd15
#install -m 0755 ocamlplugininfo $RPM_BUILD_ROOT%{_bindir}
a06adc
2d6392
find $RPM_BUILD_ROOT -name .ignore -delete
2d6392
6c6aa2
6c6aa2
%post docs
cvsextras be41c8
/sbin/install-info \
183751
    --entry="* ocaml: (ocaml).   The OCaml compiler and programming environment" \
84831b
    --section="Programming Languages" \
cvsextras be41c8
    %{_infodir}/%{name}.info \
cvsextras be41c8
    %{_infodir}/dir 2>/dev/null || :
cvsextras be41c8
a5dcf3
6c6aa2
%preun docs
4529a1
if [ $1 -eq 0 ]; then
cvsextras be41c8
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
cvsextras be41c8
fi
cvsextras be41c8
a5dcf3
cvsextras be41c8
%files
2d6392
%doc LICENSE
6c6aa2
%{_bindir}/ocaml
a06adc
%{_bindir}/ocamlbyteinfo
6c6aa2
%{_bindir}/ocamlbuild
6c6aa2
%{_bindir}/ocamlbuild.byte
01afb1
%if %{native_compiler}
6c6aa2
%{_bindir}/ocamlbuild.native
01afb1
%endif
6c6aa2
%{_bindir}/ocamlc
01afb1
%if %{native_compiler}
6c6aa2
%{_bindir}/ocamlc.opt
01afb1
%endif
6c6aa2
%{_bindir}/ocamlcp
6c6aa2
%{_bindir}/ocamldebug
6c6aa2
%{_bindir}/ocamldep
01afb1
%if %{native_compiler}
6c6aa2
%{_bindir}/ocamldep.opt
01afb1
%endif
6c6aa2
%{_bindir}/ocamllex
01afb1
%if %{native_compiler}
6c6aa2
%{_bindir}/ocamllex.opt
01afb1
%endif
6c6aa2
%{_bindir}/ocamlmklib
6c6aa2
%{_bindir}/ocamlmktop
6c6aa2
%{_bindir}/ocamlobjinfo
01afb1
%if %{native_compiler}
6c6aa2
%{_bindir}/ocamlopt
6c6aa2
%{_bindir}/ocamlopt.opt
01afb1
%endif
a80eea
%{_bindir}/ocamloptp
c6dd15
#%{_bindir}/ocamlplugininfo
6c6aa2
%{_bindir}/ocamlprof
6c6aa2
%{_bindir}/ocamlyacc
c6dd15
#%{_libdir}/ocaml/addlabels
c6dd15
#%{_libdir}/ocaml/scrapelabels
6c6aa2
%{_libdir}/ocaml/camlheader
6c6aa2
%{_libdir}/ocaml/camlheader_ur
6c6aa2
%{_libdir}/ocaml/expunge
6c6aa2
%{_libdir}/ocaml/extract_crc
6c6aa2
%{_libdir}/ocaml/ld.conf
6c6aa2
%{_libdir}/ocaml/Makefile.config
6c6aa2
%{_libdir}/ocaml/*.a
01afb1
%if %{natdynlink}
f7302e
%{_libdir}/ocaml/*.cmxs
d31f3e
%endif
01afb1
%if %{native_compiler}
6c6aa2
%{_libdir}/ocaml/*.cmxa
6c6aa2
%{_libdir}/ocaml/*.cmx
6c6aa2
%{_libdir}/ocaml/*.o
01afb1
%endif
01afb1
%{_libdir}/ocaml/*.mli
f7302e
%{_libdir}/ocaml/libcamlrun_shared.so
c6dd15
%{_libdir}/ocaml/objinfo_helper
6c6aa2
%{_libdir}/ocaml/vmthreads/*.mli
6c6aa2
%{_libdir}/ocaml/vmthreads/*.a
01afb1
%if %{native_compiler}
6c6aa2
%{_libdir}/ocaml/threads/*.a
6c6aa2
%{_libdir}/ocaml/threads/*.cmxa
6c6aa2
%{_libdir}/ocaml/threads/*.cmx
01afb1
%endif
6c6aa2
%{_libdir}/ocaml/caml
6c6aa2
%{_libdir}/ocaml/ocamlbuild
6c6aa2
%exclude %{_libdir}/ocaml/graphicsX11.mli
6c6aa2
6c6aa2
6c6aa2
%files runtime
2d6392
%doc README LICENSE Changes
6c6aa2
%{_bindir}/ocamlrun
6c6aa2
%dir %{_libdir}/ocaml
183751
%{_libdir}/ocaml/VERSION
6c6aa2
%{_libdir}/ocaml/*.cmo
6c6aa2
%{_libdir}/ocaml/*.cmi
6c6aa2
%{_libdir}/ocaml/*.cma
6c6aa2
%{_libdir}/ocaml/stublibs
6c6aa2
%dir %{_libdir}/ocaml/vmthreads
6c6aa2
%{_libdir}/ocaml/vmthreads/*.cmi
6c6aa2
%{_libdir}/ocaml/vmthreads/*.cma
6c6aa2
%dir %{_libdir}/ocaml/threads
6c6aa2
%{_libdir}/ocaml/threads/*.cmi
6c6aa2
%{_libdir}/ocaml/threads/*.cma
6c6aa2
%{_libdir}/ocaml/fedora-ocaml-release
6c6aa2
%exclude %{_libdir}/ocaml/graphicsX11.cmi
cvsextras be41c8
a5dcf3
6c6aa2
%files source
2d6392
%doc LICENSE
6c6aa2
%{_libdir}/ocaml/*.ml
6c6aa2
6c6aa2
6c6aa2
%files x11
2d6392
%doc LICENSE
6c6aa2
%{_libdir}/ocaml/graphicsX11.cmi
6c6aa2
%{_libdir}/ocaml/graphicsX11.mli
6c6aa2
6c6aa2
cvsextras be41c8
%files ocamldoc
2d6392
%doc LICENSE
2d6392
%doc ocamldoc/Changes.txt
cvsextras be41c8
%{_bindir}/ocamldoc*
cvsextras be41c8
%{_libdir}/ocaml/ocamldoc
cvsextras be41c8
a5dcf3
cvsextras be41c8
%files docs
266d4d
%doc refman.pdf htmlman
6c6aa2
%{_infodir}/*
7335bb
%{_mandir}/man1/*
6c6aa2
%{_mandir}/man3/*
cvsextras be41c8
a5dcf3
cvsextras be41c8
%files emacs
2d6392
%doc emacs/README
cvsextras be41c8
%{_datadir}/emacs/site-lisp/*
cvsextras be41c8
%{_bindir}/ocamltags
cvsextras be41c8
a5dcf3
183751
%files compiler-libs
2d6392
%doc LICENSE
183751
%dir %{_libdir}/ocaml/compiler-libs
183751
%{_libdir}/ocaml/compiler-libs/*.cmi
183751
%{_libdir}/ocaml/compiler-libs/*.cmo
183751
%{_libdir}/ocaml/compiler-libs/*.cma
183751
%if %{native_compiler}
183751
%{_libdir}/ocaml/compiler-libs/*.a
183751
%{_libdir}/ocaml/compiler-libs/*.cmxa
183751
%{_libdir}/ocaml/compiler-libs/*.cmx
183751
%{_libdir}/ocaml/compiler-libs/*.o
183751
%endif
183751
183751
cvsextras be41c8
%changelog
5815ad
* Sat Jul 19 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02.0-0.6
5815ad
- Rebase on top of 4.02.0 beta commit c4f3a6c7.
5815ad
- Remove the patch to disable CSE, since that problem is fixed upstream.
5815ad
- Remove the patch fixing caml_callback2 on aarch64 since that patch is
5815ad
  now upstream.
5815ad
fd2e30
* Tue Jul 15 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02.0-0.5
c852c2
- Disable CSE optimization which is broken on armv7hl and aarch64.
fd2e30
- Fix broken caml_callback2 on aarch64
fd2e30
  http://caml.inria.fr/mantis/view.php?id=6489
e575a8
7335bb
* Sat Jul 12 2014 Richard W.M. Jones <rjones@redhat.com> - 4.02.0-0.1
7335bb
- Update to 4.02.0-beta1 + patches from the upstream 4.02 branch.
7335bb
- REMOVED labltk and camlp4 packages, since these are now packaged
7335bb
  separately upstream.
7335bb
- Upstream includes fix for stack alignment issues on i686, so remove hack.
7335bb
- Upstream now uses mkstemp where available, so patch removed.
7335bb
- Upstream includes Aarch64 backend, so remove our own backport.
7335bb
- Drop BR on ocaml-srpm-macros, since it is now included in Fedora.
7335bb
98f566
* Thu Jun 26 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-20
98f566
- BR binutils-devel so ocamlobjinfo supports *.cmxs files (RHBZ#1113735).
98f566
c6f3ea
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.01.0-19
c6f3ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6f3ea
5e2539
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 4.01.0-18
5e2539
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
5e2539
95cf7b
* Sat May 10 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-17
95cf7b
- Mark stack as non-executable on ARM (32 bit) and Aarch64.
95cf7b
37ad9b
* Tue Apr 22 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-16
37ad9b
- Remove ocaml-srpm-macros subpackage.
37ad9b
  This is now a separate package, see RHBZ#1087893.
37ad9b
a80eea
* Tue Apr 15 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-15
a80eea
- Fix s390x builds (no native compiler).
a80eea
ead83e
* Tue Apr 15 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-14
ead83e
- Remove ExclusiveArch.
ead83e
- Add ocaml-srpm-macros subpackage containing arch macros.
ead83e
- See: RHBZ#1087794
ead83e
31bf86
* Mon Apr 14 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-13
31bf86
- Fix aarch64 relocation problems again.
31bf86
  Earlier patch was dropped accidentally.
31bf86
a0eedc
* Wed Apr  9 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-12
a0eedc
- Add ppc64le support (thanks: Michel Normand) (RHBZ#1077767).
a0eedc
0db310
* Tue Apr  1 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-11
0db310
- Fix --flag=arg patch (thanks: Anton Lavrik, Ignas Vyšniauskas).
0db310
073715
* Mon Mar 24 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-10
bf77c6
- Include a fix for aarch64 relocation problems
bf77c6
  http://caml.inria.fr/mantis/view.php?id=6283
bf77c6
0666b7
* Wed Jan  8 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-8
0666b7
- Don't use ifarch around Patch lines, as it means the patch files
0666b7
  don't get included in the spec file.
0666b7
179ac3
* Mon Jan  6 2014 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-7
179ac3
- Work around gcc stack alignment issues, see
179ac3
  http://caml.inria.fr/mantis/view.php?id=5700
179ac3
2b6c21
* Tue Dec 31 2013 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-6
efb2ca
- Add aarch64 (arm64) code generator.
efb2ca
0d053e
* Thu Nov 21 2013 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-4
0d053e
- Add bundled(md5-plumb) (thanks: Tomas Mraz).
f231f6
- Add NON-upstream (but being sent upstream) patch to allow --flag=arg
f231f6
  as an alternative to --flag arg (RHBZ#1028650).
f231f6
119698
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-3
119698
- Disable -lcurses.  This is not actually used, just linked with unnecessarily.
119698
71bcc7
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-2
71bcc7
- Fix the build on ppc64.
71bcc7
2d6392
* Fri Sep 13 2013 Richard W.M. Jones <rjones@redhat.com> - 4.01.0-1
f231f6
- Update to new major version OCaml 4.01.0.
2d6392
- Rebase patches.
2d6392
- Remove bogus Requires 'ncurses-devel'.  The base ocaml package already
2d6392
  pulls in the library implicitly.
2d6392
- Remove bogus Requires 'gdbm-devel'.  Nothing in the source mentions gdbm.
2d6392
- Use mkstemp instead of mktemp in ocamlyacc.
2d6392
- Add LICENSE as doc to some subpackages to keep rpmlint happy.
2d6392
- Remove .ignore file from some packages.
2d6392
- Remove period from end of Summary.
2d6392
0f377d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.00.1-3
0f377d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0f377d
6dab9e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.00.1-2
6dab9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6dab9e
ed0c3a
* Tue Oct 16 2012 Richard W.M. Jones <rjones@redhat.com> - 4.00.1-1
ed0c3a
- Update to upstream version 4.00.1.
ed0c3a
- Clean up the spec file further.
ed0c3a
0612b7
* Thu Aug 16 2012 Richard W.M. Jones <rjones@redhat.com> - 4.00.0-2
0612b7
- ppc supports natdynlink.
0612b7
24e662
* Sat Jul 28 2012 Richard W.M. Jones <rjones@redhat.com> - 4.00.0-1
24e662
- Upgrade to OCaml 4.00.0 official release.
24e662
- Remove one patch (add -lpthread) which went upstream.
24e662
e5596c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.00.0-0.6.beta2
e5596c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e5596c
55e460
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 4.00.0-0.5.beta2
55e460
- No change, just fix up changelog.
324bd0
dca492
* Thu Jun  7 2012 Richard W.M. Jones <rjones@redhat.com> 4.00.0-0.3.beta2
183751
- Upgrade to OCaml 4.00.0 beta 2.
183751
- The language is now officially called OCaml (not Objective Caml, O'Caml etc)
183751
- Rebase patches on top:
183751
  . New ARM backend patch no longer required, since upstream.
183751
  . Replacement config.guess, config.sub no longer required, since upstream
183751
    versions are newer.
518f1a
- PPC64 backend rebased and fixed.
518f1a
  . Increase the default size of the stack when compiling.
183751
- New tool: ocamloptp (ocamlopt profiler).
183751
- New VERSION file in ocaml-runtime package.
183751
- New ocaml-compiler-libs subpackage.
183751
- Rearrange ExclusiveArch alphanumerically.
183751
- alpha, ia64 native backends have been removed upstream, so they are
183751
  no longer supported as native compiler targets.
183751
- Remove defattr.
dca492
- Make OCaml dependency generator self-contained so it doesn't need
dca492
  previous version of OCaml around.
183751
f67fde
* Wed Jun  6 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-12
f67fde
- ppc64: Include fix for minor heap corruption because of unaligned
f67fde
  minor heap register (RHBZ#826649).
f67fde
- Unset MAKEFLAGS before running build.
f67fde
958f1c
* Wed Jun  6 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-11
958f1c
- ppc64: Fix position of stack arguments to external C functions
958f1c
  when there are more than 8 parameters.
958f1c
963a64
* Tue Jun  5 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-10
963a64
- Include patch to link dllthreads.so with -lpthread explicitly, to
963a64
  fix problem with 'pthread_atfork' symbol missing (statically linked)
963a64
  on ppc64.
963a64
1296d4
* Sun Jun  3 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-9
1296d4
- Include svn rev 12548 to fix invalid generation of Thumb-2 branch
1296d4
  instruction TBH (upstream PR#5623, RHBZ#821153).
1296d4
31ee47
* Wed May 30 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-8
f3cfae
- Modify the ppc64 patch to reduce the delta between power64 and
9cefc9
  upstream power backends.
9cefc9
- Clean up the spec file and bring it up to modern standards.
9cefc9
  * Remove patch fuzz directive.
9cefc9
  * Remove buildroot directive.
9cefc9
  * Rearrange source unpacking.
9cefc9
  * Remove chmod of GNU config.* files, since git does it.
9cefc9
  * Don't need to remove buildroot in install section.
9cefc9
  * Remove clean section.
64a0f5
  * git am 
9cefc9
- Note there is no functional change in the above.
f3cfae
66cff0
* Tue May 29 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-6
a07112
- Move patches to external git repo:
a07112
  http://git.fedorahosted.org/git/?p=fedora-ocaml.git
a07112
  There should be no change introduced here.
a07112
a07112
* Tue May 15 2012 Karsten Hopp <karsten@redhat.com> 3.12.1-4
4acc11
- ppc64 got broken by the new ARM backend, add a minor patch
4acc11
814f51
* Sat Apr 28 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-3
814f51
- New ARM backend by Benedikt Meurer, backported to OCaml 3.12.1.
814f51
  This has several advantages, including enabling natdynlink on ARM.
814f51
- Provide updated config.guess and config.sub (from OCaml upstream tree).
814f51
4863fb
* Thu Jan 12 2012 Richard W.M. Jones <rjones@redhat.com> 3.12.1-2
4863fb
- add back ocaml-ppc64.patch for ppc secondary arch, drop .cmxs files
4863fb
  from file list on ppc (cherry picked from F16 - this should have
4863fb
  gone into Rawhide originally then been cherry picked back to F16)
4863fb
a334c4
* Fri Jan  6 2012 Richard W.M. Jones <rjones@redhat.com> - 3.12.1-1
a334c4
- New upstream version 3.12.1.  This is a bugfix update.
a334c4
01afb1
* Thu Dec  8 2011 Richard W.M. Jones <rjones@redhat.com> - 3.12.0-7
01afb1
- Allow this package to be compiled on platforms without native
01afb1
  support and/or natdynlink, specifically ppc64.  This updates (and
01afb1
  hopefully does not break) DJ's previous *.cmxs change for arm.
01afb1
d31f3e
* Fri Sep 23 2011 DJ Delorie <dj@redhat.com> - 3.12.0-6
d31f3e
- Add arm type directive patch.
d31f3e
- Allow more arm arches.
d31f3e
- Don't package *.cmxs on arm.
d31f3e
170eee
* Wed Mar 30 2011 Richard W.M. Jones <rjones@redhat.com> - 3.12.0-5
170eee
- Fix for invalid assembler generation (RHBZ#691896).
170eee
f83ef8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.0-4
f83ef8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f83ef8
781dac
* Wed Jan  5 2011 Richard W.M. Jones <rjones@redhat.com> - 3.12.0-3
781dac
- Rebuild with self.
781dac
0c497e
* Tue Jan  4 2011 Richard W.M. Jones <rjones@redhat.com> - 3.12.0-2
0c497e
- Try depending on OCaml BR to fix:
0c497e
  /usr/lib/rpm/ocaml-find-provides.sh: /builddir/build/BUILDROOT/ocaml-3.12.0-1.fc15.i386/usr/bin/ocamlobjinfo: /usr/bin/ocamlrun: bad interpreter: No such file or directory
0c497e
c6dd15
* Tue Jan  4 2011 Richard W.M. Jones <rjones@redhat.com> - 3.12.0-1
c6dd15
- New upstream version 3.12.0.
c6dd15
  http://fedoraproject.org/wiki/Features/OCaml3.12
c6dd15
- Remove ppc64 support patch.
c6dd15
- Rebase rpath removal patch.
c6dd15
- ocamlobjinfo is now an official tool, so no need to compile it by hand.
c6dd15
  Add objinfo_helper.
c6dd15
- Disable ocamlplugininfo.
c6dd15
- Remove addlabels, scrapelabels.
c6dd15
- Remove ocaml/stublibs/dlltkanim.so.
c6dd15
982825
* Fri Jan 29 2010 Richard W.M. Jones <rjones@redhat.com> - 3.11.2-2
982825
- Update reference manual to latest version from website.
982825
62846e
* Wed Jan 20 2010 Richard W.M. Jones <rjones@redhat.com> - 3.11.2-1
62846e
- Update to 3.11.2 official release.
62846e
6409ab
* Tue Jan  5 2010 Richard W.M. Jones <rjones@redhat.com> - 3.11.2-0.rc1.2
6409ab
- ocaml-labltk-devel should require tcl-devel and tk-devel.
6409ab
7de6ce
* Tue Dec 29 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.2-0.rc1.1
7de6ce
- Update to (release candidate) 3.11.2+rc1.
7de6ce
7975f6
* Wed Dec 16 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-8
7975f6
- Use __ocaml_requires_opts / __ocaml_provides_opts.
7975f6
be42b9
* Wed Dec 16 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-7
be42b9
- Remove ocaml-find-{requires,provides}.sh from this package.  These are
be42b9
  now in upstream RPM 4.8 (RHBZ#545116).
be42b9
- define -> global in a few places.
be42b9
d59fc8
* Thu Nov 05 2009 Dennis Gilmore <dennis@ausil.us> - 3.11.1-6
d59fc8
- include sparcv9 in the arch list
d59fc8
84831b
* Tue Oct 27 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-5
84831b
- Install ocaml.info files correctly (RHBZ#531204).
84831b
84643c
* Fri Oct 16 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-4
84643c
- Set includes so building the *info programs works without
84643c
  having OCaml already installed.
84643c
a06adc
* Fri Oct 16 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-3
a06adc
- Add ocamlbyteinfo and ocamlplugininfo programs from Debian.
a06adc
7f6755
* Sun Oct  4 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-2
7f6755
- ocaml-find-requires.sh: Calculate runtime version using ocamlrun
7f6755
  -version instead of fedora-ocaml-release file.
7f6755
44da86
* Wed Sep 30 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-1
44da86
- OCaml 3.11.1 (this is virtually the same as the release candidate
44da86
  that we were using for Fedora 12).
44da86
97bb1e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.1-0.rc1.2.1
97bb1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
97bb1e
72e427
* Wed Jun  3 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-0.rc1.2
72e427
- Remember to upload the source this time.
72e427
adf136
* Wed Jun  3 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-0.rc1.1
adf136
- New upstream release candidate 3.11.1+rc1.
adf136
- Remove ocamlbuild -where patch (now upstream).
adf136
c7840b
* Tue Jun  2 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-0.rc0.3
c7840b
- Move dllgraphics.so into runtime package (RHBZ#468506).
c7840b
1f353c
* Tue May 26 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-0.rc0.2
1f353c
- Backport ocamlbuild -where fix.
1f353c
9f89b6
* Fri May 22 2009 Richard W.M. Jones <rjones@redhat.com> - 3.11.1-0.rc0.1
9f89b6
- 3.11.1 release candidate 0.
9f89b6
ee837a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.11.0-2
ee837a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ee837a
ab974e
* Thu Dec  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0-1
ab974e
- Official release of 3.11.0.
ab974e
bbb190
* Thu Dec  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0-0.6.rc1
bbb190
- Fixed sources file.
bbb190
ff3434
* Thu Dec  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0-0.5.rc1
ff3434
- New upstream version 3.11.0+rc1.
ff3434
ff3434
* Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0-0.4.beta1
949429
- Rebuild.
949429
670a23
* Thu Nov 20 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.11.0-0.3.beta1
670a23
- fix NVR to match packaging guidelines
670a23
08dd76
* Thu Nov 20 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0+beta1-2
08dd76
- Fix Invalid_argument("String.index_from") with patch from upstream.
08dd76
f7302e
* Tue Nov 18 2008 Richard W.M. Jones <rjones@redhat.com> - 3.11.0+beta1-1
f7302e
- Rebuild for major new upstream release of 3.11.0 for Fedora 11.
f7302e
31ee47
* Fri Aug 29 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.2-5
71268b
- Rebuild with patch fuzz.
71268b
123fda
* Mon Jun  9 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.2-4
123fda
- Add ocaml-3.11-dev12-no-executable-stack.patch (bz #450551).
123fda
fd5d93
* Wed Jun  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.2-3
fd5d93
- ocaml-ocamldoc provides ocamldoc (bz #449931).
fd5d93
- REMOVED provides of labltk, camlp4.  Those are libraries and all
fd5d93
  packages should now depend on ocaml-labltk / ocaml-camlp4 / -devel
fd5d93
  as appropriate.
fd5d93
1ae7a8
* Thu May  8 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.2-2
1ae7a8
- Pass MAP_32BIT to mmap (bz #445545).
1ae7a8
fdf6a5
* Mon Apr 21 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.2-1
fdf6a5
- New upstream version 3.10.2 for Fedora 10.
fdf6a5
- Cleaned up several rpmlint errors & warnings.
fdf6a5
7d100c
* Fri Feb 29 2008 David Woodhouse <dwmw2@infradead.org> - 3.10.1-2
7d100c
- ppc64 port
7d100c
a775fd
* Tue Feb 12 2008 Richard W.M. Jones <rjones@redhat.com> - 3.10.1-1
a775fd
- new upstream version 3.10.1
a775fd
a1071e
* Fri Jan  4 2008 Gerard Milmeister <gemi@bluewin.ch> - 3.10.0-8
a1071e
- patch for building with tcl/tk 8.5
a1071e
25069b
* Thu Sep  6 2007 Richard W.M. Jones <rjones@redhat.com> - 3.10.0-7
25069b
- Run chrpath to delete rpaths used on some of the stublibs.
25069b
- Ignore Parsetree module in dependency calculation.
25069b
- Fixed ocaml-find-{requires,provides}.sh regexp calculation so it doesn't
25069b
  over-match module names.
25069b
34cb4f
* Mon Sep  3 2007 Richard W.M. Jones <rjones@redhat.com> - 3.10.0-6
34cb4f
- ocaml-runtime provides ocaml(runtime) = 3.10.0, and
34cb4f
  ocaml-find-requires.sh modified so that it adds this requires
34cb4f
  to other packages.  Now can upgrade base ocaml packages without
34cb4f
  needing to rebuild everything else.
34cb4f
6a495c
* Mon Sep  3 2007 Richard W.M. Jones <rjones@redhat.com> - 3.10.0-5
6a495c
- Don't include the release number in fedora-ocaml-release file, so
6a495c
  that packages built against this won't depend on the Fedora release.
6a495c
7e41c4
* Wed Aug 29 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.10.0-4
7e41c4
- added BR util-linux-ng
7e41c4
8859c7
* Wed Aug 29 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.10.0-3
7e41c4
- added BR gawk
8859c7
10dd3e
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.10.0-2
10dd3e
- Rebuild for selinux ppc32 issue.
10dd3e
6c6aa2
* Sat Jun  2 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.10.0-1
6c6aa2
- new version 3.10.0
6c6aa2
- split off devel packages
6c6aa2
- rename subpackages to use ocaml- prefix
6c6aa2
fa207e
* Thu May 24 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.09.3-2
fa207e
- added ocamlobjinfo
fa207e
3b2827
* Sat Dec  2 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.3-1
3b2827
- new version 3.09.3
3b2827
bf7009
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.2-2
bf7009
- Rebuild for FE6
bf7009
266d4d
* Sun Apr 30 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.2-1
266d4d
- new version 3.09.2
266d4d
a6e4b1
* Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.1-2
a6e4b1
- Rebuild for Fedora Extras 5
a6e4b1
5e1a82
* Thu Jan  5 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.1-1
5e1a82
- new version 3.09.1
5e1a82
03108e
* Sun Jan  1 2006 Gerard Milmeister <gemi@bluewin.ch> - 3.09.0-1
03108e
- new version 3.09.0
03108e
0d2d47
* Sun Sep 11 2005 Gerard Milmeister <gemi@bluewin.ch> - 3.08.4-1
0d2d47
- New Version 3.08.4
0d2d47
332bd5
* Wed May 25 2005 Toshio Kuratomi <toshio-tiki-lounge.com> - 3.08.3-5
332bd5
- Bump and re-release as last build failed due to rawhide syncing.
332bd5
326271
* Sun May 22 2005 Toshio Kuratomi <toshio-tiki-lounge.com> - 3.08.3-4
817b03
- Fix for gcc4 and the 32 bit assembly in otherlibs/num.
817b03
- Fix to allow compilation with RPM_OPT_FLAG defined -O level.
817b03
d95206
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 3.08.3-3
d95206
- rebuild on all arches
d95206
31ee47
* Fri Apr  8 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
c39241
- rebuilt
c39241
aa4861
* Sat Mar 26 2005 Gerard Milmeister <gemi@bluewin.ch> - 3.08.3-1
aa4861
- New Version 3.08.3
aa4861
c5c9c1
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:3.08.2-2
c5c9c1
- Added patch for removing rpath from shared libs
c5c9c1
186fbe
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:3.08.2-1
186fbe
- New Version 3.08.2
186fbe
0b1d48
* Thu Dec 30 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:3.07-6
fdf6a5
- add -x11lib _prefix/X11R6/_lib to configure; fixes labltk build
0b1d48
  on x86_64
0b1d48
cvsextras be41c8
* Tue Dec  2 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:3.07-0.fdr.5
cvsextras be41c8
- ocamldoc -> ocaml-ocamldoc
cvsextras be41c8
- ocaml-doc -> ocaml-docs
cvsextras be41c8
cvsextras be41c8
* Fri Nov 28 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:3.07-0.fdr.4
cvsextras be41c8
- Make separate packages for labltk, camlp4, ocamldoc, emacs and documentation
cvsextras be41c8
cvsextras be41c8
* Thu Nov 27 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:3.07-0.fdr.2
cvsextras be41c8
- Changed license tag
cvsextras be41c8
- Register info files
cvsextras be41c8
- Honor RPM_OPT_FLAGS
cvsextras be41c8
- New Patch
cvsextras be41c8
cvsextras be41c8
* Fri Oct 31 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:3.07-0.fdr.1
cvsextras be41c8
- First Fedora release
cvsextras be41c8
cvsextras be41c8
* Mon Oct 13 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
cvsextras be41c8
- Updated to 3.07.
cvsextras be41c8
cvsextras be41c8
* Wed Apr  9 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
cvsextras be41c8
- Rebuilt for Red Hat 9.
cvsextras be41c8
cvsextras be41c8
* Tue Nov 26 2002 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
fdf6a5
- Added _mandir/mano/* entry