- Timestamp:
- 01/31/14 17:07:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r178 r179 683 683 if (/^\%build/) { 684 684 $stage = 'build'; 685 $buildscript .= "cd $tarballdir\n" ;685 $buildscript .= "cd $tarballdir\n" if $pkgdata{main}{hassetup}; 686 686 next LINE; 687 687 } # %build … … 689 689 if (/^\%install/) { 690 690 $stage = 'install'; 691 $installscript .= "cd $tarballdir\n" ;691 $installscript .= "cd $tarballdir\n" if $pkgdata{main}{hassetup}; 692 692 next LINE; 693 693 } # %install … … 695 695 if (/^\%clean/) { 696 696 $stage = 'clean'; 697 $cleanscript .= "cd $tarballdir\n" ;697 $cleanscript .= "cd $tarballdir\n" if $pkgdata{main}{hassetup}; 698 698 next LINE; 699 699 } # %clean … … 759 759 # include %patch tags, may be just a bare shell script. 760 760 if (/^\%setup/) { 761 $pkgdata{main}{hassetup} = 1; # flag the fact that we've got %setup 761 762 # Parse out the %setup macro. Note that we aren't supporting 762 763 # many of RPM's %setup features. … … 1291 1292 close DEBSCRIPT; 1292 1293 1294 $pkgdata{$pkg}{summary} = expandmacros($pkgdata{$pkg}{summary}, 'gp'); 1293 1295 my $control = "Package: $pkgdata{$pkg}{name}\n". 1294 1296 "Version: ".(defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). … … 1306 1308 ( defined($pkgdata{$pkg}{replaces}) ? "Replaces: $pkgdata{$pkg}{replaces}\n" : '' ). 1307 1309 "Description: $pkgdata{$pkg}{summary}\n"; 1310 $pkgdata{$pkg}{desc} = expandmacros($pkgdata{$pkg}{desc}, 'gp'); 1308 1311 # Munge things so that Debian tools don't choke on errant blank lines 1309 1312 $pkgdata{$pkg}{desc} =~ s/\s+$//g; # Trim trailing blanks … … 1466 1469 sub checkbuildreq { 1467 1470 return 1 if $buildreq eq ''; # No use doing extra work. 1471 1472 # expand macros 1473 $buildreq = expandmacros($buildreq,'gp'); 1468 1474 1469 1475 if ( ! -e "/usr/bin/dpkg-query" ) {
Note:
See TracChangeset
for help on using the changeset viewer.