Bug 916405 (php-Assetic) - Review Request: php-Assetic - Asset Management for PHP
Summary: Review Request: php-Assetic - Asset Management for PHP
Keywords:
Status: CLOSED ERRATA
Alias: php-Assetic
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-28 01:52 UTC by Shawn Iwinski
Modified: 2013-04-01 19:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-22 00:48:24 UTC
Type: ---
Embargoed:
fedora: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
phpci.log (29.37 KB, text/x-log)
2013-03-09 08:18 UTC, Remi Collet
no flags Details
916405-php-Assetic-review.txt (7.02 KB, text/plain)
2013-03-09 08:19 UTC, Remi Collet
no flags Details

Description Shawn Iwinski 2013-02-28 01:52:21 UTC
Spec URL: http://siwinski.fedorapeople.org/rpmbuild/SPECS/php-Assetic.spec

SRPM URL: http://siwinski.fedorapeople.org/rpmbuild/SRPMS/php-Assetic-1.1.0-0.1.alpha3.fc18.src.rpm

Description:
Assetic is an asset management framework for PHP.


Fedora Account System Username: siwinski

Comment 1 Shawn Iwinski 2013-02-28 01:55:22 UTC
I know "%{_datadir}/php" is only supposed to contain classes, but how should we handle this package's 'functions.php' file?

Comment 2 Remi Collet 2013-02-28 05:57:04 UTC
I don't see any reason why we couldn't add "functions" files in /usr/share/php.

This make sense to have this in the include path.

Mostly, we don't want to see doc, or test (file which don't need to be in the include path) in this dir.

So this package seems ok (for layout).

AFAIK, you cannot use 2 requires on the same dependency (rpm/yum limit)
So, instead of
   Requires: foo >= x
   Requires: foo <  y
You have to used
   Requires:  foo >= x
   Conflicts: foo >= y

Comment 3 Shawn Iwinski 2013-03-06 00:58:24 UTC
(In reply to comment #2)
> I don't see any reason why we couldn't add "functions" files in
> /usr/share/php.
> 
> This make sense to have this in the include path.
> 
> Mostly, we don't want to see doc, or test (file which don't need to be in
> the include path) in this dir.
> 
> So this package seems ok (for layout).

OK. Thanks.


> AFAIK, you cannot use 2 requires on the same dependency (rpm/yum limit)
> So, instead of
>    Requires: foo >= x
>    Requires: foo <  y
> You have to used
>    Requires:  foo >= x
>    Conflicts: foo >= y

I have not seen any issues with 2 requires on the same dependency on my Fedora 18 or RHEL 6 machines with either rpm or yum.  I cannot find any supporting documentation though.

This may also help with repoquery queries.

Mind if I ping the devel list?

Comment 4 Remi Collet 2013-03-07 15:27:28 UTC
From my recent tests, you're right, it seems to work.
Probably a very old bug which is fix now...

>Mind if I ping the devel list?
Of course, you can.

Comment 5 Remi Collet 2013-03-09 08:18:22 UTC
Created attachment 707336 [details]
phpci.log

phpci version 2.13.2.

Comment 6 Remi Collet 2013-03-09 08:19:17 UTC
Created attachment 707345 [details]
916405-php-Assetic-review.txt

Generated by fedora-review 0.4.0 (660ce56) last change: 2013-01-29
Buildroot used: fedora-rawhide-x86_64
Command line :/usr/bin/fedora-review -b 916405

Comment 7 Remi Collet 2013-03-09 08:20:37 UTC
No blocker, but

[!]: Latest version is packaged.
	1.0.4 is tagged.

Why do you take a github snapshot, when upstream properly tag each release and provides a tarball ?

From guidelines https://fedoraproject.org/wiki/Packaging:SourceURL#Github
	"If the upstream does create tarballs you should use them as tarballs
	provide an easier trail for people auditing the packages."

Ex : https://github.com/kriswallsmith/assetic/archive/v1.1.0-alpha4.tar.gz

[!]: Requires correct, justified where necessary.
	Where do you find info about the twig / symfony min / max version ?

Comment 8 Shawn Iwinski 2013-03-09 16:31:16 UTC
Spec changes: https://github.com/siwinski/rpms/commit/51dc9bc48668a4482d16b49e300c34cd2ecc99b8


SPEC URL: http://siwinski.fedorapeople.org/rpmbuild/SPECS/php-Assetic.spec

SRPM URL: http://siwinski.fedorapeople.org/rpmbuild/SRPMS/php-Assetic-1.1.0-0.2.alpha4.fc18.src.rpm



(In reply to comment #7)
> No blocker, but
> 
> [!]: Latest version is packaged.
> 	1.0.4 is tagged.

Drupal 8 (future package I am working on) requires version 1.1.*.  I just updated the package from v1.1.0-alpha3 to v1.1.0-alpha4.


> Why do you take a github snapshot, when upstream properly tag each release
> and provides a tarball ?
> 
> From guidelines https://fedoraproject.org/wiki/Packaging:SourceURL#Github
> 	"If the upstream does create tarballs you should use them as tarballs
> 	provide an easier trail for people auditing the packages."
> 
> Ex : https://github.com/kriswallsmith/assetic/archive/v1.1.0-alpha4.tar.gz

From the same guidelines:
"For a number of reasons (immutability, availability, uniqueness), you must use the full commit revision hash when referring to the sources.

The full 40-character hash can be copied from the github web interface at ​https://github.com/$OWNER/$PROJECT/tags or by cloning the repository and using git rev-parse $TAG"

I read that as we must use the full commit hash for sources rather than the tag.


> [!]: Requires correct, justified where necessary.
> 	Where do you find info about the twig / symfony min / max version ?

From the composer.json file -- https://github.com/kriswallsmith/assetic/blob/v1.1.0-alpha4/composer.json

"symfony/process": ">=2.1.0,<2.3-dev"
"twig/twig": ">=1.6.0,<2.0"

Comment 9 Remi Collet 2013-03-10 06:58:25 UTC
Well... this Guidelines is a bit ambiguous.

As far as the version / release are correct, and Source0 available (one way or another), I don't see ant blockers.

=== APPROVED ===

Comment 10 Shawn Iwinski 2013-03-10 17:49:07 UTC
THANKS for the review!


New Package SCM Request
=======================
Package Name: php-Assetic
Short Description: Asset Management for PHP
Owners: siwinski
Branches: f18 el6
InitialCC:

Comment 11 Gwyn Ciesla 2013-03-11 12:22:18 UTC
Git done (by process-git-requests).

Comment 12 Fedora Update System 2013-03-11 13:44:27 UTC
php-Assetic-1.1.0-0.2.alpha4.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/php-Assetic-1.1.0-0.2.alpha4.el6

Comment 13 Fedora Update System 2013-03-11 13:44:38 UTC
php-Assetic-1.1.0-0.2.alpha4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/php-Assetic-1.1.0-0.2.alpha4.fc18

Comment 14 Fedora Update System 2013-03-11 19:33:36 UTC
php-Assetic-1.1.0-0.2.alpha4.el6 has been pushed to the Fedora EPEL 6 testing repository.

Comment 15 Fedora Update System 2013-03-22 00:48:27 UTC
php-Assetic-1.1.0-0.2.alpha4.fc18 has been pushed to the Fedora 18 stable repository.

Comment 16 Fedora Update System 2013-04-01 19:21:02 UTC
php-Assetic-1.1.0-0.2.alpha4.el6 has been pushed to the Fedora EPEL 6 stable repository.


Note You need to log in before you can comment on or make changes to this bug.