[opensuse-packaging] New packaging guidelines for PHP7 pacakges

Dear all! With request https://build.opensuse.org/request/show/519119 I propose to enhance and simplify the PHP7 packaging process. I have written the following comment to the request which can be commented there. You can also respond to that E-Mail. Please let me know what you think about it. As there are many PHP7 packages to be prepared and several requests are already waiting we should process quickly. I think we should not simply rename the old packages as most of them are completely outdated versions and packaged very complicated! *** This request improves compatibility to Fedora and simplifies packaging a lot. What is contained in the request? * php7-macros and php5-macros contains new packaging macros which makes packaging more simple, Have a look at the macros.php. I will check that those macros will be included in php5 and php7 packages in the future, but until that's done the macros can must be included in the spec files. Currently "BuildRequires: %{php_name}-macros" is required, but this can be moved to the "%if 0%{?suse_version} < 1320" as soon as PHP7 has been updated in factory Current openSUSE Versions require "BuildRequires: %{php_name}-pear-Archive_Tar" to be included. I have already submitted a fix to factory so new versions will no longer need that I highly vote for removing all those lower-case Provides/Obsoletes; let's just use the original package's name! For the future we should create virtual provides using the upstream names: Provides: php-pear(Auth_SASL) = %{version} Related to this, the old php-macros project can be deleted. Therefor I have created https://build.opensuse.org/request/show/519123 I have attached an working example in: php7-pear-Auth_SASL If you have no objections, I'd accept the changes to server:php:applications and prepare a request for future inclusion of the macros into factory and update the wiki pages. *** -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On mercredi, 30 août 2017 15.22:07 h CEST Johannes Weberhofer wrote:
Dear all!
With request https://build.opensuse.org/request/show/519119 I propose to enhance and simplify the PHP7 packaging process. I have written the following comment to the request which can be commented there. You can also respond to that E-Mail. Please let me know what you think about it.
As there are many PHP7 packages to be prepared and several requests are already waiting we should process quickly. I think we should not simply rename the old packages as most of them are completely outdated versions and packaged very complicated!
This is really awesome, thanks for the work done. Making packaging fun again is a nice way of life ;-) -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Hello, Am Mittwoch, 30. August 2017, 15:22:07 CEST schrieb Johannes Weberhofer:
I will check that those macros will be included in php5 and php7 packages in the future, but until that's done the macros can must be included in the spec files. Currently "BuildRequires: %{php_name}-macros" is required, but this can be moved to the "%if 0%{?suse_version} < 1320" as soon as PHP7 has been updated in factory
This should probably be <= 1320 (unless you want to exclude 13.2, which sounds unlikely) Besides that, your proposal looks good :-) Regards, Christian Boltz -- *hrhr* Ich hab die Tage mal statt nen Gruselfilm zu gucken das Win8 Betadings runtergeladen und in ner VM installiert ... *schauder* :D [David Haller in opensuse-de] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

Am 30.08.17 um 22:01 schrieb Christian Boltz:
This should probably be <= 1320 (unless you want to exclude 13.2, which sounds unlikely)
Besides that, your proposal looks good:-)
Thanks for you response! Leap seems to be 1330 at the moment; I'll update this. -- Johannes Weberhofer Weberhofer GmbH, Austria, Vienna -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org

On Wed, 2017-08-30 at 15:22 +0200, Johannes Weberhofer wrote:
Dear all!
I will check that those macros will be included in php5 and php7 packages in the future, but until that's done the macros can must be included in the spec files. Currently "BuildRequires: %{php_name}- macros" is required, but this can be moved to the "%if 0%{?suse_version} < 1320" as soon as PHP7 has been updated in factory
php5 is scheduled for removal from openSUSE:Factory - so adding new macros there seems like a waste of your time. Focus on PHP7 'only' Cheers, Dominique

Am 31.08.2017 um 13:15 schrieb Dominique Leuenberger / DimStar:
php5 is scheduled for removal from openSUSE:Factory - so adding new macros there seems like a waste of your time. Focus on PHP7 'only'
I know, and it was only intended to be there as a proof of concept. Maybe some maintainers in the devel project want to use it as long as PHP5 exists... -- Johannes Weberhofer -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Bruno Friedmann
-
Christian Boltz
-
Dominique Leuenberger / DimStar
-
Johannes Weberhofer