- Timestamp:
- 06/11/10 16:50:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r151 r153 599 599 $subname = "main"; 600 600 if ($1) { # Magic to add entries to the right package 601 my $tmp = expandmacros("$1", 'g ');601 my $tmp = expandmacros("$1", 'gp'); 602 602 if (/-n/) { $subname = $tmp; } else { $subname = "$pkgdata{main}{name}-$tmp"; } 603 603 } … … 608 608 $stage = 'package'; 609 609 if ($1) { # Magic to add entries to the right package 610 my $tmp = expandmacros("$1", 'g ');610 my $tmp = expandmacros("$1", 'gp'); 611 611 if (/-n/) { $subname = $tmp; } else { $subname = "$pkgdata{main}{name}-$tmp"; } 612 612 } … … 663 663 $subname = 'main'; 664 664 if ($1) { # Magic to add entries to the right list of files 665 my $tmp = expandmacros("$1", 'g ');665 my $tmp = expandmacros("$1", 'gp'); 666 666 if (/-n/) { $subname = $tmp; } else { $subname = "$pkgdata{main}{name}-$tmp"; } 667 667 } … … 1098 1098 1099 1099 # Feh. Manpages don't **NEED** to be gzipped, but rpmbuild does, and so shall we. 1100 if ($pkgfile =~ m|/usr/share/man/man|) { 1100 # ... and your little info page too! 1101 if ($pkgfile =~ m{/usr/share/(?:man/man|info)}) { 1101 1102 # need to check to see if manpage is gzipped 1102 1103 if (-e "$specglobals{buildroot}$pkgfile") { 1103 if ($pkgfile !~ m|\.gz$|) { 1104 qx { gzip $specglobals{buildroot}$pkgfile }; 1105 $pkgfile .= ".gz"; 1104 # if we've just been pointed to a manpage section with "many" pages, 1105 # we need to gzip them all. 1106 # fortunately, we do NOT need to explicitly track each file for the 1107 # purpose of stuffing them in the package... the original %files 1108 # entry will do just fine. 1109 if ( -d "$specglobals{buildroot}$pkgfile") { 1110 foreach my $globfile (glob("$specglobals{buildroot}$pkgfile/*")) { 1111 gzip $globfile if $globfile !~ m|\.gz$|; 1112 } 1113 } else { 1114 if ($pkgfile !~ m|\.gz$|) { 1115 qx { gzip $specglobals{buildroot}$pkgfile }; 1116 $pkgfile .= ".gz"; 1117 } 1106 1118 } 1107 1119 } else { … … 1636 1648 $macrostring =~ s'%{_sbindir}'/usr/sbin'g; 1637 1649 $macrostring =~ s'%{_mandir}'%{_datadir}/man'g; 1650 $macrostring =~ s'%{_infodir}'%{_datadir}/info'g; 1638 1651 $macrostring =~ s'%{_includedir}'/usr/include'g; 1639 1652 $macrostring =~ s'%{_libdir}'/usr/lib'g;
Note:
See TracChangeset
for help on using the changeset viewer.