diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-01-24 10:11:36 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-01-24 10:11:36 +0100 |
commit | 94f9e98c1b33a13bca06b79cf7af0a635eaf15e2 (patch) | |
tree | 4d8139b9a7fb8b7deea2d248a8142f849bdbb8a4 | |
parent | 2435882714bfcb03958e2a601cae4b7267a936cd (diff) |
php-react-cache: import from Fedora
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-evenement.spec | 28 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/php-evenement.spec b/php-evenement.spec index 9b686eb..10abc6c 100644 --- a/php-evenement.spec +++ b/php-evenement.spec @@ -1,3 +1,12 @@ +# remirepo spec file for php-evenement, from: +# +# Fedora spec file for php-evenement +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# Name: php-evenement Version: 2.0.0 Release: 3%{?dist} @@ -63,16 +72,35 @@ require_once '%{buildroot}%{_datadir}/php/Evenement/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('Evenement\\Tests\\', __DIR__.'/tests/Evenement/Tests'); AUTOLOAD +# remirepo:11 +run=0 +ret=0 +if which php56; then + php56 %{_bindir}/phpunit --bootstrap autoload.php || ret=1 + run=1 +fi +if which php71; then + php71 %{_bindir}/phpunit --bootstrap autoload.php || ret=1 + run=1 +fi +if [ $run -eq 0 ]; then phpunit --bootstrap autoload.php +# remirepo:2 +fi +exit $ret %files +%{!?_licensedir:%global license %%doc} %license LICENSE %doc CHANGELOG.md composer.json README.md %{_datadir}/php/Evenement %changelog +* Tue Jan 24 2017 Remi Collet <remi@remirepo.net> - 2.0.0-3 +- backport for remi repo + * Tue Jan 24 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.0.0-3 - Update the patch to work for PHP 5 and PHP 7. |