From 39d634e3aad01bcc880dffa05d69c3ee27f226fb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Mar 2017 08:04:20 +0100 Subject: php-jsonlint: 1.6.0 --- composer.json | 3 +++ php-jsonlint-autoload.php | 9 --------- php-jsonlint.spec | 29 ++++++++++++++++++----------- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 php-jsonlint-autoload.php diff --git a/composer.json b/composer.json index 30dd5ff..3f42c4f 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,9 @@ "require": { "php": "^5.3 || ^7.0" }, + "require-dev": { + "phpunit/phpunit": "^4.5" + }, "autoload": { "psr-4": { "Seld\\JsonLint\\": "src/Seld/JsonLint/" } }, diff --git a/php-jsonlint-autoload.php b/php-jsonlint-autoload.php deleted file mode 100644 index a6c272d..0000000 --- a/php-jsonlint-autoload.php +++ /dev/null @@ -1,9 +0,0 @@ -= %{php_min_ver} -BuildRequires: php-composer(phpunit/phpunit) -# For tests: phpcompatinfo (computed from version 1.5.0) +BuildRequires: php-composer(phpunit/phpunit) >= 4.5 +# For tests: phpcompatinfo (computed from version 1.6.0) BuildRequires: php-json BuildRequires: php-pcre # For autoloader @@ -52,7 +49,7 @@ BuildRequires: php-composer(fedora/autoloader) %endif Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 1.5.0) +# phpcompatinfo (computed from version 1.6.0) Requires: php-cli Requires: php-pcre # For autoloader @@ -77,12 +74,18 @@ Autoloader: %{_datadir}/php/Seld/JsonLint/autoload.php %prep %setup -q -n %{github_name}-%{github_commit} -cp %{SOURCE1} src/Seld/JsonLint/autoload.php %patch0 -p1 %build -# Empty build section, nothing to build +: Generate autoloader +cat << 'EOF' | tee src/Seld/JsonLint/autoload.php + - 1.6.0-1 +- Update to 1.6.0 +- generate autoloader in spec + * Fri Jan 13 2017 Shawn Iwinski - 1.5.0-2 - Rename bin from %%{_bindir}/jsonlint to %%{_bindir}/jsonlint-php to avoid conflict with package python2-demjson (RHBZ #1409281) -- cgit