Changeset 2251


Ignore:
Timestamp:
Aug 30, 2017, 5:07:30 PM (3 months ago)
Author:
bruno
Message:

Transform .pb and .pbf files into .yml as well

In example generated as well as in the usage during processing

Location:
devel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Env.pm

    r2214 r2251  
    7979    open(PBRC, "> $ENV{'PBETC'}") || die "Unable to create $ENV{'PBETC'}";
    8080    print PBRC << "EOF";
     81---
    8182#
    8283# Define for each project the URL of its pbconf repository
     
    420421            open(CONF,"> $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb") || die "Unable to create $ENV{'PBROOTDIR'}/$ENV{'PBPROJ'}.pb";
    421422            print CONF << "EOF";
     423---
    422424#
    423425# Project Builder configuration file
     
    426428# \$Id\$
    427429#
    428 
    429430#
    430431# What is the project URL
    431432#
    432 #pburl $ENV{'PBPROJ'} = svn://svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
    433 #pburl $ENV{'PBPROJ'} = svn+ssh://user\@svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
    434 #pburl $ENV{'PBPROJ'} = git+ssh//user\@git.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
    435 #pburl $ENV{'PBPROJ'} = cvs://cvs.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
    436 #pburl $ENV{'PBPROJ'} = http://www.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz
    437 #pburl $ENV{'PBPROJ'} = ftp://ftp.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz
    438 #pburl $ENV{'PBPROJ'} = file:///src/$ENV{'PBPROJ'}-devel.tar.gz
    439 #pburl $ENV{'PBPROJ'} = dir:///src/$ENV{'PBPROJ'}-devel
    440 
     433#  pburl:
     434#    $ENV{'PBPROJ'}: svn://svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
     435#    $ENV{'PBPROJ'}: svn+ssh://user\@svn.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
     436#    $ENV{'PBPROJ'}: git+ssh//user\@git.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
     437#    $ENV{'PBPROJ'}: cvs://cvs.$ENV{'PBPROJ'}.org/$ENV{'PBPROJ'}/devel
     438#    $ENV{'PBPROJ'}: http://www.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz
     439#    $ENV{'PBPROJ'}: ftp://ftp.$ENV{'PBPROJ'}.org/src/$ENV{'PBPROJ'}-devel.tar.gz
     440#    $ENV{'PBPROJ'}: file:///src/$ENV{'PBPROJ'}-devel.tar.gz
     441#    $ENV{'PBPROJ'}: dir:///src/$ENV{'PBPROJ'}-devel
     442#
    441443# Repository
    442 #pbrepo $ENV{'PBPROJ'} = ftp://ftp.$ENV{'PBPROJ'}.org
    443 #pbml $ENV{'PBPROJ'} = $ENV{'PBPROJ'}-announce\@lists.$ENV{'PBPROJ'}.org
    444 #pbsmtp $ENV{'PBPROJ'} = localhost
    445 #pbgpgcheck $ENV{'PBPROJ'} = 1
     444#  pbrepo:
     445#    $ENV{'PBPROJ'}: ftp://ftp.$ENV{'PBPROJ'}.org
     446#  pbml:
     447#    $ENV{'PBPROJ'}: $ENV{'PBPROJ'}-announce\@lists.$ENV{'PBPROJ'}.org
     448#  pbsmtp:
     449#    $ENV{'PBPROJ'}: localhost
     450#  pbgpgcheck:
     451#    $ENV{'PBPROJ'}: 1
    446452# For distro supporting it, which area is used
    447 #projcomponent $ENV{'PBPROJ'} = main
    448 
     453#  projcomponent:
     454#    $ENV{'PBPROJ'}: main
     455#
    449456# Check whether project is well formed
    450457# when downloading from ftp/http/...
    451458# (containing already a directory with the project-version name)
    452 #pbwf $ENV{'PBPROJ'} = 1
    453 
     459#  pbwf:
     460#    $ENV{'PBPROJ'}: 1
     461#
    454462# Do we check GPG keys
    455 #pbgpgcheck $ENV{'PBPROJ'} = 1
    456 
     463#  pbgpgcheck:
     464#    $ENV{'PBPROJ'}: 1
     465#
    457466#
    458467# Packager label
    459468#
    460 #pbpackager $ENV{'PBPROJ'} = William Porte <bill\@$ENV{'PBPROJ'}.org>
    461 #
    462 
     469#  pbpackager:
     470#    $ENV{'PBPROJ'}: William Porte <bill\@$ENV{'PBPROJ'}.org>
     471#
     472#
    463473# For delivery to a machine by SSH (potentially the FTP server)
    464474# Needs hostname, account and directory
    465475#
    466 #sshhost $ENV{'PBPROJ'} = www.$ENV{'PBPROJ'}.org
    467 #sshlogin $ENV{'PBPROJ'} = bill
    468 #sshdir $ENV{'PBPROJ'} = /$ENV{'PBPROJ'}/ftp
    469 #sshport $ENV{'PBPROJ'} = 22
    470 
     476#  sshhost:
     477#    $ENV{'PBPROJ'}: www.$ENV{'PBPROJ'}.org
     478#  sshlogin:
     479#    $ENV{'PBPROJ'}: bill
     480#  sshdir:
     481#    $ENV{'PBPROJ'}: /$ENV{'PBPROJ'}/ftp
     482#  sshport:
     483#    $ENV{'PBPROJ'}: 22
     484#
    471485#
    472486# For Virtual machines management
     
    477491# a QEMU rhel-3-i286 here means that the VM will be named rhel-3-i386.qemu
    478492#
    479 #vmlist $ENV{'PBPROJ'} = asianux-2-i386,asianux-3-i386,centos-7-x86_64,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,mandriva-2010.0-i386,mandriva-2010.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,fedora-11-i386,fedora-12-i386,fedora-13-i386,fedora-14-i386,fedora-15-i386,fedora-16-i386,fedora-17-i386,fedora-18-i386,fedora-19-i386,fedora-20-i386,fedora-21-i386,rhel-2-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,rhel-6-i386,suse-10.0-i386,suse-10.1-i386,opensuse-10.2-i386,opensuse-10.3-i386,opensuse-11.0-i386,opensuse-11.1-i386,opensuse-11.2-i386,opensuse-11.3-i386,opensuse-11.4-i386,opensuse-12.1-i386,opensuse-12.2-i386,opensuse-12.3-i386,opensuse-13.1-i386,opensuse-13.2-i386,sles-9-i386,sles-10-i386,sles-11-i386,gentoo-nover-i386,debian-3-i386,debian-4-i386,debian-5-i386,debian-6-i386,debian-7-i386,debian-8-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,ubuntu-9.04-i386,ubuntu-9.10-i386,ubuntu-10.04-i386,ubuntu-10.10-i386,ubuntu-11.04-i386,ubuntu-11.10-i386,ubuntu-12.04-i386,ubuntu-12.10-i386,ubuntu-13.04-i386,ubuntu-13.10-i386,ubuntu-14.04-i386,ubuntu-14.10-i386,ubuntu-15.04-i386,ubuntu-15.10-i386,ubuntu-16.04-i386,solaris-10-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,mandriva-2010.0-x86_64,mandriva-2010.1-x86_64,mageia-1-i386,mageia-2-i386,mageia-3-i386,mageia-4-i386,mageia-5-i386,mageia-1-x86_64,mageia-2-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,fedora-11-x86_64,fedora-12-x86_64,fedora-13-x86_64,fedora-14-x86_64,fedora-15-x86_64,fedora-16-x86_64,fedora-17-x86_64,fedora-18-x86_64,fedora-19-x86_64,fedora-20-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,rhel-3-x86_64,rhel-4-x86_64,rhel-5-x86_64,rhel-6-x86_64,rhel-7-x86_64,opensuse-10.2-x86_64,opensuse-10.3-x86_64,opensuse-11.0-x86_64,opensuse-11.1-x86_64,opensuse-11.2-x86_64,opensuse-11.3-x86_64,opensuse-11.4-x86_64,opensuse-12.1-x86_64,opensuse-12.2-x86_64,opensuse-12.3-x86_64,opensuse-13.1-x86_64,opensuse-13.2-x86_64,sles-10-x86_64,sles-11-x86_64,sles-12-x86_64,gentoo-nover-x86_64,debian-4-x86_64,debian-5-x86_64,debian-6-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64,ubuntu-9.10-x86_64,ubuntu-10.04-x86_64,ubuntu-10.10-x86_64,ubuntu-11.04-x86_64,ubuntu-11.10-x86_64,ubuntu-12.04-x86_64,ubuntu-12.10-x86_64,ubuntu-13.04-x86_64,ubuntu-13.10-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64
    480 
     493#  vmlist:
     494#    $ENV{'PBPROJ'}: asianux-2-i386,asianux-3-i386,centos-7-x86_64,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,mandriva-2010.0-i386,mandriva-2010.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,fedora-11-i386,fedora-12-i386,fedora-13-i386,fedora-14-i386,fedora-15-i386,fedora-16-i386,fedora-17-i386,fedora-18-i386,fedora-19-i386,fedora-20-i386,fedora-21-i386,rhel-2-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,rhel-6-i386,suse-10.0-i386,suse-10.1-i386,opensuse-10.2-i386,opensuse-10.3-i386,opensuse-11.0-i386,opensuse-11.1-i386,opensuse-11.2-i386,opensuse-11.3-i386,opensuse-11.4-i386,opensuse-12.1-i386,opensuse-12.2-i386,opensuse-12.3-i386,opensuse-13.1-i386,opensuse-13.2-i386,sles-9-i386,sles-10-i386,sles-11-i386,gentoo-nover-i386,debian-3-i386,debian-4-i386,debian-5-i386,debian-6-i386,debian-7-i386,debian-8-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,ubuntu-9.04-i386,ubuntu-9.10-i386,ubuntu-10.04-i386,ubuntu-10.10-i386,ubuntu-11.04-i386,ubuntu-11.10-i386,ubuntu-12.04-i386,ubuntu-12.10-i386,ubuntu-13.04-i386,ubuntu-13.10-i386,ubuntu-14.04-i386,ubuntu-14.10-i386,ubuntu-15.04-i386,ubuntu-15.10-i386,ubuntu-16.04-i386,solaris-10-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,mandriva-2010.0-x86_64,mandriva-2010.1-x86_64,mageia-1-i386,mageia-2-i386,mageia-3-i386,mageia-4-i386,mageia-5-i386,mageia-1-x86_64,mageia-2-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,fedora-11-x86_64,fedora-12-x86_64,fedora-13-x86_64,fedora-14-x86_64,fedora-15-x86_64,fedora-16-x86_64,fedora-17-x86_64,fedora-18-x86_64,fedora-19-x86_64,fedora-20-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,rhel-3-x86_64,rhel-4-x86_64,rhel-5-x86_64,rhel-6-x86_64,rhel-7-x86_64,opensuse-10.2-x86_64,opensuse-10.3-x86_64,opensuse-11.0-x86_64,opensuse-11.1-x86_64,opensuse-11.2-x86_64,opensuse-11.3-x86_64,opensuse-11.4-x86_64,opensuse-12.1-x86_64,opensuse-12.2-x86_64,opensuse-12.3-x86_64,opensuse-13.1-x86_64,opensuse-13.2-x86_64,sles-10-x86_64,sles-11-x86_64,sles-12-x86_64,gentoo-nover-x86_64,debian-4-x86_64,debian-5-x86_64,debian-6-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64,ubuntu-9.10-x86_64,ubuntu-10.04-x86_64,ubuntu-10.10-x86_64,ubuntu-11.04-x86_64,ubuntu-11.10-x86_64,ubuntu-12.04-x86_64,ubuntu-12.10-x86_64,ubuntu-13.04-x86_64,ubuntu-13.10-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64
     495#
    481496#
    482497# Valid values for vmtype are
    483498# qemu, (vmware, xen, ... TBD)
    484 #vmtype $ENV{'PBPROJ'} = qemu
    485 
     499#  vmtype:
     500#    $ENV{'PBPROJ'}: qemu
     501#
    486502# Hash for VM stuff on vmtype
    487 #vmntp default = pool.ntp.org
    488 
     503#  vmntp:
     504#    default: pool.ntp.org
     505#
    489506# We suppose we can commmunicate with the VM through SSH
    490 #vmhost $ENV{'PBPROJ'} = localhost
    491 #vmlogin $ENV{'PBPROJ'} = pb
    492 #vmport $ENV{'PBPROJ'} = 2222
    493 
     507#  vmhost:
     508#    $ENV{'PBPROJ'}: localhost
     509#  vmlogin:
     510#    $ENV{'PBPROJ'}: pb
     511#  vmport:
     512#    $ENV{'PBPROJ'}: 2222
     513#
    494514# Timeout to wait when VM is launched/stopped
    495 #vmtmout default = 120
    496 
     515#  vmtmout:
     516#    default: 120
     517#
    497518# per VMs needed paramaters
    498 #vmopt $ENV{'PBPROJ'} = -m 384 -daemonize
    499 #vmpath $ENV{'PBPROJ'} = /home/qemu
    500 #vmsize $ENV{'PBPROJ'} = 5G
    501 
     519#  vmopt:
     520#    $ENV{'PBPROJ'}: -m 384 -daemonize
     521#  vmpath:
     522#    $ENV{'PBPROJ'}: /home/qemu
     523#  vmsize:
     524#    $ENV{'PBPROJ'}: 5G
     525#
    502526#
    503527# For Virtual environment management
     
    508532# a chroot rhel-3-i286 here means that the VE will be named rhel-3-i386.chroot
    509533#
    510 #velist $ENV{'PBPROJ'} = debian-7-x86_64,debian-8-x86_64,centos-5-x86_64,centos-6-x86_64,centos-7-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,ubuntu-12.04-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-13.2-x86_64,opensuse-13.1-x86_64,mageia-4-x86_64,mageia-5-x86_64
    511 
     534#  velist:
     535#    $ENV{'PBPROJ'}: debian-7-x86_64,debian-8-x86_64,centos-5-x86_64,centos-6-x86_64,centos-7-x86_64,fedora-21-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,ubuntu-12.04-x86_64,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-13.2-x86_64,opensuse-13.1-x86_64,mageia-4-x86_64,mageia-5-x86_64
     536#
    512537# VE params
    513 #vetype $ENV{'PBPROJ'} = docker
    514 #ventp default = pool.ntp.org
    515 #velogin $ENV{'PBPROJ'} = pb
    516 #vepath $ENV{'PBPROJ'} = /var/cache/rpmbootstrap
    517 #rbsconf $ENV{'PBPROJ'} = /etc/mock
    518 #verebuild $ENV{'PBPROJ'} = false
    519 
     538#  vetype:
     539#    $ENV{'PBPROJ'}: docker
     540#  ventp:
     541#    default: pool.ntp.org
     542#  velogin:
     543#    $ENV{'PBPROJ'}: pb
     544#  vepath:
     545#    $ENV{'PBPROJ'}: /var/cache/rpmbootstrap
     546#  rbsconf:
     547#    $ENV{'PBPROJ'}: /etc/mock
     548#  verebuild:
     549#    $ENV{'PBPROJ'}: false
     550#
    520551#
    521552# Global version/tag for the project
    522553#
    523 #projver $ENV{'PBPROJ'} = devel
    524 #projtag $ENV{'PBPROJ'} = 1
    525 
     554#  projver:
     555#    $ENV{'PBPROJ'}: devel
     556#  projtag:
     557#    $ENV{'PBPROJ'}: 1
     558#
    526559# Hash of valid version names
    527 #version $ENV{'PBPROJ'} = devel,stable
    528 
     560#  version:
     561#    $ENV{'PBPROJ'}: devel,stable
     562#
    529563# Is it a test version or a production version
    530 testver $ENV{'PBPROJ'} = true
     564#  testver:
     565#    $ENV{'PBPROJ'}: true
    531566# Which upper target dir for delivery
    532 delivery $ENV{'PBPROJ'} = test
    533 
     567#  delivery:
     568#    $ENV{'PBPROJ'}: test
     569#
    534570# Additional repository to add at build time
    535 # addrepo centos-5-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo
    536 # addrepo centos-4-x86_64 = http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/4/pb.repo
    537 
     571#  addrepo:
     572#    centos-5-x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/5/pb.repo
     573#    centos-4-x86_64: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm,ftp://ftp.project-builder.org/centos/4/pb.repo
     574#
    538575# Adapt to your needs:
    539576# Optional if you need to overwrite the global values above
     
    543580            foreach my $pp (@pkgs) {
    544581                print CONF << "EOF";
    545 #pkgver $pp = stable
    546 #pkgtag $pp = 3
     582#  pkgver:
     583#    $pp : stable
     584#  pkgtag:
     585#    $pp : 3
    547586EOF
    548587            }
     
    550589                print CONF << "EOF";
    551590# Hash of default package/package directory
    552 #defpkgdir $pp = dir-$pp
     591#  defpkgdir:
     592#    $pp: dir-$pp
    553593EOF
    554594            }
     
    556596            print CONF << "EOF";
    557597# Hash of additional package/package directory
    558 #extpkgdir minor-pkg = dir-minor-pkg
    559 
     598#  extpkgdir:
     599#    minor-pkg: dir-minor-pkg
     600#
    560601# List of files per pkg on which to apply filters
    561602# Files are mentioned relatively to pbroot/defpkgdir
     
    563604            foreach my $pp (@pkgs) {
    564605                print CONF << "EOF";
    565 #filteredfiles $pp = Makefile.PL,configure.in,install.sh,$pp.8
    566 #supfiles $pp = $pp.init
     606#  filteredfiles:
     607#    $pp: Makefile.PL,configure.in,install.sh,$pp.8
     608#  supfiles:
     609#    $pp: $pp.init
    567610
    568611# For perl modules, names are different depending on distro
    569612# Here perl-xxx for RPMs, libxxx-perl for debs, ...
    570613# So the package name is indeed virtual
    571 #namingtype $pp = perl
     614#  namingtype:
     615#    $pp: perl
    572616EOF
    573617            }
    574618            close(CONF);
    575619            pb_mkdir_p("$ENV{'PBROOTDIR'}/pbfilter");
    576             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/all.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/all.pbf";
     620            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/all.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/all.yml";
    577621            print CONF << "EOF";
     622---
    578623#
    579624# \$Id\$
     
    582627#
    583628#
     629  filter:
    584630# PBREPO is replaced by the root URL to access the repository
    585 filter PBREPO = \$pb->{'repo'}
    586 
     631    PBREPO: \$pb->{'repo'}
     632#
    587633# PBSRC is replaced by the source package location after the repo
    588 filter PBSRC = src/%{srcname}-%{version}\$pb->{'extdir'}.tar.gz
    589 
     634    PBSRC: src/%{srcname}-%{version}\$pb->{'extdir'}.tar.gz
     635#
    590636# PBVER is replaced by the version (\$pb->{'ver'} in code)
    591 filter PBVER = \$pb->{'ver'}
    592 
     637    PBVER: \$pb->{'ver'}
     638#
    593639# PBDATE is replaced by the date (\$pb->{'date'} in code)
    594 filter PBDATE = \$pb->{'date'}
    595 
     640    PBDATE: \$pb->{'date'}
     641#
    596642# PBEXTDIR is replaced by the testdir extension if needed (\$pb->{'extdir'} in code)
    597 filter PBEXTDIR = \$pb->{'extdir'}
    598 
     643    PBEXTDIR: \$pb->{'extdir'}
     644#
    599645# PBPATCHSRC is replaced by the patches names if value is yes. Patches are located under the pbpatch dir of the pkg.
    600 #filter PBPATCHSRC = yes
    601 
     646#    PBPATCHSRC: yes
     647#
    602648# PBPATCHCMD is replaced by the patches commands if value is yes
    603 #filter PBPATCHCMD = yes
    604 
     649#    PBPATCHCMD: yes
     650#
    605651# PBMULTISRC is replaced by the sources names if value is yes. Sources are located under the pbsrc dir of the pkg.
    606 #filter PBMULTISRC = yes
    607 
     652#    PBMULTISRC: yes
     653#
    608654# PBTAG is replaced by the tag (\$pb->{'tag'} in code)
    609 filter PBTAG = \$pb->{'tag'}
    610 
     655    PBTAG: \$pb->{'tag'}
     656#
    611657# PBREV is replaced by the revision (\$pb->{'rev'} in code)
    612 filter PBREV = \$pb->{'rev'}
    613 
     658    PBREV: \$pb->{'rev'}
     659#
    614660# PBREALPKG is replaced by the package name (\$pb->{'realpkg'} in code)
    615 filter PBREALPKG = \$pb->{'realpkg'}
    616 
     661    PBREALPKG: \$pb->{'realpkg'}
     662#
    617663# PBPKG is replaced by the package name (\$pb->{'pkg'} in code)
    618 filter PBPKG = \$pb->{'pkg'}
    619 
     664    PBPKG: \$pb->{'pkg'}
     665#
    620666# PBPROJ is replaced by the project name (\$pb->{'proj'} in code)
    621 filter PBPROJ = \$pb->{'proj'}
    622 
     667    PBPROJ: \$pb->{'proj'}
     668#
    623669# PBPACKAGER is replaced by the packager name (\$pb->{'packager'} in code)
    624 filter PBPACKAGER = \$pb->{'packager'}
    625 
     670    PBPACKAGER: \$pb->{'packager'}
     671#
    626672# PBDESC contains the description of the package
    627 #filter PBDESC = Bla-Bla                                                 \
     673#    PBDESC: Bla-Bla                                                 \
    628674# with a trailing \, the variable can be multi-line.                     \
    629675# only the trailing \'s will be removed, the leading spaces,             \
     
    631677# last line.  You can use dollar slash as a way to introduce carraige    \
    632678# return (perl syntax).                                                  \
    633 # You can use transform e.g. in rpm.pbf to adjust spaces
    634 
     679# You can use transform e.g. in rpm.yml to adjust spaces
     680#
    635681# PBSUMMARY contains a short single line description of the package
    636 #filter PBSUMMARY = Bla
    637 
     682#    PBSUMMARY: Bla
     683#
    638684# PBURL contains the URL of the Web site of the project
    639 #filter PBURL = http://www.$ENV{'PBPROJ'}.org
    640 
     685#    PBURL: http://www.$ENV{'PBPROJ'}.org
     686#
    641687# PBLOG is replaced by the changelog if value is yes
    642688# and should be last as when used we need the %pb hash filled
    643 #filter PBLOG = yes
    644 
     689#    PBLOG: yes
    645690EOF
    646691            close(CONF);
    647             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/rpm.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/rpm.pbf";
     692            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/rpm.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/rpm.yml";
    648693            print CONF << "EOF";
     694---
    649695#
    650696# \$Id\$
     
    652698# Filter for rpm build
    653699#
    654 
    655700# PBGRP is replaced by the RPM group of apps
    656 #filter PBGRP = Applications/Archiving
    657 
     701#    PBGRP: Applications/Archiving
     702#
    658703# PBLIC is replaced by the license of the application
    659 #filter PBLIC = GPL
    660 
     704#    PBLIC: GPL
     705#
    661706# PBDEP is replaced by the list of dependencies
    662 #filter PBDEP =
    663 
     707#    PBDEP:
     708#
    664709# PBBDEP is replaced by the list of build dependencies
    665 #filter PBBDEP =
    666 
     710#    PBBDEP:
     711#
    667712# PBSUF is replaced by the package suffix (\$pb->{'suf'} in code)
    668 filter PBSUF = \$pb->{'suf'}
    669 
     713    PBSUF: \$pb->{'suf'}
     714#
    670715# PBOBS is replaced by the Obsolete line
    671 #filter PBOBS =
    672 
     716#    PBOBS:
     717#
    673718# transform a variable from the key on the right to the key on the left using the perl expression
    674719# after the input key name.  Useful for taking multi-line documentation and removing trailing spaces
    675720# or leading spaces.
    676 #transform PBDESC = PBDESC_raw s/\\s+\\n/\\n/go;
    677 
     721#  transform:
     722#    PBDESC: PBDESC_raw s/\\s+\\n/\\n/go;
    678723EOF
    679724            close(CONF);
    680             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.pbf";
     725            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora.yml";
    681726            print CONF << "EOF";
     727---
    682728#
    683729# \$Id\$
     
    685731# Filter for rpm build
    686732#
    687 
    688733# PBGRP is replaced by the RPM group of apps
    689734# Cf: http://fedoraproject.org/wiki/RPMGroups
    690 #filter PBGRP = Applications/Archiving
    691 
     735#  filter:
     736#    PBGRP: Applications/Archiving
     737#
    692738# PBLIC is replaced by the license of the application
    693739# Cf: http://fedoraproject.org/wiki/Licensing
    694 #filter PBLIC = GPLv2+
    695 
     740#    PBLIC: GPLv2+
     741#
    696742# PBDEP is replaced by the list of dependencies
    697 #filter PBDEP =
    698 
     743#    PBDEP:
     744#
    699745# PBBDEP is replaced by the list of build dependencies
    700 #filter PBBDEP =
    701 
     746#    PBBDEP:
     747#
    702748# PBSUF is replaced by the package suffix (\$pb->{'suf'} in code)
    703 filter PBSUF = %{dist}
    704 
     749    PBSUF: %{dist}
     750#
    705751# PBOBS is replaced by the Obsolete line
    706 #filter PBOBS =
    707 
     752#    PBOBS:
    708753EOF
    709754            close(CONF);
    710755            foreach my $i (1..7) {
    711                 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.pbf";
    712                 print CONF << "EOF";
     756                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/fedora-$i.yml";
     757                print CONF << "EOF";
     758---
    713759#
    714760# \$Id\$
     
    716762# Filter for old fedora build
    717763#
    718 
    719764# PBSUF is replaced by the package suffix (\$pb->{'suf'} in code)
    720 filter PBSUF = \$pb->{'suf'}
    721 
     765  filter:
     766    PBSUF: \$pb->{'suf'}
    722767EOF
    723768                close(CONF);
    724769            }
    725             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/deb.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/deb.pbf";
     770            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/deb.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/deb.yml";
    726771            print CONF << "EOF";
     772---
    727773#
    728774# \$Id\$
     
    731777#
    732778# PBGRP is replaced by the group of apps
    733 filter PBGRP = utils
    734 
     779  filter:
     780    PBGRP: utils
     781#
    735782# PBLIC is replaced by the license of the application
    736783# Cf: http://www.debian.org/legal/licenses/
    737 #filter PBLIC = GPL
    738 
     784#    PBLIC: GPL
     785#
    739786# PBDEP is replaced by the list of dependencies
    740 #filter PBDEP =
    741 
     787#    PBDEP:
     788#
    742789# PBBDEP is replaced by the list of build dependencies
    743 #filter PBBDEP =
    744 
     790#    PBBDEP:
     791#
    745792# PBSUG is replaced by the list of suggestions
    746 #filter PBSUG =
    747 
     793#    PBSUG:
     794#
    748795# PBREC is replaced by the list of recommandations
    749 #filter PBREC =
    750 
     796#    PBREC:
    751797EOF
    752798            close(CONF);
    753             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.pbf";
     799            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-3.1.yml";
    754800            print CONF << "EOF";
     801---
    755802#
    756803# \$Id\$
     
    759806#
    760807# PBDEBSTD is replaced by the Debian standard version
    761 filter PBDEBSTD = 3.6.1
    762 
     808  filter:
     809    PBDEBSTD: 3.6.1
     810#
    763811# PBDEBCOMP is replaced by the Debian Compatibility value
    764 filter PBDEBCOMP = 4
    765 
     812    PBDEBCOMP: 4
    766813EOF
    767814            close(CONF);
    768             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.pbf";
     815            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-4.0.yml";
    769816            print CONF << "EOF";
     817---
    770818#
    771819# \$Id\$
     
    774822#
    775823# PBDEBSTD is replaced by the Debian standard version
    776 filter PBDEBSTD = 3.6.1
    777 
     824  filter:
     825    PBDEBSTD: 3.6.1
     826#
    778827# PBDEBCOMP is replaced by the Debian Compatibility value
    779 filter PBDEBCOMP = 5
    780 
     828    PBDEBCOMP: 5
    781829EOF
    782830            close(CONF);
    783             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.pbf";
     831            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-5.0.yml";
    784832            print CONF << "EOF";
     833---
    785834#
    786835# \$Id\$
     
    789838#
    790839# PBDEBSTD is replaced by the Debian standard version
    791 filter PBDEBSTD = 3.8.0
    792 
     840  filter:
     841    PBDEBSTD: 3.8.0
     842#
    793843# PBDEBCOMP is replaced by the Debian Compatibility value
    794 filter PBDEBCOMP = 7
    795 
     844    PBDEBCOMP: 7
    796845EOF
    797846            close(CONF);
    798             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.pbf";
     847            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian-6.0.yml";
    799848            print CONF << "EOF";
     849---
    800850#
    801851# \$Id\$
     
    804854#
    805855# PBDEBSTD is replaced by the Debian standard version
    806 filter PBDEBSTD = 3.8.0
    807 
     856  filter:
     857    PBDEBSTD: 3.8.0
     858#
    808859# PBDEBCOMP is replaced by the Debian Compatibility value
    809 filter PBDEBCOMP = 7
    810 
     860    PBDEBCOMP: 7
    811861EOF
    812862            close(CONF);
    813             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian.pbf";
     863            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/debian.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/debian.yml";
    814864            print CONF << "EOF";
     865---
    815866#
    816867# \$Id\$
     
    819870#
    820871# PBDEBSTD is replaced by the Debian standard version
    821 filter PBDEBSTD = 3.9.4
    822 
     872  filter:
     873    PBDEBSTD: 3.9.4
     874#
    823875# PBDEBCOMP is replaced by the Debian Compatibility value
    824 filter PBDEBCOMP = 9
    825 
     876    PBDEBCOMP: 9
    826877EOF
    827878            close(CONF);
    828             foreach my $ubv ("ubuntu-6.06.pbf","ubuntu-7.04.pbf","ubuntu-7.10.pbf") {
     879            foreach my $ubv ("ubuntu-6.06.yml","ubuntu-7.04.yml","ubuntu-7.10.yml") {
    829880                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv";
    830881                print CONF << "EOF";
     882---
    831883#
    832884# \$Id\$
     
    835887#
    836888# PBDEBSTD is replaced by the Debian standard version
    837 filter PBDEBSTD = 3.6.2
    838 
     889  filter:
     890    PBDEBSTD: 3.6.2
     891#
    839892# PBDEBCOMP is replaced by the Debian Compatibility value
    840 filter PBDEBCOMP = 4
    841 
     893    PBDEBCOMP: 4
    842894EOF
    843895                close(CONF);
    844896            }
    845             foreach my $ubv ("ubuntu-8.04.pbf","ubuntu-8.10.pbf") {
     897            foreach my $ubv ("ubuntu-8.04.yml","ubuntu-8.10.yml") {
    846898                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv";
    847899                print CONF << "EOF";
     900---
    848901#
    849902# \$Id\$
     
    852905#
    853906# PBDEBSTD is replaced by the Debian standard version
    854 filter PBDEBSTD = 3.7.3
    855 
     907  filter:
     908    PBDEBSTD: 3.7.3
     909#
    856910# PBDEBCOMP is replaced by the Debian Compatibility value
    857 filter PBDEBCOMP = 4
    858 
     911    PBDEBCOMP: 4
    859912EOF
    860913                close(CONF);
    861914            }
    862             foreach my $ubv ("ubuntu-9.04.pbf") {
     915            foreach my $ubv ("ubuntu-9.04.yml") {
    863916                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv";
    864917                print CONF << "EOF";
     918---
    865919#
    866920# \$Id\$
     
    869923#
    870924# PBDEBSTD is replaced by the Debian standard version
    871 filter PBDEBSTD = 3.8.0
    872 
     925  filter:
     926    PBDEBSTD: 3.8.0
     927#
    873928# PBDEBCOMP is replaced by the Debian Compatibility value
    874 filter PBDEBCOMP = 4
    875 
     929    PBDEBCOMP: 4
    876930EOF
    877931                close(CONF);
    878932            }
    879933            # 9.10+
    880             foreach my $ubv ("ubuntu.pbf") {
     934            foreach my $ubv ("ubuntu.yml") {
    881935                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/$ubv") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/$ubv";
    882936                print CONF << "EOF";
     937---
    883938#
    884939# \$Id\$
     
    887942#
    888943# PBDEBSTD is replaced by the Debian standard version
    889 filter PBDEBSTD = 3.8.3
    890 
     944  filter:
     945    PBDEBSTD: 3.8.3
     946#
    891947# PBDEBCOMP is replaced by the Debian Compatibility value
    892 filter PBDEBCOMP = 7
    893 
     948    PBDEBCOMP: 7
    894949EOF
    895950                close(CONF);
    896951            }
    897             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/md.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/md.pbf";
     952            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/md.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/md.yml";
    898953            print CONF << "EOF";
     954---
     955#
     956# \$Id\$
     957#
    899958# Specific group for Mandriva for $ENV{'PBPROJ'}
    900959# Cf: http://wiki.mandriva.com/en/Development/Packaging/Groups
    901 #filter PBGRP = Archiving/Backup
    902 
     960#  filter:
     961#    PBGRP: Archiving/Backup
     962#
    903963# PBLIC is replaced by the license of the application
    904964# Cf: http://wiki.mandriva.com/en/Development/Packaging/Licenses
    905 #filter PBLIC = GPL
    906 
     965#  filter:
     966#    PBLIC: GPL
    907967EOF
    908968            close(CONF);
    909             open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/novell.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/novell.pbf";
     969            open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/novell.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/novell.yml";
    910970            print CONF << "EOF";
     971---
     972#
     973# \$Id\$
     974#
    911975# Specific group for SuSE for $ENV{'PBPROJ'}
    912976# Cf: http://en.opensuse.org/SUSE_Package_Conventions/RPM_Groups
    913 #filter PBGRP = Productivity/Archiving/Backup
    914 
     977#  filter:
     978#    PBGRP: Productivity/Archiving/Backup
     979#
    915980# PBLIC is replaced by the license of the application
    916981# Cf: http://en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Style#1.6._License_Tag
    917 #filter PBLIC = GPL
    918 
     982#  filter:
     983#    PBLIC: GPL
    919984EOF
    920985            close(CONF);
     
    11951260EOF
    11961261                close(CONF);
    1197                 open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/pkg.pbf") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/pkg.pbf";
     1262                open(CONF,"> $ENV{'PBROOTDIR'}/pbfilter/pkg.yml") || die "Unable to create $ENV{'PBROOTDIR'}/pbfilter/pkg.yml";
    11981263                print CONF << "EOF";
    11991264#
  • devel/pb/bin/pb

    r2248 r2251  
    12891289        pb_mkdir_p($tmpd) if (defined $pbparallel);
    12901290
    1291         # Get only all.pbf filter at this stage for pbinit
     1291        # Get only all.yml filter at this stage for pbinit
    12921292        my $ptr = pb_get_filters($pbpkg);
    12931293
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r2139 r2251  
    5353This function gets all filters to apply. They're cumulative from the less specific to the most specific.
    5454
    55 Suffix of those filters is .pbf. Filter all.pbf applies to whatever distribution. The pbfilter directory may be global under pbconf or per package, for overloading values. Then in order filters are loaded for distribution type, distribution family, distribution name, distribution name-version.
     55Suffix of those filters is .yml. Filter all.yml applies to whatever distribution. The pbfilter directory may be global under pbconf or per package, for overloading values. Then in order filters are loaded for distribution type, distribution family, distribution name, distribution name-version.
    5656
    5757The first parameter is the package name.
     
    7878foreach my $dir ("$ENV{PBROOTDIR}/pbfilter", "$ENV{PBROOTDIR}/$pbpkg/pbfilter") {
    7979    foreach my $file_basename (@file_basenames) {
    80         my $path = "$dir/${file_basename}.pbf";
     80        my $path = "$dir/${file_basename}.yml";
    8181        push(@ffiles, $path) if -f $path;
    8282    }
  • devel/pbtest/bin/pbtest

    r2214 r2251  
    208208sudopbtest "PBVCSOPT=\"$VCSOPT\" pb -p $PBPROJ -r 2.5 newproj afio"
    209209
    210 grep -vE '^defpkgdir|^projver|^projtag|^pburl|^pbrepo|^shh' $PBTEST/pb/afio/pbconf/2.5/afio.pb > /tmp/afio.pb
    211 cat >> /tmp/afio.pb << EOF
    212 defpkgdir afio = dummy
    213 projver afio = 2.5
    214 projtag afio = 1
    215 pburl afio = ftp://ftp.project-builder.org/src/afio-2.5.tar.gz
    216 pbrepo afio = ftp://ftp.project-builder.org
    217 sshhost afio = localhost
    218 sshlogin afio = $PBUSER
    219 sshdir afio = \$ENV{'HOME'}/ftp
    220 EOF
    221 sudocmd "mv /tmp/afio.pb $PBTEST/pb/afio/pbconf/2.5/afio.pb"
    222 sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/afio.pb"
     210grep -vE '^defpkgdir|^projver|^projtag|^pburl|^pbrepo|^shh' $PBTEST/pb/afio/pbconf/2.5/afio.yml > /tmp/afio.yml
     211cat >> /tmp/afio.yml << EOF
     212  defpkgdir:
     213    afio : dummy
     214  projver:
     215    afio : 2.5
     216  projtag:
     217    afio : 1
     218  pburl:
     219    afio : ftp://ftp.project-builder.org/src/afio-2.5.tar.gz
     220  pbrepo:
     221    afio : ftp://ftp.project-builder.org
     222  sshhost:
     223    afio : localhost
     224  sshlogin:
     225    afio : $PBUSER
     226  sshdir:
     227    afio : \$ENV{'HOME'}/ftp
     228EOF
     229sudocmd "mv /tmp/afio.yml $PBTEST/pb/afio/pbconf/2.5/afio.yml"
     230sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/afio.yml"
    223231cat > /tmp/pbtestcmd << EOF
    224 perl -pi -e 's|testver\s+afio\s+=\s+true|testver\ afio\ =\ false|' $PBTEST/pb/afio/pbconf/2.5/afio.pb
     232perl -pi -e 's|testver\s+afio\s+=\s+true|testver\ afio\ =\ false|' $PBTEST/pb/afio/pbconf/2.5/afio.yml
    225233EOF
    226234chmod 755 /tmp/pbtestcmd
    227235sudopbtest /tmp/pbtestcmd
    228236
    229 grep -vE 'PBSRC|PBDESC|PBSUMMARY|PBURL|PBLOG' $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.pbf > /tmp/all.pbf
    230 cat >> /tmp/all.pbf << EOF
    231 filter PBSRC = src/%{name}-%{version}.tar.gz
    232 filter PBDESC = afio is a cpio compatible archiver with extended features$/It can compress on a file by file basis.
    233 filter PBSUMMARY = afio is a cpio compatible archiver with extended features
    234 filter PBURL = http://www.boutell.com/lsm/lsmbyid.cgi/000462
    235 filter PBLOG = no
    236 EOF
    237 sudocmd "mv /tmp/all.pbf $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.pbf"
    238 sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.pbf"
    239 
    240 grep -vE 'PBGRP|PBLIC' $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.pbf > /tmp/rpm.pbf
    241 cat >> /tmp/rpm.pbf << EOF
    242 filter PBGRP = Applications/Archiving
    243 filter PBLIC = Afio
    244 filter PBBDEP = gcc
    245 EOF
    246 sudocmd "mv /tmp/rpm.pbf $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.pbf"
    247 sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.pbf "
    248 
    249 cat > /tmp/deb.pbf << EOF
    250 filter PBGRP = utils
    251 filter PBLIC = Afio
    252 filter PBBDEP = gcc
    253 EOF
    254 sudocmd "mv /tmp/deb.pbf $PBTEST/pb/afio/pbconf/2.5/pbfilter/deb.pbf"
    255 sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/deb.pbf "
     237grep -vE 'PBSRC|PBDESC|PBSUMMARY|PBURL|PBLOG' $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.yml > /tmp/all.yml
     238cat >> /tmp/all.yml << EOF
     239  filter:
     240    PBSRC : src/%{name}-%{version}.tar.gz
     241    PBDESC : afio is a cpio compatible archiver with extended features$/It can compress on a file by file basis.
     242    PBSUMMARY : afio is a cpio compatible archiver with extended features
     243    PBURL : http://www.boutell.com/lsm/lsmbyid.cgi/000462
     244    PBLOG : no
     245EOF
     246sudocmd "mv /tmp/all.yml $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.yml"
     247sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/all.yml"
     248
     249grep -vE 'PBGRP|PBLIC' $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.yml > /tmp/rpm.yml
     250cat >> /tmp/rpm.yml << EOF
     251  filter:
     252    PBGRP : Applications/Archiving
     253    PBLIC : Afio
     254    PBBDEP : gcc
     255EOF
     256sudocmd "mv /tmp/rpm.yml $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.yml"
     257sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/rpm.yml "
     258
     259cat > /tmp/deb.yml << EOF
     260  filter:
     261    PBGRP : utils
     262    PBLIC : Afio
     263    PBBDEP : gcc
     264EOF
     265sudocmd "mv /tmp/deb.yml $PBTEST/pb/afio/pbconf/2.5/pbfilter/deb.yml"
     266sudocmd "chown ${PBUSER}:$PBUSER $PBTEST/pb/afio/pbconf/2.5/pbfilter/deb.yml "
    256267
    257268# First build
Note: See TracChangeset for help on using the changeset viewer.