- Timestamp:
- 11/06/07 13:14:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r134 r135 843 843 844 844 if ($stage eq 'preamble') { 845 if (/^summary:\s +(.+)/i) {845 if (/^summary:\s*(.+)/i) { 846 846 $pkgdata{main}{summary} = $1; 847 } elsif (/^name:\s +(.+)/i) {847 } elsif (/^name:\s*(.+)/i) { 848 848 $pkgdata{main}{name} = expandmacros($1,'g'); 849 } elsif (/^epoch:\s +(.+)/i) {849 } elsif (/^epoch:\s*(.+)/i) { 850 850 $pkgdata{main}{epoch} = expandmacros($1,'g'); 851 } elsif (/^version:\s +(.+)/i) {851 } elsif (/^version:\s*(.+)/i) { 852 852 $pkgdata{main}{version} = expandmacros($1,'g'); 853 } elsif (/^release:\s +(.+)/i) {853 } elsif (/^release:\s*(.+)/i) { 854 854 $pkgdata{main}{release} = expandmacros($1,'g'); 855 } elsif (/^group:\s +(.+)/i) {855 } elsif (/^group:\s*(.+)/i) { 856 856 $pkgdata{main}{group} = $1; 857 } elsif (/^copyright:\s +(.+)/i) {857 } elsif (/^copyright:\s*(.+)/i) { 858 858 $pkgdata{main}{copyright} = $1; 859 } elsif (/^url:\s +(.+)/i) {859 } elsif (/^url:\s*(.+)/i) { 860 860 $pkgdata{main}{url} = $1; 861 } elsif (/^packager:\s +(.+)/i) {861 } elsif (/^packager:\s*(.+)/i) { 862 862 $pkgdata{main}{packager} = $1; 863 } elsif (/^buildroot:\s +(.+)/i) {863 } elsif (/^buildroot:\s*(.+)/i) { 864 864 $buildroot = $1; 865 } elsif (/^source0?:\s +(.+)/i) {865 } elsif (/^source0?:\s*(.+)/i) { 866 866 $pkgdata{main}{source} = $1; 867 867 die "Unknown tarball format $1\n" if $1 !~ /\.tar\.(?:gz|bz2)$/; 868 } elsif (/^source([0-9]+):\s +(.+)/i) {868 } elsif (/^source([0-9]+):\s*(.+)/i) { 869 869 $pkgdata{sources}{$1} = $2; 870 } elsif (/^patch([^:]+):\s +(.+)$/i) {870 } elsif (/^patch([^:]+):\s*(.+)$/i) { 871 871 my $patchname = "patch$1"; 872 872 $pkgdata{main}{$patchname} = $2; … … 877 877 } 878 878 chomp $pkgdata{main}{$patchname}; 879 } elsif (/^buildarch(?:itecture)?:\s +(.+)/i) {879 } elsif (/^buildarch(?:itecture)?:\s*(.+)/i) { 880 880 $pkgdata{main}{arch} = $1; 881 881 $pkgdata{main}{arch} =~ s/^noarch$/all/; 882 882 $buildarch = $pkgdata{main}{arch}; 883 } elsif (/^buildreq(?:uires)?:\s +(.+)/i) {883 } elsif (/^buildreq(?:uires)?:\s*(.+)/i) { 884 884 $buildreq .= ", $1"; 885 } elsif (/^requires:\s +(.+)/i) {885 } elsif (/^requires:\s*(.+)/i) { 886 886 $pkgdata{main}{requires} .= ", ".expandmacros("$1", 'gp'); 887 } elsif (/^provides:\s +(.+)/i) {887 } elsif (/^provides:\s*(.+)/i) { 888 888 $pkgdata{main}{provides} .= ", $1"; 889 } elsif (/^conflicts:\s +(.+)/i) {889 } elsif (/^conflicts:\s*(.+)/i) { 890 890 $pkgdata{main}{conflicts} .= ", $1"; 891 } elsif (/^recommends:\s +(.+)/i) {891 } elsif (/^recommends:\s*(.+)/i) { 892 892 $pkgdata{main}{recommends} .= ", $1"; 893 893 warn "Warning: Debian-specific 'Recommends:' outside \%if wrapper\n" if $iflevel == 0; 894 } elsif (/^suggests:\s +(.+)/i) {894 } elsif (/^suggests:\s*(.+)/i) { 895 895 $pkgdata{main}{suggests} .= ", $1"; 896 896 warn "Warning: Debian-specific 'Suggests:' outside \%if wrapper\n" if $iflevel == 0; 897 } elsif (/^replaces:\s +(.+)/i) {897 } elsif (/^replaces:\s*(.+)/i) { 898 898 $pkgdata{main}{replaces} .= ", $1"; 899 899 warn "Warning: Debian-specific 'Replaces:' outside \%if wrapper\n" if $iflevel == 0; 900 } elsif (/^autoreq(?:prov)?:\s +(.+)/i) {900 } elsif (/^autoreq(?:prov)?:\s*(.+)/i) { 901 901 # we don't handle auto-provides (yet) 902 902 $NoAutoReq = 1 if $1 =~ /(?:no|0)/i;
Note:
See TracChangeset
for help on using the changeset viewer.