Adjust to use new fedora.gl library in goals stdlib.
[fedora-ocaml-rebuild.git] / Goalfile
1 # See README.
2
3 include "fedora.gl"
4
5 let fedora-dir = "%HOME/d/fedora"
6
7 let fedora-branch = "master"
8 let fedora-tag = "f32-build-side-18015"
9 let koji = "koji"
10 #let koji = "koji -p riscv64"
11 let fedpkg = "fedpkg"
12 #let fedpkg = "fedpkg --user-config %HOME/d/fedora-ocaml-rebuild/fedpkg-user-config"
13
14 # The magic string that must appear in %changelog when the
15 # package has been rebuilt.
16 let fedora-rebuild-name = "OCaml 4.10.0+beta1 rebuild."
17
18 # Packages that are blocked.  Any dependent packages are also blocked
19 # automatically.
20 # XXX Not implemented, use ignore for now.
21 #let fedora-blocked = [ "ocaml-camlp4" ]
22
23 # Packages that are ignored, which means they are treated as if
24 # they have been rebuilt.
25 let fedora-ignored = [ "ocaml-srpm-macros", "ocaml",
26     # These ones are only needed because blocked is not working
27     "ocaml-camlp4",
28     "cduce",
29     "guestfs-browser",
30     "ocaml-bin-prot",
31     "ocaml-bisect",
32     "ocaml-bitstring",
33     "ocaml-deriving",
34     "ocaml-json-static",
35     "ocaml-mikmatch",
36     "ocaml-openin",
37     "ocaml-pa-monad",
38     "ocaml-pgocaml",
39     "ocaml-sexplib",
40     "ocaml-type-conv",
41     "ocamldsort",
42 ]
43
44 # All OCaml-related source package names
45 let other-packages = [
46     "alt-ergo", "apron", "brltty", "coccinelle", "coq",
47     "frama-c", "gappalib-coq", "graphviz", "hevea", "hivex",
48     "libguestfs", "libnbd", "nbdkit", "opam", "plplot",
49     "virt-top", "virt-v2v", "why3", "z3",
50     # no OCaml code, but needs to be rebuilt after Coq
51     "flocq"
52 ]
53 pure function get-source-packages () returning strings = {
54     cd %fedora-dir
55     for f in ocaml* %other-packages; do
56         [ -f $f/%fedora-branch/$f.spec ] && echo "$f"
57     done
58 }
59 let fedora-source-packages = get-source-packages ()
60
61 # Main goal: Rebuild all packages.
62 goal all = : wrap ("*koji-built", fedora-source-packages)