Fedora OCaml rebuild for OCaml 4.02.0 beta in Rawhide.
[goaljobs-goals.git] / fedora_ocaml_rebuild.ml
index 2b270fd..c2e1558 100644 (file)
@@ -14,13 +14,11 @@ let koji_target = "rawhide"
 (* The name of the rebuild, and also the magic substring that must
  * appear in the %changelog when the package has been rebuilt.
  *)
-let rebuild_name = "OCaml 4.01.0"
+let rebuild_name = "OCaml 4.02.0 beta"
 
 (* Packages that have problems or we just don't want to build. *)
 let blocked = [
-  "ocaml-libvirt"; (* RHBZ#1009701 *)
   "ocaml-lwt"; "ocaml-react"; (* loganjerry is handling *)
-  "ocaml-xmlrpc-light"; (* temporary, can remove after 2013-09-19 *)
 ]
 
 (* List of OCaml-related source package names. *)
@@ -167,10 +165,15 @@ and specfile_updated pkg =
   (* For rationale behind always bumping the spec file, see comment
    * in 'fedora.ml'.
    *)
-  (* XXX Automate common specfile fixes. *)
-  let title = rebuild_name ^ " rebuild." in
+  let title =
+    if not (file_contains_string specfile rebuild_name) then
+      rebuild_name ^ " rebuild."
+    else
+      "Bump release and rebuild." in
   sh "rpmdev-bumpspec -c %s %s" (quote title) specfile;
 
+  (* XXX Automate common specfile fixes. *)
+
   sh "
     cd %s
     echo 'Please make further changes as required to the spec file %s.spec'