I'm a bit lost...
From what I can read, it's not possible to package a php app in centos 5 so that it may be installed with either php or php53, is it ?
So should I provide 2 packages: myapp and myapp-php53 ?

My app also needs json.
The official centos php53-common package "provides" php-pecl-json (1.2.1), but php-common does not.
So, and since I can't use EPEL, I need to provide my own php-pecl-json package, with version 1.2.1, and a dependency on php < 5.2.
And to make myapp depend on php-pecl-json.
Then, when I try to yum install myapp (not myapp-php53), it tries to install php53-common, because it is a valid provider of php-pecl-json.
And as it also tries to install other php (5.1) dependencies, it crashes because of the conflict between php-common and php53-common.

So what is the correct way to make myapp (not myapp-php53) depend on php-pecl-json, and not on php53-pecl-json ?

Thanks,


On Thu, Sep 6, 2012 at 3:32 PM, Michael Schwendt <mschwendt@gmail.com> wrote:
On Thu, 6 Sep 2012 13:49:23 +0200, indent man wrote:

> I should have said that I'm also packaging the php/php53 foo/bar
> dependencies.
> So maybe I just forgot some "Conflicts" tags (my bad).
> Taking a look at it...

Adding them won't solve your problem, however, and may even be
wrong for parallel-installable packages.
Also notice: http://fedoraproject.org/wiki/Packaging:Conflicts

--
Fedora release 17 (Beefy Miracle) - Linux 3.5.3-1.fc17.x86_64
loadavg: 0.15 0.28 0.31