next
}
+# %package part
+/^%package/, (!/^%package/ && $0 ~ SECTIONS) {
+ gsub(/\t/, " ");
+}
+
################
# %description #
################
if (/^install/ && /-m[ \t]*[0-9]+/)
gsub(/-m[ \t]*[0-9]+ /, "")
+ # install without options -> cp -p
+ if (/^install [^-]/)
+ gsub(/^install/, "cp -p")
+
# No lines contain 'chown' or 'chgrp' if owner/group is 'root'
if (($1 ~ /chown/ && $2 ~ /root\.root/) || ($1 ~ /chgrp/ && $2 ~ /root/))
next
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}")
+ gsub("%{_userunitdir}", "%{systemduserunitdir}")
+ gsub(systemduserunitdir, "%{systemduserunitdir}")
gsub(systemdtmpfilesdir, "%{systemdtmpfilesdir}")
+ gsub("%{_tmpfilesdir}", "%{systemdtmpfilesdir}")
gsub("%{_datadir}/applications", "%{_desktopdir}")
gsub("%{_datadir}/pixmaps", "%{_pixmapsdir}")
continue;
if ($c ~ sysconfdir "/{?pam.d")
continue;
+ if ($c ~ sysconfdir "/{?apparmor.d")
+ continue;
if ($c ~ sysconfdir "/{?profile.d")
continue;
if ($c ~ sysconfdir "/{?rc.d")
}
# update this version dep each time some new macro export is added
- v = 1.49
+ v = 1.52
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"]
tmpdir = ENVIRON["tmpdir"]
systemdunitdir = ENVIRON["systemdunitdir"]
+ systemduserunitdir = ENVIRON["systemduserunitdir"]
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(/^libXxf86misc-devel$/, "xorg-lib-libXxf86misc-devel", $2);
sub(/^libXxf86vm-devel$/, "xorg-lib-libXxf86vm-devel", $2);
sub(/^libacl-devel$/, "acl-devel", $2);
+ sub(/^libattr-devel$/, "attr-devel", $2);
sub(/^libcurl-devel$/, "curl-devel", $2);
sub(/^libgudev1-devel$/, "udev-glib-devel", $2);
sub(/^libmx-devel$/, "mx-devel", $2);
sub(/^python-newt$/, "python-snack", $2);
sub(/^python-pygtk$/, "python-pygtk-gtk", $2);
sub(/^python-recaptcha-client$/, "python-recaptcha", $2);
- sub(/^python-twisted-core$/, "python-TwistedCore", $2);
+ sub(/^python-sphinx$/, "python-Sphinx", $2);
+ sub(/^python-twisted$/, "python-TwistedCore", $2);
sub(/^python-twisted-core$/, "python-TwistedCore", $2);
sub(/^python-twisted-names$/, "python-TwistedNames", $2);
sub(/^python2-devel$/, "python-devel", $2);
# }}}
replace_php_virtual_deps(field)
+
+ replace_opam_deps(field)
}
# vim:ts=4:sw=4 fdm=marker