Bug 1047111 (php-doctrine-orm) - Review Request: php-doctrine-orm - Doctrine Object-Relational-Mapper (ORM)
Summary: Review Request: php-doctrine-orm - Doctrine Object-Relational-Mapper (ORM)
Keywords:
Status: CLOSED RAWHIDE
Alias: php-doctrine-orm
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: php-doctrine-collections php-doctrine-dbal
Blocks: php-doctrine-datafixtures
TreeView+ depends on / blocked
 
Reported: 2013-12-29 06:23 UTC by Shawn Iwinski
Modified: 2014-01-06 20:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-06 20:46:11 UTC
Type: ---
Embargoed:
fedora: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
php-doctrine-DoctrineORM.repoquery.txt (2.03 KB, text/plain)
2013-12-29 06:26 UTC, Shawn Iwinski
no flags Details
phpci.log (62.17 KB, text/plain)
2014-01-04 08:43 UTC, Remi Collet
no flags Details
phpci.log (87.07 KB, text/plain)
2014-01-04 08:44 UTC, Remi Collet
no flags Details
review.txt (8.22 KB, text/plain)
2014-01-04 08:44 UTC, Remi Collet
no flags Details

Description Shawn Iwinski 2013-12-29 06:23:32 UTC
Spec URL: https://raw.github.com/siwinski/rpms/1ec41e8e5728d432aacacd7eabbf75dcede2c271/php-doctrine-orm.spec

SRPM URL: http://siwinski.fedorapeople.org/SRPMS/php-doctrine-orm-2.4.1-1.fc20.src.rpm

Description:
Object relational mapper (ORM) for PHP that sits on top of a powerful database
abstraction layer (DBAL). One of its' key features is the option to write
database queries in a proprietary object oriented SQL dialect called Doctrine
Query Language (DQL), inspired by Hibernate's HQL. This provides developers
with a powerful alternative to SQL that maintains flexibility without requiring
unnecessary code duplication.


Fedora Account System Username: siwinski

*** NOTE: Rename/repackage because upstream dropped PEAR packaging as of version 2.4.0

Comment 1 Shawn Iwinski 2013-12-29 06:26:45 UTC
Created attachment 842931 [details]
php-doctrine-DoctrineORM.repoquery.txt

repoquery of pkgs requiring php-doctrine-DoctrineORM

Comment 2 Remi Collet 2014-01-04 08:43:35 UTC
Created attachment 845255 [details]
phpci.log

phpcompatinfo version 2.26.0.

Comment 3 Remi Collet 2014-01-04 08:44:22 UTC
Created attachment 845256 [details]
phpci.log

phpcompatinfo version 2.26.0.

Comment 4 Remi Collet 2014-01-04 08:44:57 UTC
Created attachment 845257 [details]
review.txt

Generated by fedora-review 0.5.0 (920221d) last change: 2013-08-30
Command line :/usr/bin/fedora-review -b 1047111

Comment 5 Remi Collet 2014-01-04 08:49:36 UTC
[!] Package installs properly.
  Ok, with all the new doctrine stack

[!]: Requires correct, justified where necessary.
  From composer.json
        "symfony/console": "~2.0"
        "symfony/yaml": "~2.1",
  So you can't use %{symfony_min_ver} for both

[!]: Dist tag is present (not strictly required in GL).

Cosmetic:
  => sed xxx foo > bar (instead of cat)
  => install -pm 755 ...


Please review %description to match changes in php-doctrine-cache (no sub-packages)

About /usr/bin/doctrine.

Instead of creating a PSR-0 autoloader, I think it will be cleaner to use Doctrine one (as in the doctrine-dbal command).

   require_once '/usr/share/php/Doctrine/Common/ClassLoader.php';
   $classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
   $classLoader->register();
   $classLoader = new \Doctrine\Common\ClassLoader('Symfony');
   $classLoader->register();


First test for upgrade path seems ok :)

Comment 6 Shawn Iwinski 2014-01-05 05:20:13 UTC
(In reply to Remi Collet from comment #5)
> [!]: Requires correct, justified where necessary.
>   From composer.json
>         "symfony/console": "~2.0"
>         "symfony/yaml": "~2.1",
>   So you can't use %{symfony_min_ver} for both

All Symfony components require each other's version so they should all be in-sync version-wise and it simplifies this spec to just take the ceiling of the minimum version.

> [!]: Dist tag is present (not strictly required in GL).

Fixed

> Cosmetic:
>   => sed xxx foo > bar (instead of cat)
>   => install -pm 755 ...

Updated

> Please review %description to match changes in php-doctrine-cache (no
> sub-packages)

Updated

> About /usr/bin/doctrine.
> 
> Instead of creating a PSR-0 autoloader, I think it will be cleaner to use
> Doctrine one (as in the doctrine-dbal command).
> 
>    require_once '/usr/share/php/Doctrine/Common/ClassLoader.php';
>    $classLoader = new \Doctrine\Common\ClassLoader('Doctrine');
>    $classLoader->register();
>    $classLoader = new \Doctrine\Common\ClassLoader('Symfony');
>    $classLoader->register();

Updated.  Much nicer.  THANKS!



Updates:
- Conditional %%{?dist}
- Bin script patch instead of inline update and use Doctrine Common classloader
- Updated optional cache information in %%description
- Removed empty file
- Removed unnecessary executable bit

Diff: https://github.com/siwinski/rpms/compare/9872cb2f77b8146ae4709ca1fd7f7e83c500910f...66d248d6ca984af2e696a993adcaef0d1efc81c6



Spec URL: https://raw.github.com/siwinski/rpms/66d248d6ca984af2e696a993adcaef0d1efc81c6/php-doctrine-orm.spec

SRPM URL: http://siwinski.fedorapeople.org/SRPMS/php-doctrine-orm-2.4.1-2.fc20.src.rpm

Comment 7 Remi Collet 2014-01-05 06:22:32 UTC
(In reply to Shawn Iwinski from comment #6)

> All Symfony components require each other's version so they should all be
> in-sync version-wise and it simplifies this spec to just take the ceiling of
> the minimum version.

Yes, I forget how this upstream is unable to properly manage their release.

[x]: Requires correct, justified where necessary.

[x]: Dist tag is present (not strictly required in GL).

/usr/bin/doctrine is ok.

[x] Package installs properly.
all the stack is now approved, so OK.


I think you can probably import the new packages in rawhide to allow everyone to test them (announce on devel@).

Remember to remove the old packages "only" in rawhide.

For other branches a longer "testing" period will be useful to allow more test and avoid late discovered issue (we have learn from symfony). Especially in EPEL.


== APPROVED ==

Comment 8 Shawn Iwinski 2014-01-06 04:43:24 UTC
THANKS for the review!


New Package SCM Request
=======================
Package Name: php-doctrine-orm
Short Description: Doctrine Object-Relational-Mapper (ORM)
Owners: siwinski
Branches: f19 f20 el6
InitialCC:

Comment 9 Gwyn Ciesla 2014-01-06 13:41:08 UTC
Git done (by process-git-requests).


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