diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-09-15 16:44:32 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-09-15 16:44:32 +0200 |
commit | 0a1263af52326a52e1f866dbabf1932f9d045dd2 (patch) | |
tree | 3d7e1d6414f3ac413808bb50727c59b5a698fa1a | |
parent | 44f736bbbabd589153a8f014d10d55f136fd66a3 (diff) |
php-jsonlint: 1.4.1
-rw-r--r-- | composer.json | 21 | ||||
-rw-r--r-- | php-jsonlint.spec | 27 |
2 files changed, 41 insertions, 7 deletions
diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..30dd5ff --- /dev/null +++ b/composer.json @@ -0,0 +1,21 @@ +{ + "name": "seld/jsonlint", + "description": "JSON Linter", + "keywords": ["json", "parser", "linter", "validator"], + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "require": { + "php": "^5.3 || ^7.0" + }, + "autoload": { + "psr-4": { "Seld\\JsonLint\\": "src/Seld/JsonLint/" } + }, + "bin": ["bin/jsonlint"] +} diff --git a/php-jsonlint.spec b/php-jsonlint.spec index a6536a4..049ccb2 100644 --- a/php-jsonlint.spec +++ b/php-jsonlint.spec @@ -13,8 +13,8 @@ %global github_owner Seldaek %global github_name jsonlint -%global github_version 1.4.0 -%global github_commit 66834d3e3566bb5798db7294619388786ae99394 +%global github_version 1.4.1 +%global github_commit e827b5254d3e58c736ea2c5616710983d80b0b70 # "php": "^5.3 || ^7.0" %global php_min_ver 5.3 @@ -93,15 +93,25 @@ install -pm 0755 bin/jsonlint %{buildroot}%{_bindir}/ %check %if %{with_tests} + +# remirepo:11 +run=0 +ret=0 +if which php56; then + php56 %{_bindir}/phpunit --bootstrap %{buildroot}%{_datadir}/php/Seld/JsonLint/autoload.php || ret=1 + run=1 +fi +if which php70; then # With 7.1 '' => '_empty_' property names + php70 %{_bindir}/phpunit --bootstrap %{buildroot}%{_datadir}/php/Seld/JsonLint/autoload.php || ret=1 + run=1 +fi +if [ $run -eq 0 ]; then %{_bindir}/phpunit \ --bootstrap %{buildroot}%{_datadir}/php/Seld/JsonLint/autoload.php \ --verbose - -if which php70; then - php70 %{_bindir}/phpunit \ - --bootstrap %{buildroot}%{_datadir}/php/Seld/JsonLint/autoload.php \ - --verbose +# remirepo:2 fi +exit $ret %else : Tests skipped %endif @@ -118,6 +128,9 @@ fi %changelog +* Thu Sep 15 2016 Remi Collet <remi@fedoraproject.org> - 1.4.1-1 +- Updated to 1.4.1 + * Thu Nov 26 2015 Remi Collet <remi@fedoraproject.org> - 1.4.0-1 - Updated to 1.4.0 - run test suite with both PHP 5 and 7 when available |