if (l == "GPLv2") {
l = "GPL v2"
}
+ if (l == "The BSD 3-Clause License") {
+ l = "BSD"
+ }
if (l == "GPLv2+") {
l = "GPL v2+"
}
gsub(ruby_rubylibdir, "%{ruby_rubylibdir}") # deprecated
gsub(ruby_rdocdir, "%{ruby_rdocdir}")
gsub(ruby_ridir, "%{ruby_ridir}")
+ gsub(ruby_specdir, "%{ruby_specdir}")
gsub("%{_unitdir}", "%{systemdunitdir}")
gsub(systemdunitdir, "%{systemdunitdir}")
}
# update this version dep each time some new macro export is added
- v = 1.49
+ v = 1.51
if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < v) {
printf("adapter shell script is outdated: Need %s, got %s. Please update it.\n", v, ENVIRON["ADAPTER_REVISION"]) > "/dev/stderr"
do_not_touch_anything = 1
ruby_rubylibdir = ENVIRON["ruby_rubylibdir"] # deprecated
ruby_rdocdir = ENVIRON["ruby_rdocdir"]
ruby_ridir = ENVIRON["ruby_ridir"]
+ ruby_specdir = ENVIRON["ruby_specdir"]
php_pear_dir = ENVIRON["php_pear_dir"]
php_data_dir = ENVIRON["php_data_dir"]
systemdtmpfilesdir = ENVIRON["systemdtmpfilesdir"]
}
+# replace opam names (caml)
+function replace_opam_deps(field, name) {
+ name = $2
+ if (name ~ "^(cryptokit|extlib|xmlm)$") {
+ name = "ocaml-" name;
+ } else if (name ~ "^(biniou|easy-format|yojson|gapi-ocaml)$") {
+ name = "ocaml-" name "-devel";
+ } else if (name == "ocamlfind") {
+ name = "ocaml-findlib"
+ } else if (name == "sqlite3-ocaml") {
+ name = "ocaml-sqlite"
+ } else if (name == "ocamlnet") {
+ name = "ocaml-net"
+ } else if (name == "ocurl") {
+ name = "ocaml-curl-devel"
+ } else if (name == "ocamlfuse") {
+ name = "ocaml-fuse-devel"
+ } else if (name == "camlidl") {
+ name = "ocaml-idl-devel"
+ }
+
+ if (name != $2) {
+ $2 = name;
+ }
+}
+
# php virtual deps as discussed in devel-en
function replace_php_virtual_deps(field) {
pkg = $2
sub(/^pytalloc$/, "python-talloc", $2);
sub(/^pytalloc-devel$/, "python-talloc-devel", $2);
sub(/^pytest$/, "python-pytest", $2);
+ sub(/^python-crypto$/, "python-Crypto", $2);
sub(/^python-cups$/, "python-pycups", $2);
sub(/^python-enchant$/, "python-pyenchant", $2);
sub(/^python-imaging$/, "python-PIL", $2);
# }}}
replace_php_virtual_deps(field)
+
+ replace_opam_deps(field)
}
# vim:ts=4:sw=4 fdm=marker