[Bug 2247205] Review Request: php-smarty-gettext - Gettext support for Smarty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2247205

Remi Collet <fedora@xxxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Doc Type|---                         |If docs needed, set a value
                 CC|                            |fedora@xxxxxxxxxxxxxxxxx



--- Comment #2 from Remi Collet <fedora@xxxxxxxxxxxxxxxxx> ---
Comments (not yet a review)

Have you tried to run the upstream test suite?

OK PHPUnit 4 is terribly old, and removed from Fedora... but a small patch
should allow it to run with a higher version

I was able to run it using PHPUnit 9 (using PHP 7.4, 8.0, 8.1, 8.2 and 8.3)
with a simple 
-       public static function setUpBeforeClass(){
+       public static function setUpBeforeClass():void{

You also need to have BuildRequires: langpacks-pl langpacks-et langpacks-en

Will be nice to provide an autoloader, for app using this library
a simple "require" of the 2 files
especially as more files may appear in the future

Perhaps /usr/share/php/Smarty/plugins/gettext-autoload.php ?

But, what will happen if multiple plugins are packaged/installed?

Perhaps a better layout may be

  /usr/share/php/Smarty/plugins/
  /usr/share/php/Smarty/plugins/gettext
  /usr/share/php/Smarty/plugins/gettext/autoload.php
  /usr/share/php/Smarty/plugins/gettext/block.t.php
  /usr/share/php/Smarty/plugins/gettext/function.locale.php


Spec has:
  Requires:      php-Smarty

As composer.json has
  "smarty/smarty": "3.1.*"

So this should be 
  Requires: (php-composer(smarty/smarty) >= 3.1 with
php-composer(smarty/smarty) < 4)

Composer.json has
  "license": "LGPL-2.1",
Spec has
  License:       LGPL-2.1-or-later
README.md has
  "either version 2.1 of the License, or (at your option) any later version."
According to the readme file, you're right, so needs to be reported upstream to
fix the SPDX ID in composer.json

Spec has:
    Requires:      php-pcre

pcre extension is not required by packaged files (only by tsmarty2c.php which
is not installed)


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2247205

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202247205%23c2
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux