release = "0." fixedsub(".%{disttag}.at", "", $4)
}
+ # deprecated. currently just resolves to name in $2
+ if (/^%pyrequires_eq.+/) {
+ $1 = "Requires:";
+ }
+
field = tolower($1)
if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
sub(/\.$/, "", $0);
}
}
+# {{{ replace_groupnames(group)
function replace_groupnames(group) {
group = replace(group, "Amusements/Games", "Applications/Games");
group = replace(group, "Amusements/Games/Strategy/Real Time", "X11/Applications/Games/Strategy");
group = replace(group, "Productivity/Databases/Servers", "Applications/Databases");
group = replace(group, "Productivity/Multimedia/Other", "X11/Applications/Multimedia");
group = replace(group, "Productivity/Networking/Web/Servers", "Networking/Daemons/HTTP");;
+ group = replace(group, "Python/Libraries", "Libraries/Python");
group = replace(group, "Shells", "Applications/Shells");
group = replace(group, "System Environment/Base", "Base");
group = replace(group, "System Environment/Daemons", "Daemons");
return group;
}
+# }}}
+# {{{ replace_pkgconfig(pkg)
function replace_pkgconfig(pkg, cmd, path, n, i, line) {
n = split("/usr/lib64/pkgconfig /usr/lib/pkgconfig /usr/share/pkgconfig", path, / /);
for (i = 1; i <= n; i++) {
}
}
}
+# }}}
+# {{{ replace_pythonegg(pkg)
function replace_pythonegg(pkg, cmd, line) {
cmd = "rpm -q --qf '%{N}' --whatprovides 'pythonegg(" pkg ")'";
# Getline returns 0 on end-of-file, -1 on error, otherwise 1.
return;
}
}
+# }}}
function replace_requires(field, pkg) {
# pkg-config -> package names