From Fedora Project Wiki

< PackagingDrafts

Revision as of 14:13, 24 May 2008 by fp-wiki>ImportUser (Imported from MoinMoin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[[TableOfContents(3)]

Proposed Changes to PHP Guidelines

Synopsis

This page describes items that need to be changed in the PHP Guidelines or other items that need to be reviewed or ratified by the Fedora Packaging Comittee and FESCo .

PHP Guidelines Changes

Packages with Channels

TODO: A new section needs to be added to the guidelines to explain how to package a PEAR package which uses a non-standard channel.

All packages are defined in a channel (extension repository)

2 channels are defined on installation of php-pear

  • pear.php.net (alias pear) : the default channel
  • __uri : Pseudo-channel for static packages

Other channels must be installed at RPM build time and at at RPM installation time.

For non default channel extension, pear command requires the channel, so %postun scriplet must specify it

if [ "$1" -eq "0" ] ; then
%{_bindir}/pear uninstall --nodeps --ignore-errors --register-only Foo_Channel/Foo_Bar >/dev/null ||:
fi


TODO:

  • How to package a channel (to be able to BuildRequires and Requires it), see php-channel-phpunit (devel) as a working sample.
  • should virtual provide use channel (ex : Provides: php-pear(ChannelName/PackageName) = %{version})


Packages with Optional Requires

TODO: Some PEAR packages such as Auth have many other PEAR packages that are optional Requires. We need to discuss how to handle splitting up large packages such as this.

Other Items

No additional items required.