Changeset 484 for devel/pb/bin/pb


Ignore:
Timestamp:
Jun 9, 2008, 12:07:19 AM (12 years ago)
Author:
Bruno Cornec
Message:

Improve Fedora official package build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r483 r484  
    971971EOF
    972972            }
     973            if ($ddir eq "fedora") {
     974                # Extract the spec file to please Fedora maintainers :-(
     975                print PBS << "EOF";
     976for p in $basesrc; do
     977    echo \$p | grep -q 'src.rpm'
     978    if [ \$\? -eq 0 ]; then
     979        rpm2cpio \$p | cpio -ivdum --quiet '*.spec'
     980    fi
     981done
     982EOF
     983            }
    973984        } elsif ($dtype eq "deb") {
    974985            # Also make a pbscript to generate apt bases
     
    986997# Prepare a script to create apt info file
    987998(cd .. ; for a in i386 amd64 ia64; do mkdir -p dists/$dver/contrib/binary-\$a; dpkg-scanpackages -a\$a $dver /dev/null | gzip -c9 > dists/$dver/contrib/binary-\$a/Packages.gz; done; mkdir -p dists/$dver/contrib/source; dpkg-scansources $dver /dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz)
     999#(cd .. ; rm -f dists/$dver/Release ; apt-ftparchive release dists/$dver > dists/$dver/Release; gpg --sign -ba -o dists/$dver/Release.gpg dists/$dver/Release)
    9881000EOF
    9891001        }
Note: See TracChangeset for help on using the changeset viewer.