Changeset 484 in ProjectBuilder


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

Improve Fedora official package build

Location:
devel/pb
Files:
2 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        }
  • devel/pb/lib/ProjectBuilder/Env.pm

    r481 r484  
    519519
    520520# PBGRP is replaced by the RPM group of apps
     521#filter PBGRP = Applications/Archiving
     522
     523# PBLIC is replaced by the license of the application
     524#filter PBLIC = GPL
     525
     526# PBDEP is replaced by the list of dependencies
     527#filter PBDEP =
     528
     529# PBSUF is replaced by the package suffix (\$pbsuf in code)
     530filter PBSUF = \$pbsuf
     531
     532# PBOBS is replaced by the Obsolete line
     533#filter PBOBS =
     534
     535EOF
     536            close(CONF);
     537            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.pbf";
     538            print CONF << "EOF";
     539#
     540# \$Id\$
     541#
     542# Filter for rpm build
     543#
     544
     545# PBGRP is replaced by the RPM group of apps
    521546# Cf: http://fedoraproject.org/wiki/RPMGroups
    522547#filter PBGRP = Applications/Archiving
     
    524549# PBLIC is replaced by the license of the application
    525550# Cf: http://fedoraproject.org/wiki/Licensing
    526 #filter PBLIC = GPL
     551#filter PBLIC = GPLv2+
    527552
    528553# PBDEP is replaced by the list of dependencies
     
    530555
    531556# PBSUF is replaced by the package suffix (\$pbsuf in code)
    532 filter PBSUF = \$pbsuf
     557filter PBSUF = %{dist}
    533558
    534559# PBOBS is replaced by the Obsolete line
Note: See TracChangeset for help on using the changeset viewer.