[ocaml-deriving] - Rebuild for OCaml 3.12.0. - Include separate fixes for 3.12 by Jake Donham.
by Richard W.M. Jones
commit fd4efb9c74d587e880fdb44a3d14e3b392418df5
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 17:42:09 2011 +0000
- Rebuild for OCaml 3.12.0.
- Include separate fixes for 3.12 by Jake Donham.
0001-fixes-for-3.12.0.patch | 313 ++++++++++++++++++++++++++++++
ocaml-deriving-0.1.1a-no-bimap-mli.patch | 11 +
ocaml-deriving.spec | 15 ++-
3 files changed, 336 insertions(+), 3 deletions(-)
---
diff --git a/0001-fixes-for-3.12.0.patch b/0001-fixes-for-3.12.0.patch
new file mode 100644
index 0000000..e160ea2
--- /dev/null
+++ b/0001-fixes-for-3.12.0.patch
@@ -0,0 +1,313 @@
+From c7b9cea3eb4bbfb9e09673faf725f70247c9df78 Mon Sep 17 00:00:00 2001
+From: Jake Donham <jake(a)donham.org>
+Date: Fri, 3 Sep 2010 19:33:49 -0400
+Subject: [PATCH] fixes for 3.12.0
+
+---
+ syntax/Makefile | 2 +-
+ syntax/base.ml | 4 ++--
+ syntax/bounded_class.ml | 6 +++---
+ syntax/dump_class.ml | 2 +-
+ syntax/enum_class.ml | 5 +++--
+ syntax/eq_class.ml | 12 ++++++------
+ syntax/extend.ml | 2 +-
+ syntax/pickle_class.ml | 6 +++---
+ syntax/show_class.ml | 4 ++--
+ syntax/type.ml | 10 +++++-----
+ syntax/typeable_class.ml | 6 +++---
+ syntax/utils.ml | 1 +
+ 12 files changed, 31 insertions(+), 29 deletions(-)
+
+diff --git a/syntax/Makefile b/syntax/Makefile
+index 2542efa..3884644 100644
+--- a/syntax/Makefile
++++ b/syntax/Makefile
+@@ -6,7 +6,7 @@ OCAMLDEP = ocamldep.opt
+ ANNOTATE = yes
+ PPFLAGS = -loc loc
+ USE_CAMLP4 = yes
+-LIBS = camlp4lib unix
++LIBS = dynlink camlp4lib unix
+
+ CAMLP4_PRE_NOPRINTER =
+
+diff --git a/syntax/base.ml b/syntax/base.ml
+index 16e50de..6848eaf 100644
+--- a/syntax/base.ml
++++ b/syntax/base.ml
+@@ -77,13 +77,13 @@ struct
+ <:expr<
+ let module M =
+ struct
+- type t = $t$
++ type $Ast.TyDcl (loc, "t", [], t, [])$
+ let test = function #t -> true | _ -> false
+ end in M.test $lid:param$ >>,
+ <:expr<
+ (let module M =
+ struct
+- type t = $t$
++ type $Ast.TyDcl (loc, "t", [], t, [])$
+ let cast = function #t as t -> t | _ -> assert false
+ end in M.cast $lid:param$ )>>)
+
+diff --git a/syntax/bounded_class.ml b/syntax/bounded_class.ml
+index dbccfb0..7a523ed 100644
+--- a/syntax/bounded_class.ml
++++ b/syntax/bounded_class.ml
+@@ -24,7 +24,7 @@ struct
+ (fun t -> let e = self#expr ctxt t in
+ <:expr< let module M = $e$ in M.min_bound >>,
+ <:expr< let module M = $e$ in M.max_bound >>) ts) in
+- <:module_expr< struct type a = $atype_expr ctxt (`Tuple ts)$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype_expr ctxt (`Tuple ts), [])$
+ let min_bound = $tuple_expr minBounds$
+ let max_bound = $tuple_expr maxBounds$ end >>
+
+@@ -35,7 +35,7 @@ struct
+ | (name,_) -> raise (Underivable ("Bounded cannot be derived for the type "^
+ tname ^" because the constructor "^
+ name^" is not nullary"))) in
+- <:module_expr< struct type a = $atype ctxt decl$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let min_bound = $uid:List.hd names$
+ and max_bound = $uid:List.last names$ end >>
+
+@@ -47,7 +47,7 @@ struct
+ name^" is not nullary"))
+ | _ -> raise (Underivable ("Bounded cannot be derived for this "
+ ^"polymorphic variant type"))) in
+- <:module_expr< struct type a = $atype ctxt decl$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let min_bound = `$List.hd names$
+ and max_bound = `$List.last names$ end >>
+
+diff --git a/syntax/dump_class.ml b/syntax/dump_class.ml
+index 798875a..1eab673 100644
+--- a/syntax/dump_class.ml
++++ b/syntax/dump_class.ml
+@@ -16,7 +16,7 @@ struct
+ let classname = "Dump"
+
+ let wrap ~atype ~dumpers ~undump =
+- <:module_expr< struct type a = $atype$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype, [])$
+ let to_buffer buffer = function $list:dumpers$
+ let from_stream stream = $undump$ end >>
+
+diff --git a/syntax/enum_class.ml b/syntax/enum_class.ml
+index ac92833..feef7d0 100644
+--- a/syntax/enum_class.ml
++++ b/syntax/enum_class.ml
+@@ -30,7 +30,8 @@ struct
+ (List.range 0 (List.length summands))
+ summands
+ <:expr< [] >> in
+- <:module_expr< Enum.Defaults(struct type a = $atype ctxt decl$ let numbering = $numbering$ end) >>
++ <:module_expr< Enum.Defaults(struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
++ let numbering = $numbering$ end) >>
+
+ method variant ctxt decl (_, tags) =
+ let numbering =
+@@ -45,7 +46,7 @@ struct
+ (List.range 0 (List.length tags))
+ tags
+ <:expr< [] >> in
+- <:module_expr< Enum.Defaults(struct type a = $atype ctxt decl$ let numbering = $numbering$ end) >>
++ <:module_expr< Enum.Defaults(struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$ let numbering = $numbering$ end) >>
+
+ method tuple context _ = raise (Underivable "Enum cannot be derived for tuple types")
+ method record ?eq _ (tname,_,_,_,_) = raise (Underivable
+diff --git a/syntax/eq_class.ml b/syntax/eq_class.ml
+index 1d8de1b..a008785 100644
+--- a/syntax/eq_class.ml
++++ b/syntax/eq_class.ml
+@@ -22,7 +22,7 @@ struct
+ let tup ctxt ts mexpr exp =
+ match ts with
+ | [t] ->
+- <:module_expr< struct type a = $atype_expr ctxt (`Tuple ts)$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype_expr ctxt (`Tuple ts), [])$
+ let eq l r = let module M = $exp ctxt t$
+ in $mexpr$ l r end >>
+ | ts ->
+@@ -38,7 +38,7 @@ struct
+ ts
+ (0, (<:patt< >>, <:patt< >>), <:expr< true >>)
+ in
+- <:module_expr< struct type a = $atype_expr ctxt (`Tuple ts)$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype_expr ctxt (`Tuple ts), [])$
+ let eq $Ast.PaTup (loc, lpatt)$ $Ast.PaTup (loc, rpatt)$ = $expr$ end >>
+
+
+@@ -80,14 +80,14 @@ struct
+ method sum ?eq ctxt decl summands =
+ let wildcard = match summands with [_] -> [] | _ -> [ <:match_case< _ -> false >>] in
+ <:module_expr<
+- struct type a = $atype ctxt decl$
++ struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let eq l r = match l, r with
+ $list:List.map (self#case ctxt) summands @ wildcard$
+ end >>
+
+ method record ?eq ctxt decl fields =
+ if List.exists (function (_,_,`Mutable) -> true | _ -> false) fields then
+- <:module_expr< struct type a = $atype ctxt decl$ let eq = (==) end >>
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$ let eq = (==) end >>
+ else
+ let lpatt = record_pattern ~prefix:"l" fields
+ and rpatt = record_pattern ~prefix:"r" fields
+@@ -96,11 +96,11 @@ struct
+ (fun f e -> <:expr< $self#field ctxt f$ && $e$ >>)
+ fields
+ <:expr< true >>
+- in <:module_expr< struct type a = $atype ctxt decl$
++ in <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let eq $lpatt$ $rpatt$ = $expr$ end >>
+
+ method variant ctxt decl (spec, tags) =
+- <:module_expr< struct type a = $atype ctxt decl$
++ <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let eq l r = match l, r with
+ $list:List.map (self#polycase ctxt) tags$
+ | _ -> false end >>
+diff --git a/syntax/extend.ml b/syntax/extend.ml
+index 059c6e9..934e880 100644
+--- a/syntax/extend.ml
++++ b/syntax/extend.ml
+@@ -68,7 +68,7 @@ struct
+ EXTEND Gram
+ expr: LEVEL "simple"
+ [
+- [e1 = val_longident ; "<" ; t = ctyp; ">" ->
++ [e1 = TRY val_longident ; "<" ; t = ctyp; ">" ->
+ match e1 with
+ | <:ident< $uid:classname$ . $lid:methodname$ >> ->
+ if not (Base.is_registered classname) then
+diff --git a/syntax/pickle_class.ml b/syntax/pickle_class.ml
+index ca62c70..aab92d8 100644
+--- a/syntax/pickle_class.ml
++++ b/syntax/pickle_class.ml
+@@ -26,9 +26,9 @@ struct
+
+ let unpickle_record_bindings ctxt (tname,params,rhs,cs,_) (fields : field list) e = <:expr<
+ let module Mutable = struct
+- type t = $UT.repr
++ type $Ast.TyDcl (loc, "t", [], UT.repr
+ (instantiate_modargs_repr ctxt
+- (Record (List.map (fun (n,p,_) -> (n,p,`Mutable)) fields)))$
++ (Record (List.map (fun (n,p,_) -> (n,p,`Mutable)) fields))), [])$
+ end in $e$ >>
+
+ let unpickle_record ctxt (tname,_,_,_,_ as decl) fields expr =
+@@ -89,7 +89,7 @@ struct
+ <:module_expr< struct open Eq open Typeable
+ module T = $tymod$
+ module E = $eqmod$
+- type a = $atype$
++ type $Ast.TyDcl (loc, "a", [], atype, [])$
+ open Write
+ let pickle = let module W = Utils(T)(E) in function $list:picklers$
+ open Read
+diff --git a/syntax/show_class.ml b/syntax/show_class.ml
+index 6217690..ec78a61 100644
+--- a/syntax/show_class.ml
++++ b/syntax/show_class.ml
+@@ -15,7 +15,7 @@ struct
+ let classname = "Show"
+
+ let wrap (ctxt:Base.context) (decl : Type.decl) matches = <:module_expr<
+- struct type a = $atype ctxt decl$
++ struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let format formatter = function $list:matches$ end >>
+
+ let in_a_box box e =
+@@ -61,7 +61,7 @@ struct
+ method tuple ctxt args =
+ let n = List.length args in
+ let tpatt, _ = tuple n in
+- <:module_expr< Defaults (struct type a = $atype_expr ctxt (`Tuple args)$
++ <:module_expr< Defaults (struct type $Ast.TyDcl (loc, "a", [], atype_expr ctxt (`Tuple args), [])$
+ let format formatter $tpatt$ =
+ $self#nargs ctxt
+ (List.mapn (fun t n -> Printf.sprintf "v%d" n, t) args)$ end) >>
+diff --git a/syntax/type.ml b/syntax/type.ml
+index 736ca9a..e42cf78 100644
+--- a/syntax/type.ml
++++ b/syntax/type.ml
+@@ -1,4 +1,4 @@
+-(*pp camlp4of *)
++(*pp camlp4orf *)
+
+ (* Copyright Jeremy Yallop 2007.
+ This file is free software, distributed under the MIT license.
+@@ -422,8 +422,8 @@ struct
+ | _ -> assert false
+ and app f = function
+ | [] -> f
+- | [x] -> <:ctyp< $expr x$ $f$ >>
+- | x::xs -> app (<:ctyp< $expr x$ $f$ >>) xs
++ | [x] -> <:ctyp< $f$ $expr x$ >>
++ | x::xs -> app (<:ctyp< $f$ $expr x$ >>) xs
+ in expr
+
+ let poly (params, t) =
+@@ -436,10 +436,10 @@ struct
+ let rec rhs : rhs -> Ast.ctyp = function
+ | `Fresh (None, t, `Private) -> <:ctyp< private $repr t$ >>
+ | `Fresh (None, t, `Public) -> repr t
+- | `Fresh (Some e, t, `Private) -> <:ctyp< $expr e$ = private $repr t$ >>
++ | `Fresh (Some e, t, `Private) -> <:ctyp< $expr e$ == private $repr t$ >>
+ | `Fresh (Some e, t, `Public) -> Ast.TyMan (loc, expr e, repr t)
+ | `Expr t -> expr t
+- | `Variant (`Eq, tags) -> <:ctyp< [ $unlist bar tags tagspec$ ] >>
++ | `Variant (`Eq, tags) -> <:ctyp< [= $unlist bar tags tagspec$ ] >>
+ | `Variant (`Gt, tags) -> <:ctyp< [> $unlist bar tags tagspec$ ] >>
+ | `Variant (`Lt, tags) -> <:ctyp< [< $unlist bar tags tagspec$ ] >>
+ | `Nothing -> <:ctyp< >>
+diff --git a/syntax/typeable_class.ml b/syntax/typeable_class.ml
+index 21c069f..64039fc 100644
+--- a/syntax/typeable_class.ml
++++ b/syntax/typeable_class.ml
+@@ -26,7 +26,7 @@ struct
+ <:expr< $uid:NameMap.find p ctxt.argmap$.type_rep::$cdr$ >>)
+ ctxt.params
+ <:expr< [] >>
+- in <:module_expr< struct type a = $atype ctxt decl$
++ in <:module_expr< struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let type_rep = TypeRep.mkFresh $str:mkName tname$ $paramList$ end >>
+
+ let tup ctxt ts mexpr expr =
+@@ -34,7 +34,7 @@ struct
+ expr_list
+ (List.map (fun t -> <:expr< let module M = $expr ctxt t$
+ in $mexpr$ >>) ts) in
+- <:module_expr< Defaults(struct type a = $atype_expr ctxt (`Tuple ts)$
++ <:module_expr< Defaults(struct type $Ast.TyDcl (loc, "a", [], atype_expr ctxt (`Tuple ts), [])$
+ let type_rep = Typeable.TypeRep.mkTuple $params$ end) >>
+
+ let instance = object(self)
+@@ -56,7 +56,7 @@ struct
+ <:expr< $mproject (self#expr ctxt t) "type_rep"$::$extends$ >>)
+ (<:expr< [] >>, <:expr< [] >>) tags in
+ <:module_expr< Defaults(
+- struct type a = $atype ctxt decl$
++ struct type $Ast.TyDcl (loc, "a", [], atype ctxt decl, [])$
+ let type_rep = Typeable.TypeRep.mkPolyv $tags$ $extends$
+ end) >>
+ end
+diff --git a/syntax/utils.ml b/syntax/utils.ml
+index 6c963bb..3b4b653 100644
+--- a/syntax/utils.ml
++++ b/syntax/utils.ml
+@@ -126,6 +126,7 @@ struct
+ | TyVrnInfSup (_, c1, c2) -> "TyVrnInfSup ("^ ctyp c1 ^ ", " ^ ctyp c2 ^")"
+ | TyAmp (_, c1, c2) -> "TyAmp ("^ ctyp c1 ^ ", " ^ ctyp c2 ^")"
+ | TyOfAmp (_, c1, c2) -> "TyOfAmp ("^ ctyp c1 ^ ", " ^ ctyp c2 ^")"
++ | TyPkg (_, mt) -> failwith "first-class modules not supported"
+ | TyAnt (_, s) -> "TyAnt("^s^")"
+ end
+
+--
+1.7.3.4
+
diff --git a/ocaml-deriving-0.1.1a-no-bimap-mli.patch b/ocaml-deriving-0.1.1a-no-bimap-mli.patch
new file mode 100644
index 0000000..740da65
--- /dev/null
+++ b/ocaml-deriving-0.1.1a-no-bimap-mli.patch
@@ -0,0 +1,11 @@
+--- deriving-0.1.1/tests/Makefile.old 2011-01-06 17:44:05.056078740 +0000
++++ deriving-0.1.1/tests/Makefile 2011-01-06 17:44:27.745779764 +0000
+@@ -8,7 +8,7 @@
+ OCAMLFLAGS = -w Aef
+
+ SOURCES = defs.ml \
+- bimap.ml bimap.mli \
++ bimap.ml \
+ sigs.ml \
+ pickle_tests.ml \
+ typeable_tests.ml \
diff --git a/ocaml-deriving.spec b/ocaml-deriving.spec
index 9b9f376..2f016e2 100644
--- a/ocaml-deriving.spec
+++ b/ocaml-deriving.spec
@@ -3,7 +3,7 @@
Name: ocaml-deriving
Version: 0.1.1a
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Extension to OCaml for deriving functions from types
Group: Development/Libraries
@@ -14,7 +14,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
Patch0: ocaml-deriving-no-link-libs.patch
-Patch1: ocaml-deriving-0.1.1a-dynlink.patch
+# This is included as part of the general fixes in patch 2.
+#Patch1: ocaml-deriving-0.1.1a-dynlink.patch
+Patch2: 0001-fixes-for-3.12.0.patch
+Patch3: ocaml-deriving-0.1.1a-no-bimap-mli.patch
BuildRequires: ocaml >= 3.11.0-1
BuildRequires: ocaml-findlib-devel
@@ -46,7 +49,9 @@ developing applications that use %{name}.
%prep
%setup -q -n deriving-0.1.1
%patch0
-%patch1 -p1
+#%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
@@ -108,6 +113,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jan 6 2011 Richard W.M. Jones <rjones(a)redhat.com> - 0.1.1a-11
+- Rebuild for OCaml 3.12.0.
+- Include separate fixes for 3.12 by Jake Donham.
+
* Wed Dec 30 2009 Richard W.M. Jones <rjones(a)redhat.com> - 0.1.1a-10
- Rebuild for OCaml 3.11.2.
13 years, 5 months
[ocaml-camlp5] New upstream version 6.02.1.
by Richard W.M. Jones
commit 40a889c7fd564c572a33a484bc683ee55153a451
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 17:37:04 2011 +0000
New upstream version 6.02.1.
.gitignore | 1 +
0001-Add-partial-OCaml-3.11.2-support.patch | 46 ---------------------------
0002-Fix-typos-in-manpage.patch | 31 ------------------
ocaml-camlp5.spec | 26 +++++----------
sources | 2 +-
5 files changed, 10 insertions(+), 96 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b0322eb..386d663 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
camlp5-5.12.tgz
+/camlp5-6.02.1.tgz
diff --git a/ocaml-camlp5.spec b/ocaml-camlp5.spec
index 5766b12..eab385d 100644
--- a/ocaml-camlp5.spec
+++ b/ocaml-camlp5.spec
@@ -2,8 +2,8 @@
%global debug_package %{nil}
Name: ocaml-camlp5
-Version: 5.12
-Release: 6%{?dist}
+Version: 6.02.1
+Release: 1%{?dist}
Summary: Classical version of camlp4 OCaml preprocessor
Group: Development/Libraries
@@ -15,12 +15,7 @@ ExcludeArch: sparc64 s390 s390x
Source0: http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-%{version}.tgz
Source1: camlp5-META
-# Support for OCaml 3.11.2 from Debian, not upstream yet.
-Patch0: 0001-Add-partial-OCaml-3.11.2-support.patch
-# Various fixes to the man page (from Debian, not upstream yet).
-Patch1: 0002-Fix-typos-in-manpage.patch
-
-BuildRequires: ocaml >= 3.11.2
+BuildRequires: ocaml >= 3.12.0
BuildRequires: ocaml-ocamldoc
%global __ocaml_requires_opts -i Asttypes -i Parsetree -i Pa_extend
@@ -50,16 +45,6 @@ developing applications that use %{name}.
%prep
%setup -q -n camlp5-%{version}
-%patch0 -p1
-%patch1 -p1
-
-# See top of Patch0 for details:
-cp -a ocaml_stuff/3.11.1 ocaml_stuff/3.11.2
-sed -i \
- -e 's/let ocaml_version = "3.11.1"/let ocaml_version = "3.11.2"/' \
- ocaml_stuff/3.11.2/utils/pconfig.ml
-cp -a ocaml_src/main/ast2pt.ml_3.11.1 ocaml_src/main/ast2pt.ml_3.11.2
-
%build
./configure
@@ -115,6 +100,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jan 6 2011 Richard W.M. Jones <rjones(a)redhat.com> - 6.02.1-1
+- New upstream version 6.02.1.
+- Remove upstream patches (both upstream).
+- Rebuild for OCaml 3.12.0.
+
* Wed Jan 13 2010 Richard W.M. Jones <rjones(a)redhat.com> - 5.12-6
- Ignore bogus provides Dynlink and Dynlinkaux.
diff --git a/sources b/sources
index ed8ca49..589ea8b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-28a86d4f1da8983b7fc773262fa52f1f camlp5-5.12.tgz
+58913a5a581a3ce9cdad7d6bae5b6709 camlp5-6.02.1.tgz
13 years, 5 months
[ocaml-lacaml] - New upstream version 5.4.8. - Rebuild for OCaml 3.12.0.
by Richard W.M. Jones
commit a6d2d316fa923df53c96923acd9fd933a24863bb
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 17:30:27 2011 +0000
- New upstream version 5.4.8.
- Rebuild for OCaml 3.12.0.
.gitignore | 1 +
ocaml-lacaml.spec | 8 ++++++--
sources | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8fd981e..bb2f51d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
release-5.4.7.tar.bz2
+/release-5.4.8.tar.bz2
diff --git a/ocaml-lacaml.spec b/ocaml-lacaml.spec
index 731db98..823de27 100644
--- a/ocaml-lacaml.spec
+++ b/ocaml-lacaml.spec
@@ -2,8 +2,8 @@
%define debug_package %{nil}
Name: ocaml-lacaml
-Version: 5.4.7
-Release: 2%{?dist}
+Version: 5.4.8
+Release: 1%{?dist}
Summary: BLAS/LAPACK-interface for OCaml
Group: Development/Libraries
@@ -98,6 +98,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jan 6 2011 Richard W.M. Jones <rjones(a)redhat.com> - 5.4.8-1
+- New upstream version 5.4.8.
+- Rebuild for OCaml 3.12.0.
+
* Wed Dec 30 2009 Richard W.M. Jones <rjones(a)redhat.com> - 5.4.7-2
- Rebuild for OCaml 3.11.2.
diff --git a/sources b/sources
index ff33b3f..02cad6a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-435b43102a7ff4bdbafc1b3a014fdf71 release-5.4.7.tar.bz2
+d65cd3fed14d9e24d79bfa0250258858 release-5.4.8.tar.bz2
13 years, 5 months
[ocaml-json-static] Bump and rebuild.
by Richard W.M. Jones
commit 565b750908eb3f4d50f361b365d0108e23594a03
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 17:26:25 2011 +0000
Bump and rebuild.
ocaml-json-static.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ocaml-json-static.spec b/ocaml-json-static.spec
index 8d8dd6a..f19826d 100644
--- a/ocaml-json-static.spec
+++ b/ocaml-json-static.spec
@@ -3,7 +3,7 @@
Name: ocaml-json-static
Version: 0.9.8
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: OCaml JSON validator and converter (syntax extension)
Group: Development/Libraries
@@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jan 06 2011 Richard W.M. Jones <rjones(a)redhat.com> - 0.9.8-3
+- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
+
* Wed Dec 30 2009 Richard W.M. Jones <rjones(a)redhat.com> - 0.9.8-2
- Rebuild for OCaml 3.11.2.
13 years, 5 months
[ocaml-lwt] New upstream version 2.2.0.
by Richard W.M. Jones
commit f9ddd569487a8a66515da54a00fbf108c3d4d95b
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 17:13:20 2011 +0000
New upstream version 2.2.0.
.gitignore | 1 +
lwt-2.2.0-libev.patch | 22 ++++++++++++++++++++++
ocaml-lwt.spec | 29 ++++++++++++++++++++++-------
sources | 2 +-
4 files changed, 46 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9eb40b5..c9980a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
lwt-2.0.0+rc1.tar.gz
+/lwt-2.2.0.tar.gz
diff --git a/lwt-2.2.0-libev.patch b/lwt-2.2.0-libev.patch
new file mode 100644
index 0000000..6d579f3
--- /dev/null
+++ b/lwt-2.2.0-libev.patch
@@ -0,0 +1,22 @@
+--- lwt-2.2.0/src/unix/lwt_unix.h 2010-12-13 14:37:37.000000000 +0000
++++ lwt-2.2.0.libev/src/unix/lwt_unix.h 2011-01-06 17:20:17.232473784 +0000
+@@ -25,7 +25,7 @@
+
+ #include <caml/mlvalues.h>
+ #include <caml/unixsupport.h>
+-#include <ev.h>
++#include <libev/ev.h>
+ #include <pthread.h>
+
+ /* Detect the target OS */
+--- lwt-2.2.0/src/unix/lwt_libev_stubs.c 2010-12-13 14:37:37.000000000 +0000
++++ lwt-2.2.0.libev/src/unix/lwt_libev_stubs.c 2011-01-06 17:20:35.703833869 +0000
+@@ -29,7 +29,7 @@
+ #include <caml/signals.h>
+ #include <caml/custom.h>
+ #include <caml/callback.h>
+-#include <ev.h>
++#include <libev/ev.h>
+
+ #include "lwt_unix.h"
+
diff --git a/ocaml-lwt.spec b/ocaml-lwt.spec
index afe99ae..e80d052 100644
--- a/ocaml-lwt.spec
+++ b/ocaml-lwt.spec
@@ -2,17 +2,21 @@
%define debug_package %{nil}
Name: ocaml-lwt
-Version: 2.0.0
-Release: 0.3.rc1%{?dist}
+Version: 2.2.0
+Release: 1%{?dist}
Summary: OCaml lightweight thread library
Group: Development/Libraries
License: LGPLv2+ with exceptions
URL: http://ocsigen.org/lwt
-Source0: http://ocsigen.org/download/lwt-%{version}+rc1.tar.gz
+Source0: http://ocsigen.org/download/lwt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
+# Location of libev headers on Fedora is in /usr/include/libev/ev.h
+# so we need to patch the source accordingly.
+Patch0: lwt-2.2.0-libev.patch
+
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-ocamldoc
@@ -20,6 +24,7 @@ BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-ssl >= 0.4.0
BuildRequires: ocaml-react >= 0.9.0
BuildRequires: chrpath
+BuildRequires: libev-devel
%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
@@ -43,7 +48,9 @@ developing applications that use %{name}.
%prep
-%setup -q -n lwt-%{version}+rc1
+%setup -q -n lwt-%{version}
+
+%patch0 -p1
mv README README.old
iconv -f iso-8859-1 -t utf-8 < README.old > README
@@ -75,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
%if %opt
%exclude %{_libdir}/ocaml/lwt/*.a
%exclude %{_libdir}/ocaml/lwt/*.cmxa
-%exclude %{_libdir}/ocaml/lwt/*.cmx
+#%exclude %{_libdir}/ocaml/lwt/*.cmx
%endif
%exclude %{_libdir}/ocaml/lwt/*.mli
%{_libdir}/ocaml/stublibs/*.so
@@ -84,16 +91,24 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
-%doc LICENSE COPYING CHANGES CHANGES.darcs README VERSION
+%doc LICENSE COPYING CHANGES CHANGES.darcs README
%if %opt
%{_libdir}/ocaml/lwt/*.a
%{_libdir}/ocaml/lwt/*.cmxa
-%{_libdir}/ocaml/lwt/*.cmx
+#%{_libdir}/ocaml/lwt/*.cmx
%endif
%{_libdir}/ocaml/lwt/*.mli
%changelog
+* Thu Jan 6 2011 Richard W.M. Jones <rjones(a)redhat.com> - 2.2.0-1
+- New upstream version 2.2.0.
+- Rebuild for OCaml 3.12.0.
+- Add BR libev-devel.
+- Patch <ev.h> -> <libev/ev.h>
+- *.cmx files are no longer being distributed.
+- No VERSION file.
+
* Wed Dec 30 2009 Richard W.M. Jones <rjones(a)redhat.com> - 2.0.0-0.3.rc1
- Rebuild for OCaml 3.11.2.
diff --git a/sources b/sources
index 2a9b080..6fc499b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-da266196ee3a1245eed3cf5df09f9ce1 lwt-2.0.0+rc1.tar.gz
+4e0b28cbc5a2dfe60013c91a5d051969 lwt-2.2.0.tar.gz
13 years, 5 months
[ocaml-pgocaml] New upstream version 1.4.
by Richard W.M. Jones
commit 5dd7c8e786be430c4ac6965dce2c4523e2fa4ff2
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Thu Jan 6 16:57:24 2011 +0000
New upstream version 1.4.
.gitignore | 1 +
ocaml-pgocaml.spec | 8 ++++++--
sources | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d036c07..b466f44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
pgocaml-1.3.tgz
+/pgocaml-1.4.tgz
diff --git a/ocaml-pgocaml.spec b/ocaml-pgocaml.spec
index 16dbf72..5cae211 100644
--- a/ocaml-pgocaml.spec
+++ b/ocaml-pgocaml.spec
@@ -2,8 +2,8 @@
%define debug_package %{nil}
Name: ocaml-pgocaml
-Version: 1.3
-Release: 2%{?dist}
+Version: 1.4
+Release: 1%{?dist}
Summary: OCaml library for type-safe access to PostgreSQL databases
Group: Development/Libraries
@@ -94,6 +94,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Jan 6 2011 Richard W.M. Jones <rjones(a)redhat.com> - 1.4-1
+- New upstream version 1.4.
+- Rebuild for OCaml 3.12.0.
+
* Wed Dec 30 2009 Richard W.M. Jones <rjones(a)redhat.com> - 1.3-2
- Rebuild for OCaml 3.11.2.
diff --git a/sources b/sources
index 4e782d5..15cebb5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-dcc98b672d684d7c4da8586a3671a4ac pgocaml-1.3.tgz
+9132620652796f03b35aa4b86df58c09 pgocaml-1.4.tgz
13 years, 5 months