new version 3.10.0
This commit is contained in:
parent
fa207ebfbd
commit
6c6aa246e1
@ -1,4 +1,4 @@
|
|||||||
ocaml-3.09.3.tar.bz2
|
ocaml-3.10.0.tar.bz2
|
||||||
ocaml-3.09-refman.html.tar.gz
|
ocaml-3.10-refman.html.tar.gz
|
||||||
ocaml-3.09-refman.info.tar.gz
|
ocaml-3.10-refman.info.tar.gz
|
||||||
ocaml-3.09-refman.pdf
|
ocaml-3.10-refman.pdf
|
||||||
|
64
ocaml-find-provides.sh
Executable file
64
ocaml-find-provides.sh
Executable file
@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/sh -
|
||||||
|
# OCaml-specific "find-provides" for RPM.
|
||||||
|
# By Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
# $Id: ocaml-find-provides.sh,v 1.7 2007/06/11 15:03:17 rjones Exp $
|
||||||
|
|
||||||
|
#set -x
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# (1) Add the following to the spec file:
|
||||||
|
# %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
|
||||||
|
#
|
||||||
|
# (2) If you don't want the module to depend on the exact compiler
|
||||||
|
# version then use ocaml-find-requires.sh -c, but this is not something
|
||||||
|
# you should do normally.
|
||||||
|
#
|
||||||
|
# (3) For any modules which you want to ignore, use '-i Modulename'.
|
||||||
|
|
||||||
|
OCAMLOBJINFO=ocamlobjinfo
|
||||||
|
TEMP=`getopt -o i:f: -n ocaml-find-provides.sh -- "$@"`
|
||||||
|
if [ $? != 0 ]; then echo "ocaml-find-provides.sh: failed" >&2; exit 1; fi
|
||||||
|
eval set -- "$TEMP"
|
||||||
|
|
||||||
|
ignore_modules=nOTREAL
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-i) ignore_modules="$2 $ignore_modules"; shift 2;;
|
||||||
|
-f) OCAMLOBJINFO="$2"; shift 2;;
|
||||||
|
--) shift; break;;
|
||||||
|
*) echo "ocaml-find-provides.sh: option error at $1"; exit 1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Get the list of files.
|
||||||
|
files=`sed "s/['\"]/\\\&/g"`
|
||||||
|
|
||||||
|
# Use ordinary find-provides first.
|
||||||
|
echo $files | tr [:blank:] '\n' | /usr/lib/rpm/find-provides
|
||||||
|
|
||||||
|
# Get list of .cmi, .cmo and .cma files.
|
||||||
|
files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'`
|
||||||
|
|
||||||
|
if [ -z "$files" ]; then exit 0; fi
|
||||||
|
|
||||||
|
# Get the list of modules exported by the files.
|
||||||
|
modules=`$OCAMLOBJINFO $files |
|
||||||
|
grep -E '(Unit|Module) name: ' |
|
||||||
|
awk '{print $3}'`
|
||||||
|
|
||||||
|
# Turn list of modules into a regexp that matches the module names.
|
||||||
|
modules_re=`echo $modules | sed 's/ /|/g'`
|
||||||
|
ignore_modules_re=`echo $ignore_modules | sed 's/ /|/g'`
|
||||||
|
|
||||||
|
# Get a list of the modules these file(s) provide.
|
||||||
|
$OCAMLOBJINFO $files |
|
||||||
|
grep -Eo '[0-9a-f]{32}[[:space:]]+[A-Za-z0-9_]+' |
|
||||||
|
grep -E "$modules_re" |
|
||||||
|
while read md5sum module; do
|
||||||
|
echo "ocaml($module) = $md5sum"
|
||||||
|
done |
|
||||||
|
grep -Ev "$ignore_modules_re" |
|
||||||
|
sort -u
|
73
ocaml-find-requires.sh
Executable file
73
ocaml-find-requires.sh
Executable file
@ -0,0 +1,73 @@
|
|||||||
|
#!/bin/sh -
|
||||||
|
# OCaml-specific "find-requires" for RPM.
|
||||||
|
# By Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
# $Id: ocaml-find-requires.sh,v 1.7 2007/06/11 15:03:17 rjones Exp $
|
||||||
|
|
||||||
|
#set -x
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# (1) Add the following to the spec file:
|
||||||
|
# %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
|
||||||
|
#
|
||||||
|
# (2) If you don't want the module to depend on the exact compiler
|
||||||
|
# version then use ocaml-find-requires.sh -c, but this is not something
|
||||||
|
# you should do normally.
|
||||||
|
#
|
||||||
|
# (3) For any modules which you want to ignore, use '-i Modulename'.
|
||||||
|
|
||||||
|
OCAMLOBJINFO=ocamlobjinfo
|
||||||
|
TEMP=`getopt -o ci:f: -n ocaml-find-requires.sh -- "$@"`
|
||||||
|
if [ $? != 0 ]; then echo "ocaml-find-requires.sh: failed" >&2; exit 1; fi
|
||||||
|
eval set -- "$TEMP"
|
||||||
|
|
||||||
|
emit_compiler_version=yes
|
||||||
|
ignore_modules=nOTREAL
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-c) emit_compiler_version=; shift;;
|
||||||
|
-i) ignore_modules="$2 $ignore_modules"; shift 2;;
|
||||||
|
-f) OCAMLOBJINFO="$2"; shift 2;;
|
||||||
|
--) shift; break;;
|
||||||
|
*) echo "ocaml-find-requires.sh: option error at $1"; exit 1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Get the list of files.
|
||||||
|
files=`sed "s/['\"]/\\\&/g"`
|
||||||
|
|
||||||
|
# Use ordinary find-requires first.
|
||||||
|
echo $files | tr [:blank:] '\n' | /usr/lib/rpm/find-requires
|
||||||
|
|
||||||
|
# Get list of .cmi, .cmo and .cma files.
|
||||||
|
files=`echo $files | tr [:blank:] '\n' | grep '\.cm[ioa]$'`
|
||||||
|
|
||||||
|
if [ -z "$files" ]; then exit 0; fi
|
||||||
|
|
||||||
|
# Get the list of modules exported by the file(s).
|
||||||
|
modules=`$OCAMLOBJINFO $files |
|
||||||
|
grep -E '(Unit|Module) name: ' |
|
||||||
|
awk '{print $3}'`
|
||||||
|
|
||||||
|
# Turn list of modules into a regexp that matches the module names.
|
||||||
|
modules_re=`echo $modules | sed 's/ /|/g'`
|
||||||
|
ignore_modules_re=`echo $ignore_modules | sed 's/ /|/g'`
|
||||||
|
|
||||||
|
# Get a list of the modules these file(s) depend on.
|
||||||
|
$OCAMLOBJINFO $files |
|
||||||
|
grep -Eo '[0-9a-f]{32}[[:space:]]+[A-Za-z0-9_]+' |
|
||||||
|
grep -Ev "$modules_re" |
|
||||||
|
while read md5sum module; do
|
||||||
|
echo "ocaml($module) = $md5sum"
|
||||||
|
done |
|
||||||
|
grep -Ev "$ignore_modules_re" |
|
||||||
|
sort -u
|
||||||
|
|
||||||
|
if [ -n "$emit_compiler_version" ]; then
|
||||||
|
# Every OCaml program depends on the precise version of the
|
||||||
|
# compiler which was used to compile it.
|
||||||
|
# rpm -q --qf '%{NAME} = %{VERSION}-%{RELEASE}\n' ocaml
|
||||||
|
echo "ocaml = `cat /usr/lib*/ocaml/fedora-ocaml-release`"
|
||||||
|
fi
|
@ -1,6 +1,6 @@
|
|||||||
--- ocaml-3.08.2/tools/Makefile.rpath 2005-02-12 11:38:17.000000000 +0100
|
--- ocaml-3.10.0/tools/Makefile.rpath 2007-06-02 16:53:10.000000000 +0200
|
||||||
+++ ocaml-3.08.2/tools/Makefile 2005-02-12 11:38:41.000000000 +0100
|
+++ ocaml-3.10.0/tools/Makefile 2007-06-02 16:53:28.000000000 +0200
|
||||||
@@ -101,9 +101,6 @@
|
@@ -107,9 +107,6 @@
|
||||||
sed -e "s|%%BINDIR%%|$(BINDIR)|" \
|
sed -e "s|%%BINDIR%%|$(BINDIR)|" \
|
||||||
-e "s|%%SUPPORTS_SHARED_LIBRARIES%%|$(SUPPORTS_SHARED_LIBRARIES)|" \
|
-e "s|%%SUPPORTS_SHARED_LIBRARIES%%|$(SUPPORTS_SHARED_LIBRARIES)|" \
|
||||||
-e "s|%%MKSHAREDLIB%%|$(MKSHAREDLIB)|" \
|
-e "s|%%MKSHAREDLIB%%|$(MKSHAREDLIB)|" \
|
||||||
@ -10,18 +10,3 @@
|
|||||||
-e "s|%%RANLIB%%|$(RANLIB)|" \
|
-e "s|%%RANLIB%%|$(RANLIB)|" \
|
||||||
ocamlmklib.mlp >> ocamlmklib.ml
|
ocamlmklib.mlp >> ocamlmklib.ml
|
||||||
|
|
||||||
--- ocaml-3.08.2/tools/ocamlmklib.mlp.rpath 2005-02-12 11:46:55.646162346 +0100
|
|
||||||
+++ ocaml-3.08.2/tools/ocamlmklib.mlp 2005-02-12 11:49:11.411467461 +0100
|
|
||||||
@@ -17,9 +17,9 @@
|
|
||||||
let bindir = "%%BINDIR%%"
|
|
||||||
and supports_shared_libraries = %%SUPPORTS_SHARED_LIBRARIES%%
|
|
||||||
and mksharedlib = "%%MKSHAREDLIB%%"
|
|
||||||
-and bytecc_rpath = "%%BYTECCRPATH%%"
|
|
||||||
-and nativecc_rpath = "%%NATIVECCRPATH%%"
|
|
||||||
-and mksharedlib_rpath = "%%MKSHAREDLIBRPATH%%"
|
|
||||||
+and bytecc_rpath = ""
|
|
||||||
+and nativecc_rpath = ""
|
|
||||||
+and mksharedlib_rpath = ""
|
|
||||||
and ranlib = "%%RANLIB%%"
|
|
||||||
|
|
||||||
let bytecode_objs = ref [] (* .cmo,.cma,.ml,.mli files to pass to ocamlc *)
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- ocaml-3.08.3/configure.opt 2005-05-08 19:00:34.000000000 -0400
|
--- ocaml-3.10.0/configure.opt 2007-06-02 16:50:12.000000000 +0200
|
||||||
+++ ocaml-3.08.3/configure 2005-05-08 19:54:50.000000000 -0400
|
+++ ocaml-3.10.0/configure 2007-06-02 16:50:34.000000000 +0200
|
||||||
@@ -1455,6 +1455,10 @@
|
@@ -1425,6 +1425,10 @@
|
||||||
nativecccompopts="$nativecccompopts -fomit-frame-pointer";;
|
nativecccompopts="$nativecccompopts -fomit-frame-pointer";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
319
ocaml.spec
319
ocaml.spec
@ -1,23 +1,27 @@
|
|||||||
Name: ocaml
|
Name: ocaml
|
||||||
Version: 3.09.3
|
Version: 3.10.0
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
Summary: Objective Caml compiler and programming environment
|
Summary: Objective Caml compiler and programming environment
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: QPL/LGPL
|
License: QPL/LGPL
|
||||||
URL: http://www.ocaml.org
|
URL: http://www.ocaml.org
|
||||||
Source0: http://caml.inria.fr/distrib/ocaml-3.09/ocaml-3.09.3.tar.bz2
|
Source0: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10.0.tar.bz2
|
||||||
Source1: http://caml.inria.fr/distrib/ocaml-3.09/ocaml-3.09-refman.html.tar.gz
|
Source1: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.html.tar.gz
|
||||||
Source2: http://caml.inria.fr/distrib/ocaml-3.09/ocaml-3.09-refman.pdf
|
Source2: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.pdf
|
||||||
Source3: http://caml.inria.fr/distrib/ocaml-3.09/ocaml-3.09-refman.info.tar.gz
|
Source3: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.info.tar.gz
|
||||||
|
Source4: ocaml-find-requires.sh
|
||||||
|
Source5: ocaml-find-provides.sh
|
||||||
Patch0: ocaml-rpath.patch
|
Patch0: ocaml-rpath.patch
|
||||||
Patch1: ocaml-user-cflags.patch
|
Patch1: ocaml-user-cflags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
BuildRequires: tcl-devel, tk-devel
|
BuildRequires: tcl-devel
|
||||||
BuildRequires: emacs, perl
|
BuildRequires: tk-devel
|
||||||
|
BuildRequires: emacs
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: libICE-devel
|
BuildRequires: libICE-devel
|
||||||
BuildRequires: libSM-devel
|
BuildRequires: libSM-devel
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
@ -29,11 +33,11 @@ BuildRequires: libXrender-devel
|
|||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
BuildRequires: mesa-libGL-devel
|
BuildRequires: mesa-libGL-devel
|
||||||
BuildRequires: mesa-libGLU-devel
|
BuildRequires: mesa-libGLU-devel
|
||||||
Requires(post): /sbin/install-info
|
Requires: gcc
|
||||||
Requires(preun): /sbin/install-info
|
Requires: ncurses-devel
|
||||||
|
Requires: gdbm-devel
|
||||||
ExcludeArch: ppc64
|
ExcludeArch: ppc64
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Objective Caml is a high-level, strongly-typed, functional and
|
Objective Caml is a high-level, strongly-typed, functional and
|
||||||
object-oriented programming language from the ML family of languages.
|
object-oriented programming language from the ML family of languages.
|
||||||
@ -44,29 +48,100 @@ parsing tools (Lex,Yacc,Camlp4), a replay debugger, a documentation generator,
|
|||||||
and a comprehensive library.
|
and a comprehensive library.
|
||||||
|
|
||||||
|
|
||||||
%package -n labltk
|
%package runtime
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Summary: Objective Caml runtime environment
|
||||||
|
|
||||||
|
%description runtime
|
||||||
|
Objective Caml is a high-level, strongly-typed, functional and
|
||||||
|
object-oriented programming language from the ML family of languages.
|
||||||
|
|
||||||
|
This package contains the runtime environment needed to run Objective
|
||||||
|
Caml bytecode.
|
||||||
|
|
||||||
|
|
||||||
|
%package source
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
Summary: Source code for Objective Caml libraries
|
||||||
|
Requires: ocaml = %{version}-%{release}
|
||||||
|
|
||||||
|
%description source
|
||||||
|
Source code for Objective Caml libraries.
|
||||||
|
|
||||||
|
|
||||||
|
%package x11
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Summary: X11 support for Objective Caml
|
||||||
|
Requires: ocaml-runtime = %{version}-%{release}
|
||||||
|
Requires: libX11-devel
|
||||||
|
|
||||||
|
%description x11
|
||||||
|
X11 support for Objective Caml.
|
||||||
|
|
||||||
|
|
||||||
|
%package labltk
|
||||||
|
Group: System Environment/Libraries
|
||||||
Summary: Tk bindings for Objective Caml
|
Summary: Tk bindings for Objective Caml
|
||||||
|
Requires: ocaml-runtime = %{version}-%{release}
|
||||||
|
Provides: labltk = %{version}-%{release}
|
||||||
|
Obsoletes: labltk < %{version}-%{release}
|
||||||
|
|
||||||
|
%description labltk
|
||||||
|
Labltk is a library for interfacing Objective Caml with the scripting
|
||||||
|
language Tcl/Tk.
|
||||||
|
|
||||||
|
This package contains the runtime files.
|
||||||
|
|
||||||
|
|
||||||
|
%package labltk-devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for labltk
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml = %{version}-%{release}
|
||||||
|
Requires: %{name}-labltk = %{version}-%{release}
|
||||||
|
Requires: libX11-devel
|
||||||
|
Provides: labltk = %{version}-%{release}
|
||||||
|
Obsoletes: labltk < %{version}-%{release}
|
||||||
|
|
||||||
%description -n labltk
|
%description labltk-devel
|
||||||
A library for interfacing Objective Caml with the scripting language
|
Labltk is a library for interfacing Objective Caml with the scripting
|
||||||
Tcl/Tk. It include the OCamlBrowser code editor / library browser.
|
language Tcl/Tk.
|
||||||
|
|
||||||
|
This package contains the development files. It includes the ocaml
|
||||||
|
browser for code editing and library browsing.
|
||||||
|
|
||||||
|
|
||||||
%package -n camlp4
|
%package camlp4
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Summary: Pre-Processor-Pretty-Printer for OCaml
|
Summary: Pre-Processor-Pretty-Printer for Objective Caml
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml-runtime = %{version}-%{release}
|
||||||
|
Provides: camlp4 = %{version}-%{release}
|
||||||
|
Obsoletes: camlp4 < %{version}-%{release}
|
||||||
|
|
||||||
%description -n camlp4
|
%description camlp4
|
||||||
Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
|
Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml, parsing a
|
||||||
file and printing some result on standard output.
|
source file and printing some result on standard output.
|
||||||
|
|
||||||
|
This package contains the runtime files.
|
||||||
|
|
||||||
|
|
||||||
|
%package camlp4-devel
|
||||||
|
Group: Development/Languages
|
||||||
|
Summary: Pre-Processor-Pretty-Printer for Objective Caml
|
||||||
|
Requires: ocaml = %{version}-%{release}
|
||||||
|
Requires: %{name}-camlp4 = %{version}-%{release}
|
||||||
|
Provides: camlp4 = %{version}-%{release}
|
||||||
|
Obsoletes: camlp4 < %{version}-%{release}
|
||||||
|
|
||||||
|
%description camlp4-devel
|
||||||
|
Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml, parsing a
|
||||||
|
source file and printing some result on standard output.
|
||||||
|
|
||||||
|
This package contains the development files.
|
||||||
|
|
||||||
|
|
||||||
%package ocamldoc
|
%package ocamldoc
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Summary: Documentation generator for OCaml
|
Summary: Documentation generator for Objective Caml.
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml = %{version}-%{release}
|
||||||
|
|
||||||
%description ocamldoc
|
%description ocamldoc
|
||||||
@ -85,11 +160,18 @@ Emacs mode for Objective Caml.
|
|||||||
|
|
||||||
%package docs
|
%package docs
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Summary: Documentation for OCaml
|
Summary: Documentation for Objective Caml
|
||||||
Requires: ocaml = %{version}-%{release}
|
Requires: ocaml = %{version}-%{release}
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
|
|
||||||
%description docs
|
%description docs
|
||||||
Documentation for Objective Caml.
|
Objective Caml is a high-level, strongly-typed, functional and
|
||||||
|
object-oriented programming language from the ML family of languages.
|
||||||
|
|
||||||
|
This package contains documentation in PDF and HTML format as well as
|
||||||
|
man pages and info files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -101,6 +183,9 @@ Documentation for Objective Caml.
|
|||||||
|
|
||||||
cp %{SOURCE2} refman.pdf
|
cp %{SOURCE2} refman.pdf
|
||||||
|
|
||||||
|
%define _use_internal_dependency_generator 0
|
||||||
|
%define __find_requires %{SOURCE4} -i Asttypes -i Outcometree -i Cmo_format -c -f %{buildroot}%{_bindir}/ocamlobjinfo
|
||||||
|
%define __find_provides %{SOURCE5} -f %{buildroot}%{_bindir}/ocamlobjinfo
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
||||||
@ -112,28 +197,48 @@ CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
|||||||
make world opt opt.opt
|
make world opt opt.opt
|
||||||
# %{?_smp_mflags} breaks the build
|
# %{?_smp_mflags} breaks the build
|
||||||
make -C emacs ocamltags
|
make -C emacs ocamltags
|
||||||
make -C tools objinfo
|
# make -C tools objinfo
|
||||||
|
(cd tools; ../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib -I ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver -o objinfo config.cmx objinfo.ml)
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall BINDIR=$RPM_BUILD_ROOT%{_bindir} LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
make install \
|
||||||
|
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
|
||||||
|
LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
|
||||||
|
MANDIR=$RPM_BUILD_ROOT%{_mandir}
|
||||||
perl -pi -e "s|^$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{_libdir}/ocaml/ld.conf
|
perl -pi -e "s|^$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{_libdir}/ocaml/ld.conf
|
||||||
|
|
||||||
(
|
(
|
||||||
|
# install emacs files
|
||||||
cd emacs;
|
cd emacs;
|
||||||
make install BINDIR=$RPM_BUILD_ROOT%{_bindir} EMACSDIR=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
|
make install \
|
||||||
|
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
|
||||||
|
EMACSDIR=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
|
||||||
make install-ocamltags BINDIR=$RPM_BUILD_ROOT%{_bindir}
|
make install-ocamltags BINDIR=$RPM_BUILD_ROOT%{_bindir}
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
|
# install info files
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_infodir};
|
mkdir -p $RPM_BUILD_ROOT%{_infodir};
|
||||||
cd infoman; cp ocaml*.gz $RPM_BUILD_ROOT%{_infodir}
|
cd infoman; cp ocaml*.gz $RPM_BUILD_ROOT%{_infodir}
|
||||||
)
|
)
|
||||||
|
|
||||||
cp tools/objinfo $RPM_BUILD_ROOT%{_bindir}/ocamlobjinfo
|
cp tools/objinfo $RPM_BUILD_ROOT%{_bindir}/ocamlobjinfo
|
||||||
|
|
||||||
|
# install rpmbuild helper files
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/rpm/
|
||||||
|
cp %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/rpm/
|
||||||
|
cp %{SOURCE5} $RPM_BUILD_ROOT/usr/lib/rpm/
|
||||||
|
|
||||||
|
echo %{version}-%{release} > $RPM_BUILD_ROOT%{_libdir}/ocaml/fedora-ocaml-release
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post docs
|
||||||
/sbin/install-info \
|
/sbin/install-info \
|
||||||
--entry "* ocaml: (ocaml). The Objective Caml compiler and programming environment" \
|
--entry "* ocaml: (ocaml). The Objective Caml compiler and programming environment" \
|
||||||
--section "Programming Languages" \
|
--section "Programming Languages" \
|
||||||
@ -141,7 +246,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_infodir}/dir 2>/dev/null || :
|
%{_infodir}/dir 2>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun docs
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
@ -149,47 +254,146 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/*
|
%{_bindir}/ocaml
|
||||||
%{_mandir}/man1/*
|
%{_bindir}/ocamlbuild
|
||||||
%{_mandir}/man3/*
|
%{_bindir}/ocamlbuild.byte
|
||||||
%{_libdir}/ocaml
|
%{_bindir}/ocamlbuild.native
|
||||||
%{_infodir}/*
|
%{_bindir}/ocamlc
|
||||||
%exclude %{_bindir}/camlp4*
|
%{_bindir}/ocamlc.opt
|
||||||
%exclude %{_bindir}/mkcamlp4
|
%{_bindir}/ocamlcp
|
||||||
%exclude %{_bindir}/ocpp
|
%{_bindir}/ocamldebug
|
||||||
%exclude %{_bindir}/labltk
|
%{_bindir}/ocamldep
|
||||||
%exclude %{_bindir}/ocamltags
|
%{_bindir}/ocamldep.opt
|
||||||
%exclude %{_bindir}/ocamlbrowser
|
%{_bindir}/ocamllex
|
||||||
%exclude %{_bindir}/ocamldoc*
|
%{_bindir}/ocamllex.opt
|
||||||
%exclude %{_libdir}/ocaml/camlp4
|
%{_bindir}/ocamlmklib
|
||||||
%exclude %{_libdir}/ocaml/labltk
|
%{_bindir}/ocamlmktop
|
||||||
%exclude %{_libdir}/ocaml/ocamldoc
|
%{_bindir}/ocamlobjinfo
|
||||||
%exclude %{_mandir}/man1/camlp4*
|
%{_bindir}/ocamlopt
|
||||||
%exclude %{_mandir}/man1/mkcamlp4*
|
%{_bindir}/ocamlopt.opt
|
||||||
|
%{_bindir}/ocamlprof
|
||||||
|
%{_bindir}/ocamlyacc
|
||||||
|
%{_libdir}/ocaml/addlabels
|
||||||
|
%{_libdir}/ocaml/scrapelabels
|
||||||
|
%{_libdir}/ocaml/camlheader
|
||||||
|
%{_libdir}/ocaml/camlheader_ur
|
||||||
|
%{_libdir}/ocaml/expunge
|
||||||
|
%{_libdir}/ocaml/extract_crc
|
||||||
|
%{_libdir}/ocaml/ld.conf
|
||||||
|
%{_libdir}/ocaml/Makefile.config
|
||||||
|
%{_libdir}/ocaml/*.a
|
||||||
|
%{_libdir}/ocaml/*.cmxa
|
||||||
|
%{_libdir}/ocaml/*.cmx
|
||||||
|
%{_libdir}/ocaml/*.mli
|
||||||
|
%{_libdir}/ocaml/*.o
|
||||||
|
%{_libdir}/ocaml/vmthreads/*.mli
|
||||||
|
%{_libdir}/ocaml/vmthreads/*.a
|
||||||
|
%{_libdir}/ocaml/threads/*.a
|
||||||
|
%{_libdir}/ocaml/threads/*.cmxa
|
||||||
|
%{_libdir}/ocaml/threads/*.cmx
|
||||||
|
%{_libdir}/ocaml/caml
|
||||||
|
%{_libdir}/ocaml/ocamlbuild
|
||||||
|
%exclude %{_libdir}/ocaml/graphicsX11.mli
|
||||||
|
|
||||||
|
|
||||||
|
%files runtime
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/ocamlrun
|
||||||
|
%dir %{_libdir}/ocaml
|
||||||
|
%{_libdir}/ocaml/*.cmo
|
||||||
|
%{_libdir}/ocaml/*.cmi
|
||||||
|
%{_libdir}/ocaml/*.cma
|
||||||
|
%{_libdir}/ocaml/stublibs
|
||||||
|
%dir %{_libdir}/ocaml/vmthreads
|
||||||
|
%{_libdir}/ocaml/vmthreads/*.cmi
|
||||||
|
%{_libdir}/ocaml/vmthreads/*.cma
|
||||||
|
%dir %{_libdir}/ocaml/threads
|
||||||
|
%{_libdir}/ocaml/threads/*.cmi
|
||||||
|
%{_libdir}/ocaml/threads/*.cma
|
||||||
|
%{_libdir}/ocaml/fedora-ocaml-release
|
||||||
|
%{_prefix}/lib/rpm/*
|
||||||
|
%exclude %{_libdir}/ocaml/graphicsX11.cmi
|
||||||
|
%exclude %{_libdir}/ocaml/stublibs/dllgraphics.so
|
||||||
%exclude %{_libdir}/ocaml/stublibs/dlllabltk.so
|
%exclude %{_libdir}/ocaml/stublibs/dlllabltk.so
|
||||||
%exclude %{_libdir}/ocaml/stublibs/dlltkanim.so
|
%exclude %{_libdir}/ocaml/stublibs/dlltkanim.so
|
||||||
%doc README LICENSE Changes
|
%doc README LICENSE Changes
|
||||||
|
|
||||||
|
|
||||||
%files -n labltk
|
%files source
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/ocaml/*.ml
|
||||||
|
|
||||||
|
|
||||||
|
%files x11
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/ocaml/graphicsX11.cmi
|
||||||
|
%{_libdir}/ocaml/graphicsX11.mli
|
||||||
|
%{_libdir}/ocaml/stublibs/dllgraphics.so
|
||||||
|
|
||||||
|
|
||||||
|
%files labltk
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/labltk
|
%{_bindir}/labltk
|
||||||
%{_bindir}/ocamlbrowser
|
%dir %{_libdir}/ocaml/labltk
|
||||||
%{_libdir}/ocaml/labltk
|
%{_libdir}/ocaml/labltk/*.cmi
|
||||||
|
%{_libdir}/ocaml/labltk/*.cma
|
||||||
|
%{_libdir}/ocaml/labltk/*.cmo
|
||||||
%{_libdir}/ocaml/stublibs/dlllabltk.so
|
%{_libdir}/ocaml/stublibs/dlllabltk.so
|
||||||
%{_libdir}/ocaml/stublibs/dlltkanim.so
|
%{_libdir}/ocaml/stublibs/dlltkanim.so
|
||||||
|
|
||||||
|
|
||||||
|
%files labltk-devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/ocamlbrowser
|
||||||
|
%{_libdir}/ocaml/labltk/labltktop
|
||||||
|
%{_libdir}/ocaml/labltk/pp
|
||||||
|
%{_libdir}/ocaml/labltk/tkcompiler
|
||||||
|
%{_libdir}/ocaml/labltk/*.a
|
||||||
|
%{_libdir}/ocaml/labltk/*.cmxa
|
||||||
|
%{_libdir}/ocaml/labltk/*.cmx
|
||||||
|
%{_libdir}/ocaml/labltk/*.mli
|
||||||
|
%{_libdir}/ocaml/labltk/*.o
|
||||||
%doc otherlibs/labltk/examples_labltk
|
%doc otherlibs/labltk/examples_labltk
|
||||||
%doc otherlibs/labltk/examples_camltk
|
%doc otherlibs/labltk/examples_camltk
|
||||||
|
|
||||||
|
|
||||||
%files -n camlp4
|
%files camlp4
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_libdir}/ocaml/camlp4
|
||||||
|
%{_libdir}/ocaml/camlp4/*.cmi
|
||||||
|
%{_libdir}/ocaml/camlp4/*.cma
|
||||||
|
%{_libdir}/ocaml/camlp4/*.cmo
|
||||||
|
%dir %{_libdir}/ocaml/camlp4/Camlp4Filters
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmi
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmo
|
||||||
|
%dir %{_libdir}/ocaml/camlp4/Camlp4Parsers
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmo
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmi
|
||||||
|
%dir %{_libdir}/ocaml/camlp4/Camlp4Printers
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmi
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmo
|
||||||
|
%dir %{_libdir}/ocaml/camlp4/Camlp4Top
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmi
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmo
|
||||||
|
|
||||||
|
|
||||||
|
%files camlp4-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/camlp4*
|
%{_bindir}/camlp4*
|
||||||
%{_bindir}/mkcamlp4
|
%{_bindir}/mkcamlp4
|
||||||
%{_bindir}/ocpp
|
%{_libdir}/ocaml/camlp4/*.a
|
||||||
%{_libdir}/ocaml/camlp4
|
%{_libdir}/ocaml/camlp4/*.cmxa
|
||||||
%{_mandir}/man1/camlp4*
|
%{_libdir}/ocaml/camlp4/*.cmx
|
||||||
%{_mandir}/man1/mkcamlp4*
|
%{_libdir}/ocaml/camlp4/*.o
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmx
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.o
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmx
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.o
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmx
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.o
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmx
|
||||||
|
%{_libdir}/ocaml/camlp4/Camlp4Top/*.o
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
|
||||||
%files ocamldoc
|
%files ocamldoc
|
||||||
@ -202,6 +406,8 @@ fi
|
|||||||
%files docs
|
%files docs
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc refman.pdf htmlman
|
%doc refman.pdf htmlman
|
||||||
|
%{_infodir}/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
|
||||||
%files emacs
|
%files emacs
|
||||||
@ -212,6 +418,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 2 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.10.0-1
|
||||||
|
- new version 3.10.0
|
||||||
|
- split off devel packages
|
||||||
|
- rename subpackages to use ocaml- prefix
|
||||||
|
|
||||||
* Thu May 24 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.09.3-2
|
* Thu May 24 2007 Gerard Milmeister <gemi@bluewin.ch> - 3.09.3-2
|
||||||
- added ocamlobjinfo
|
- added ocamlobjinfo
|
||||||
|
|
||||||
|
8
sources
8
sources
@ -1,4 +1,4 @@
|
|||||||
8b3744efd0d51b82d55b61d0e2bf0e2b ocaml-3.09.3.tar.bz2
|
5b14fe7ef863ab8295c9b7d428d5e93c ocaml-3.10.0.tar.bz2
|
||||||
b25eb211bf91bcaa536b12d12731ceec ocaml-3.09-refman.html.tar.gz
|
663b31c8ea364a531aa325a5b06a2763 ocaml-3.10-refman.html.tar.gz
|
||||||
280160b1fc7c8513074c3fda0446de29 ocaml-3.09-refman.info.tar.gz
|
f80b52b8bc4b10ed557808fc899acf3a ocaml-3.10-refman.info.tar.gz
|
||||||
6ed0c6b1167dbf6c1cb10a78d302bc00 ocaml-3.09-refman.pdf
|
c3e00bc2c4aad3f538b4bcefade98908 ocaml-3.10-refman.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user