if (l == "LGPLv2+") {
l = "LGPL v2+"
}
+ if (l == "GPLv3") {
+ l = "GPL v3"
+ }
+ if (l == "GPLv3+") {
+ l = "GPL v3+"
+ }
$0 = "License:\t" l;
}
if (field ~ /^url:$/)
$1 = "URL:"
+ if (field ~ /^patch/)
+ $1 = "Patch" substr(field, 6);
+
if (field ~ /^description:$/)
$1 = "\n%description\n"
continue;
if ($c ~ sysconfdir "/tmpwatch")
continue;
+ if ($c ~ sysconfdir "/acpi")
+ continue;
+ if ($c ~ sysconfdir "/apm")
+ continue;
gsub(sysconfdir, "%{_sysconfdir}", $c)
}
gsub("^gcc ", "%{__cc} ")
gsub("^rm --interactive=never ", "%{__rm} ")
+ # fedora
+ gsub("%{ruby_sitearch}", "%{ruby_sitearchdir}")
+ gsub("%{python_sitearch}", "%{py_sitedir}")
+
# mandrake specs
gsub("^%make$", "%{__make}")
gsub("^%make ", "%{__make} ")
# fedora
sub(/^iscsi-initiator-utils$/, "open-iscsi", $2);
sub(/^gnome-python2-extras$/, "python-gnome-extras", $2);
+ sub(/^gnome-python2-gtkspell$/, "python-gnome-extras-gtkspell", $2);
sub(/^gtk2$/, "gtk+2", $2);
sub(/^gtk2-devel$/, "gtk+2-devel", $2);
sub(/^pygtk2-devel$/, "python-pygtk-devel", $2);
sub(/^python-imaging-tk$/, "python-PIL-tk", $2);
sub(/^initscripts$/, "rc-scripts", $2);
sub(/^libXft-devel$/, "xorg-lib-libXft-devel", $2);
+ sub(/^dbus-python$/, "python-dbus", $2);
+ sub(/^python-pygtk$/, "python-pygtk-gtk", $2);
+ sub(/^notify-python$/, "python-pynotify", $2);
# debian
sub(/^libgconf2-dev$/, "GConf2-devel", $2);