[Fedora-php-devel-list] packaging with composer

Remi Collet Fedora at FamilleCollet.com
Tue Jul 15 16:20:40 UTC 2014


Le 14/07/2014 22:17, Igor Gnatenko a écrit :
> Hi,
> 
> I want to update some packages. Sometimes ago it's used pear, now
> composer.
> 
> Because packager of swiftmailer is non-responsive I've tried update
> myself, but can't find documentation. Can you fix this bugs or let me
> know howto?
> 
> [0]https://bugzilla.redhat.com/show_bug.cgi?id=1119446
> [1]https://bugzilla.redhat.com/show_bug.cgi?id=1119451
> 

As discussed on IRC (and here for memory)

We don't use composer in Fedora.

So composer libraries are installed like any other libraries, new
Guildelines is just about dependencies (simpler to use packagist
registered name than package name which is sometime not obvious).

Composer.json provides lot of useful information.

So move from PEAR to Composer, is mostly a move of source from pear to
git(hub) and scripts from /usr/share/pear to /usrs/share/php

Example: see various spec file of packages already switched (doctrine,
symfony, phpunit, ...)

Notice:
- check dependent packages
- check autoloader stuff (often provided in pear, but not in git(hub),
as composer provides an autoloader. Need to be provided for
compatibility if some dependent packages uses it.

Remi.


> 
> 
> _______________________________________________
> php-devel mailing list
> php-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/php-devel
> 



More information about the php-devel mailing list