}
if (l == "Apache License 2.0" || \
l == "Apache 2.0" || \
+ l == "Apache 2" || \
+ l == "Apache License (2.0)" ||
l == "Apache License Version 2.0" || \
l == "Apache License, Version 2.0" || \
l == "Apache Software License v2" || \
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}")
continue;
if ($c ~ sysconfdir "/{?xdg")
continue;
+ if ($c ~ sysconfdir "/{?NetworkManager")
+ continue;
+ if ($c ~ sysconfdir "/{?default")
+ continue;
+ if ($c ~ sysconfdir "/{?pm")
+ continue;
if ($c ~ sysconfdir "/shells")
continue;
if ($c ~ sysconfdir "/inittab")
}
# 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(/^jakarta-ant$/, "ant", $2);
sub(/^jakarta-commons-codec$/, "java-commons-codec", $2);
sub(/^jakarta-commons-httpclient$/, "java-commons-httpclient", $2);
+ sub(/^jakarta-commons-lang24$/, "java-commons-lang", $2);
sub(/^jakarta-commons-logging$/, "java-commons-logging", $2);
+ sub(/^jakarta-commons-net$/, "java-commons-net", $2);
sub(/^jakarta-log4j$/, "java-log4j", $2);
sub(/^jakarta-oro$/, "java-oro", $2);
sub(/^jakarta-servletapi$/, "java(servlet)", $2);
sub(/^java-devel$/, "jdk", $2);
+ sub(/^java-dom$/, "java-dom4j", $2);
sub(/^java\(JSP\)$/, "java(jsp)", $2);
sub(/^java\(JavaServerFaces\)$/, "java(javaserverfaces)", $2);
sub(/^java\(Portlet\)$/, "java(portlet)", $2);
sub(/^gtk3-devel$/, "gtk+3-devel", $2);
sub(/^initscripts$/, "rc-scripts", $2);
sub(/^iproute$/, "iproute2", $2);
+ sub(/^iptables-ipv6$/, "iptables", $2);
sub(/^iscsi-initiator-utils$/, "open-iscsi", $2);
sub(/^keyutils-libs-devel$/, "keyutils-devel", $2);
sub(/^libSM-devel$/, "xorg-lib-libSM-devel", $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