PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Command_Packaging

Source Location: /PEAR_Command_Packaging-0.3.0/PEAR/Command/Packaging.php

Class Overview

PEAR_Command_Common
   |
   --PEAR_Command_Packaging

PEAR commands for RPM management


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2006 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 43]
PEAR commands for RPM management


[ Top ]


Class Variables

$commands = array(

        'make-rpm-spec' => array(
            'summary' => 'Builds an RPM spec file from a PEAR package or channel XML file',
            'function' => 'doMakeRPM',
            'shortcut' => 'rpm',
            'options' => array(
                'spec-template' => array(
                    'shortopt' => 't',
                    'arg' => 'FILE',
                    'doc' => 'Use FILE as RPM spec file template'
                    ),'rpm-release'=>array('shortopt'=>'r','arg'=>'RELEASE','doc'=>'RPM release version. Defaults to "1".'),'rpm-pkgname'=>array('shortopt'=>'p','arg'=>'FORMAT','doc'=>'Use FORMAT as format string for RPM package name. Substitutions
are as follows:
%s = PEAR package name
%l = PEAR package name (lowercased)
%S = PEAR package name (with underscores replaced with hyphens)
%C = Channel alias
%c = Channel alias, lowercased
%n = Channel name (full) e.g. pear.example.com
%N = Non standard channel name followed by a "/" (e.g. "pear.example.com/")

Defaults to "%C::%s" for library/application packages and "php-channel-%c" for 
channel packages.',),'rpm-depname'=>array('shortopt'=>'d','arg'=>'FORMAT','doc'=>'Use FORMAT as format string for naming RPM dependencies. Substitutions
are as for the --rpm-pkgname option. Defaults to be the same as
the format defined by the --rpm-pkgname option.',),),'doc'=>'<package-file>

Creates an RPM .spec file for wrapping a PEAR package or channel definition 
inside an RPM package.  Intended to be used from the SPECS directory, with the 
PEAR package tarball in the SOURCES directory:

$ cd /path/to/rpm-build-tree/SPECS
$ pear make-rpm-spec ../SOURCES/Net_Socket-1.0.tgz
Wrote RPM spec file PEAR::Net_Socket-1.0.spec
$ rpm -bb PEAR::Net_Socket-1.0.spec
...
Wrote: /path/to/rpm-build-tree/RPMS/noarch/PEAR::Net_Socket-1.0-1.noarch.rpm
',),)

[line 45]


Type:   mixed


[ Top ]

$output =

[line 102]


Type:   mixed


[ Top ]



Method Detail

PEAR_Command_Packaging (Constructor)   [line 267]

PEAR_Command_Packaging PEAR_Command_Packaging( $ui, $config)

PEAR_Command_Packaging constructor.
  • Access: public

Parameters:

   $ui   — 
   $config   — 

[ Top ]

doMakeRPM   [line 315]

void doMakeRPM( $command, $options, $params)

The make-rpm-spec command - create an RPM spec file from package source
  • Uses: _doMakeRPMFromPackage() - for package sources
  • Uses: _doMakeRPMFromChannel() - for channel sources

Parameters:

   $command   — 
   $options   — 
   $params   — 

[ Top ]

getInstaller   [line 293]

void getInstaller( $ui)

Abstraction for unit testing purposes

Parameters:

   $ui   — 

[ Top ]

getPackageFile   [line 275]

void getPackageFile( $config, [ $debug = false], [ $tmpdir = null])

Get a PEAR_PackageFile object based on the provided config options

Parameters:

   $config   — 
   $debug   — 
   $tmpdir   — 

[ Top ]

makeTempDir   [line 305]

void makeTempDir( )

Abstraction for unit testing purposes

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.