Changeset 24
- Timestamp:
- 12/05/05 18:21:29 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r23 r24 370 370 $buildscript .= expandmacros($_,'mgbp'); 371 371 } else { 372 last BUILDSCRIPT if /^\% /;372 last BUILDSCRIPT if /^\%[^{]/; 373 373 $buildscript .= $_; 374 374 } … … 426 426 my $pkgname = 'main'; 427 427 if ($1) { 428 if (/-n/) { $pkgname = $1; } else { $pkgname = "$ name-$1"; }428 if (/-n/) { $pkgname = $1; } else { $pkgname = "$pkgdata{main}{name}-$1"; } 429 429 # subpackage not based on "main" package 430 430 while (<SPECFILE>) { … … 450 450 $pkgdata{main}{summary} = $1; 451 451 } elsif (/^name:\s+(.+)/i) { 452 $pkgdata{main}{name} = $1;452 $pkgdata{main}{name} = expandmacros($1,'g'); 453 453 } elsif (/^version:\s+(.+)/i) { 454 $pkgdata{main}{version} = $1;454 $pkgdata{main}{version} = expandmacros($1,'g'); 455 455 } elsif (/^release:\s+(.+)/i) { 456 $pkgdata{main}{release} = $1;456 $pkgdata{main}{release} = expandmacros($1,'g'); 457 457 } elsif (/^group:\s+(.+)/i) { 458 458 $pkgdata{main}{group} = $1; … … 505 505 $prepscript = expandmacros($prepscript,'gp'); 506 506 507 print $prepscript; exit 0;507 #print $prepscript; exit 0; 508 508 509 509 # create script filename … … 710 710 if ($section =~ /i/) { 711 711 # This is where we need to mangle $prefix. 712 $macrostring =~ s'%makeinstall'make %{fhs} 713 install'; 712 $macrostring =~ s'%makeinstall'make %{fhs} install'; 714 713 $prefix = $buildroot; 715 714 } # done %install and/or %makeinstall … … 718 717 # Note that these are processed in reverse order to get the substitution order right 719 718 if ($section =~ /b/) { 720 $macrostring =~ s'%{fhs}'host=$DEB_HOST_GNU_TYPE \721 build=$DEB_BUILD_GNU_TYPE \722 719 # $macrostring =~ s'%{fhs}'host=$DEB_HOST_GNU_TYPE \ 720 # build=$DEB_BUILD_GNU_TYPE \ 721 $macrostring =~ s'%{fhs}'prefix=%{_prefix} \ 723 722 exec-prefix=%{_exec_prefix} \ 724 723 bindir=%{_bindir} \
Note:
See TracChangeset
for help on using the changeset viewer.