From 0a1263af52326a52e1f866dbabf1932f9d045dd2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 15 Sep 2016 16:44:32 +0200 Subject: php-jsonlint: 1.4.1 --- composer.json | 21 +++++++++++++++++++++ php-jsonlint.spec | 27 ++++++++++++++++++++------- 2 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 composer.json 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 - 1.4.1-1 +- Updated to 1.4.1 + * Thu Nov 26 2015 Remi Collet - 1.4.0-1 - Updated to 1.4.0 - run test suite with both PHP 5 and 7 when available -- cgit