[Guidelines Change] PHP Changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes were made to http://fedoraproject.org/wiki/Packaging/PHP

===========================

The php-common package In Fedora Core 6 and above (version 5.1.6-3.4)
uses new virtual provides to ensure ABI compatility, and usefull macros
to test for it (ref.: /etc/rpm/macros.php in php-devel.)

The new versions provide:
 * php(api): PHP Api Version
 * php(zend-abi) : Zend Module Api No

Older versions only provide:
 * php-api : PHP Api Version

Therefore the guidelines for the PECL Requires section were updated to
include the following information:

{{{
%if %{?php_zend_api}0
Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
%else
Requires:     php-api = %{php_apiver}
%endif

Provides:     php-pecl(foo)
}}}

This will ensure ABI compatiblity while also maintaining backwards
compatibility with older versions of php.  After FC-6 is deprecated,
maintaining backwards compatiblity should no longer be required in the
guidelines.  The PEAR section just above the PECL section was also
reformatted so that it is contained within wiki code blocks for
consistency.

===========================

The Macros and Scriptlets section of the PHP guidelines now has a
versioned BuildRequires of:

BuildRequires:  php-pear >= 1:1.4.9-1.2

The reason for this is because the macros are only defined after this
version. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=227190
Bug #227190 for an example of how the current guidelines are confusing.

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux