# This is adapter v0.28. Adapter adapts .spec files for PLD Linux.
# $Id$
#
-# Copyright (C) 1999-2006 PLD-Team <feedback@pld-linux.org>
+# Copyright (C) 1999-2007 PLD-Team <feedback@pld-linux.org>
# Authors:
# Michał Kuratczyk <kura@pld.org.pl>
# Sebastian Zagrodzki <s.zagrodzki@mimuw.edu.pl>
# Tomasz Kłoczko <kloczek@rudy.mif.pg.gda.pl>
# Artur Frysiak <wiget@pld-linux.org>
# Michal Kochanowicz <mkochano@pld.org.pl>
+# Jakub Bogusz <qboosh@pld-linux.org>
# Elan Ruusamäe <glen@pld-linux.org>
#
# See cvs log adapter{,.awk} for list of contributors
field = tolower($1)
fieldnlower = $1
- if (field ~ /summary:/ && !/etc\.$/) {
+ if (field ~ /summary:/ && !/etc\.$/ && !/Inc\.$/) {
sub(/\.$/, "", $0);
}
if (field ~ /group(\([^)]+\)):/)
sub(/^Applications\/Productivity$/, "X11/Applications", group)
sub(/^Database$/, "Applications/Databases", group)
sub(/^Development\/Code Generators$/, "Development", group)
+ sub(/^Emulators$/, "Applications/Emulators", group)
+ sub(/^System\/Libraries$/, "Libraries", group)
$0 = "Group:\t\t" group
sub("^http://.*\.dl\.sourceforge\.net/", "http://dl.sourceforge.net/", $2)
sub("^http://dl\.sourceforge\.net/sourceforge/", "http://dl.sourceforge.net/", $2)
sub("^http://dl\.sf\.net/", "http://dl.sourceforge.net/", $2)
+
+ sub("^ftp://ftp\.gnome\.org/", "http://ftp.gnome.org/", $2)
+ sub("^http://ftp\.gnome\.org/pub/gnome/", "http://ftp.gnome.org/pub/GNOME/", $2)
}
gsub("%attr\\(0", "%attr(")
}
+ # kill leading whitespace
+ gsub(/^ +/, "");
+
# kill default attrs
gsub(/%dir %attr\(755,root,root\)/, "%dir");
gsub(/%attr\(755,root,root\) %dir/, "%dir");
# return
# }
- if (pkg ~ /^php-[a-z]/ && pkg !~ /^php-(pear|common|cli|devel|fcgi|cgi|dirs|program|pecl-)/) {
- sub(/^php-/, "php(", pkg);
- sub(/$/, ")", pkg);
- $2 = pkg
- }
+# if (pkg ~ /^php-[a-z]/ && pkg !~ /^php-(pear|common|cli|devel|fcgi|cgi|dirs|program|pecl-)/) {
+# sub(/^php-/, "php(", pkg);
+# sub(/$/, ") # verify this correctness -- it may be wanted to use specific not virtual dep", pkg);
+# $2 = pkg
+# }
if (pkg ~/^php$/) {
$2 = "webserver(php)";