Changeset 199
- Timestamp:
- 08/03/15 17:31:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r198 r199 368 368 $specfile = "$topdir/BUILD/". qx { zcat $tarball |tar -t |grep -e '[\.]spec\$' }; 369 369 chomp $specfile; 370 my ($fileonly, $dirname) = ($tarball =~ /(([a-zA-Z0-9._-]+)\. tar\.(?:gz|bz2|xz))$/);370 my ($fileonly, $dirname) = ($tarball =~ /(([a-zA-Z0-9._-]+)\.(?:tgz|tar\.(?:gz|bz2|xz|Z)))$/); 371 371 372 372 $tarball = abs_path($tarball); 373 373 ##fixme: use macro expansions for the executables 374 374 my $unpackcmd = "cd $topdir/BUILD; ". 375 ( $tarball =~ /\. tar\.gz$/ ? "/bin/gzip" : "" ).376 ( $tarball =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ).377 ( $tarball =~ /\.tar\. (?:gz|Z)$/? "/usr/bin/xz" : "" ).375 ( $tarball =~ /\.(?:tgz|tar\.(?:gz|Z))$/ ? "/bin/gzip" : "" ). 376 ( $tarball =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ). 377 ( $tarball =~ /\.tar\.xz$/ ? "/usr/bin/xz" : "" ). 378 378 " -dc $tarball |/bin/tar -xf -"; 379 379 … … 933 933 } else { 934 934 $prepscript .= 935 ( $pkgdata{main}{source} =~ /\. tar\.gz$/? "/bin/gzip" : "" ).936 ( $pkgdata{main}{source} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ).937 ( $pkgdata{main}{source} =~ /\.tar\.xz$/ 935 ( $pkgdata{main}{source} =~ /\.(?:tgz|tar\.(?:gz|Z))$/ ? "/bin/gzip" : "" ). 936 ( $pkgdata{main}{source} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ). 937 ( $pkgdata{main}{source} =~ /\.tar\.xz$/ ? "/usr/bin/xz" : "" ). 938 938 " -dc '$topdir/SOURCES/$pkgdata{main}{source}' | /bin/tar -x". 939 939 ( $quietunpack ? '' : 'vv' )."f - "; … … 952 952 } else { 953 953 $prepscript .= 954 ( $pkgdata{sources}{$snum} =~ /\. tar\.gz$/? "/bin/gzip" : "" ).955 ( $pkgdata{sources}{$snum} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ).956 ( $pkgdata{sources}{$snum} =~ /\.tar\.xz$/ 954 ( $pkgdata{sources}{$snum} =~ /\.(?:tgz|tar\.(?:gz|Z))$/ ? "/bin/gzip" : "" ). 955 ( $pkgdata{sources}{$snum} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ). 956 ( $pkgdata{sources}{$snum} =~ /\.tar\.xz$/ ? "/usr/bin/xz" : "" ). 957 957 " -dc '$topdir/SOURCES/$pkgdata{sources}{$snum}' | /bin/tar -x". 958 958 ( $quietunpack ? '' : 'vv' )."f -"; … … 969 969 } else { 970 970 $prepscript .= 971 ( $pkgdata{sources}{$snum} =~ /\. tar\.gz$/ ? "/bin/gzip" : "" ).972 ( $pkgdata{sources}{$snum} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ).973 ( $pkgdata{sources}{$snum} =~ /\.tar\.xz$/ ? "/usr/bin/xz" : "" ).971 ( $pkgdata{sources}{$snum} =~ /\.(?:tgz|tar\.(?:gz|Z))$/ ? "/bin/gzip" : "" ). 972 ( $pkgdata{sources}{$snum} =~ /\.tar\.bz2$/ ? "/bin/bzip2" : "" ). 973 ( $pkgdata{sources}{$snum} =~ /\.tar\.xz$/ ? "/usr/bin/xz" : "" ). 974 974 " -dc '$topdir/SOURCES/$pkgdata{sources}{$snum}' | /bin/tar -x". 975 975 ( $quietunpack ? '' : 'vv' )."f -"; … … 1171 1171 $pkgdata{main}{source} =~ s|^.+/([^/]+)$|$1|; 1172 1172 $pkgdata{sources}{0} = $pkgdata{main}{source}; 1173 # .tar, .tar.gz, .tar. bz2, .tgz, .xz, .zip1174 die "Unknown Source: header format $sval\n" if $sval !~ /\.(?:tar(?:\.(?:gz|bz2|xz ))?|tgz|zip)$/;1173 # .tar, .tar.gz, .tar.Z, .tar.bz2, .tar.xz, .tgz, .zip 1174 die "Unknown Source: header format $sval\n" if $sval !~ /\.(?:tar(?:\.(?:gz|bz2|xz|Z))?|tgz|zip)$/; 1175 1175 } elsif (my ($srcnum, $src) = (/^source([0-9]+):\s*(.+)/i)) { 1176 1176 $src =~ s/\s*$//; … … 2097 2097 debbuild {-ba|-bb|-bp|-bc|-bi|-bl|-bs} [build-options] file.spec 2098 2098 2099 debbuild {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [build-options] file. tar.{gz|bz2|xz}2099 debbuild {-ta|-tb|-tp|-tc|-ti|-tl|-ts} [build-options] file.{tgz|zip|tar.{gz|bz2|xz|Z}} 2100 2100 2101 2101 debbuild --rebuild file.{src.rpm|sdeb}
Note:
See TracChangeset
for help on using the changeset viewer.