Search
SailfishOS Open Build Service
>
Projects
>
home:temev
:
unison
>
ocaml
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
ocaml.spec
@@ -0,0 +1,956 @@ +# OCaml has a bytecode backend that works on anything with a C +# compiler, and a native code backend available on a subset of +# architectures. A further subset of architectures support native +# dynamic linking. + +#%ifarch %{ocaml_native_compiler} +#%global native_compiler 1 +#%else +#%global native_compiler 0 +#%endif + +#%ifarch %{ocaml_natdynlink} +#%global natdynlink 1 +#%else +#%global natdynlink 0 +#%endif + +Name: ocaml +Version: 4.02.3 +Release: 1 + +Summary: OCaml compiler and programming environment +License: QPL and (LGPLv2+ with exceptions) +URL: http://www.ocaml.org + +Source0: http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-%{version}.tar.gz +#Source1: http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02-refman-html.tar.gz +#Source2: http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02-refman.pdf +#Source3: http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02-refman.info.tar.gz + +# IMPORTANT NOTE: +# +# These patches are generated from unpacked sources stored in a +# fedorahosted git repository. If you change the patches here, they +# will be OVERWRITTEN by the next update. Instead, request commit +# access to the fedorahosted project: +# +# https://git.fedorahosted.org/cgit/fedora-ocaml.git/ +# +# Current branch: fedora-23-4.02 +# +# ALTERNATIVELY add a patch to the end of the list (leaving the +# existing patches unchanged) adding a comment to note that it should +# be incorporated into the git repo at a later time. +# +#Patch0001: 0001-Don-t-ignore-.-configure-it-s-a-real-git-file.patch +#Patch0002: 0002-Ensure-empty-compilerlibs-directory-is-created-by-gi.patch +#Patch0003: 0003-Don-t-add-rpaths-to-libraries.patch +#Patch0004: 0004-ocamlbyteinfo-ocamlplugininfo-Useful-utilities-from-.patch +#Patch0005: 0005-configure-Allow-user-defined-C-compiler-flags.patch +#Patch0006: 0006-Add-support-for-ppc64.patch +#Patch0007: 0007-ppc64-Update-for-OCaml-4.02.0.patch +#Patch0008: 0008-Add-support-for-ppc64le.patch +#Patch0009: 0009-ppc64le-Update-for-OCaml-4.02.0.patch +#Patch0010: 0010-arm-arm64-Mark-stack-as-non-executable.patch +#Patch0011: 0011-arg-Add-no_arg-and-get_arg-helper-functions.patch +#Patch0012: 0012-arg-Allow-flags-such-as-flag-arg-as-well-as-flag-arg.patch +#Patch0013: 0013-PR-6517-use-ISO-C99-types-u-int-32-64-_t-in-preferen.patch +#Patch0014: 0014-ppc-ppc64-ppc64le-Mark-stack-as-non-executable.patch +#Patch0015: 0015-ppc64-ppc64le-proc-Interim-definitions-for-op_is_pur.patch +#Patch0016: 0016-ppc64le-Fix-calling-convention-of-external-functions.patch +#Patch0017: 0017-ppc64-Fix-PIC-variant-of-asmrun.patch +#Patch0018: 0018-ppc64le-Fix-PIC-variant-of-asmrun.patch +#Patch0019: 0019-ppc64-ppc64le-Fix-behaviour-of-Int64.max_int-1-RHBZ-.patch + +# Add BFD support so that ocamlobjinfo supports *.cmxs format (RHBZ#1113735). +#BuildRequires: binutils-devel + +BuildRequires: ncurses-devel +BuildRequires: gdbm-devel +BuildRequires: emacs +BuildRequires: gawk +BuildRequires: perl +BuildRequires: util-linux +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXaw-devel +BuildRequires: libXext-devel +BuildRequires: libXft-devel +BuildRequires: libXmu-devel +BuildRequires: libXrender-devel +BuildRequires: libXt-devel +BuildRequires: mesa-libGL-devel +BuildRequires: mesa-libGLU-devel +BuildRequires: chrpath + +# git is required for patch management. +#BuildRequires: git + +Requires: gcc + +# Because we pass -c flag to ocaml-find-requires (to avoid circular +# dependencies) we also have to explicitly depend on the right version +# of ocaml-runtime. +#Requires: ocaml-runtime = %{version}-%{release} + +# Bundles an MD5 implementation in byterun/md5.{c,h} +#Provides: bundled(md5-plumb) + +#Provides: ocaml(compiler) = %{version} + +%global __ocaml_requires_opts -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo' +#%global __ocaml_requires_opts -c -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo' +%global __ocaml_provides_opts -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo' + + +%description +OCaml is a high-level, strongly-typed, functional and object-oriented +programming language from the ML family of languages. + +This package comprises two batch compilers (a fast bytecode compiler +and an optimizing native-code compiler), an interactive toplevel system, +parsing tools (Lex,Yacc), a replay debugger, a documentation generator, +and a comprehensive library. + + +#%package runtime +#Summary: OCaml runtime environment +#Requires: util-linux +#Provides: ocaml(runtime) = %{version} + +#%description runtime +#OCaml 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 OCaml +#bytecode. + + +#%package source +#Summary: Source code for OCaml libraries +#Requires: ocaml = %{version}-%{release} + +#%description source +#Source code for OCaml libraries. + + +#%package x11 +#Summary: X11 support for OCaml +#Requires: ocaml-runtime = %{version}-%{release} +#Requires: libX11-devel + +#%description x11 +#X11 support for OCaml. + + +#%package ocamldoc +#Summary: Documentation generator for OCaml +#Requires: ocaml = %{version}-%{release} +#Provides: ocamldoc + +#%description ocamldoc +#Documentation generator for OCaml. + + +#%package emacs +#Summary: Emacs mode for OCaml +#Requires: ocaml = %{version}-%{release} +#Requires: emacs(bin) + +#%description emacs +#Emacs mode for OCaml. + + +#%package docs +#Summary: Documentation for OCaml +#Requires: ocaml = %{version}-%{release} +#Requires(post): /sbin/install-info +#Requires(preun): /sbin/install-info + + +#%description docs +#OCaml 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. + + +#%package compiler-libs +#Summary: Compiler libraries for OCaml +#Requires: ocaml = %{version}-%{release} + + +#%description compiler-libs +#OCaml is a high-level, strongly-typed, functional and object-oriented +#programming language from the ML family of languages. + +#This package contains some modules used internally by the OCaml +#compilers, useful for the development of some OCaml applications. +#Note that this exposes internal details of the OCaml compiler which +#may not be portable between versions. + + +%prep +%setup -q -n %{name}-%{version} +#%setup -q -T -b 0 -n %{name}-%{version} +#%setup -q -T -D -a 1 -n %{name}-%{version}