From 02528f1a56fcbc29e3062563f4bf9ec4238f7059 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 May 2018 11:47:16 +0200 Subject: update to 2.2.2 from Fedora raise dependency on PHP 7.0 use phpunit6/phpunit7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Tue May 01 2018 François Kooman - 2.2.2-1 - update to 2.2.2 for PHP >= 7 - update dependencies - switch to phpab autoload generator --- composer.json | 5 +-- php-paragonie-constant-time-encoding.spec | 65 +++++++++++++++++-------------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/composer.json b/composer.json index 3f616e1..1d80ae0 100644 --- a/composer.json +++ b/composer.json @@ -26,11 +26,10 @@ "source": "https://github.com/paragonie/constant_time_encoding" }, "require": { - "php": "^5.3|^7" + "php": "^7" }, "require-dev": { - "phpunit/phpunit": "4.*|5.*", - "paragonie/random_compat": "^1|^2", + "phpunit/phpunit": "^6|^7", "vimeo/psalm": "^1" }, "autoload": { diff --git a/php-paragonie-constant-time-encoding.spec b/php-paragonie-constant-time-encoding.spec index ecef537..453e10e 100644 --- a/php-paragonie-constant-time-encoding.spec +++ b/php-paragonie-constant-time-encoding.spec @@ -14,14 +14,14 @@ %global github_owner paragonie %global github_name constant_time_encoding -%global commit0 6111a38faf6fdebc14e36652d22036f379ba58d3 +%global commit0 eccf915f45f911bfb189d1d1638d940ec6ee6e33 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: php-%{composer_vendor}-constant-time-encoding -Version: 1.0.2 +Version: 2.2.2 Release: 1%{?dist} -Summary: Constant-Time Character Encoding in PHP Projects +Summary: Constant-time Implementations of RFC 4648 Encoding Group: System Environment/Libraries License: MIT @@ -31,54 +31,51 @@ Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch -BuildRequires: php(language) >= 5.3.0 +BuildRequires: php(language) >= 7.0 BuildRequires: php-mbstring BuildRequires: php-spl -BuildRequires: php-pcre -BuildRequires: php-composer(fedora/autoloader) -BuildRequires: php-composer(paragonie/random_compat) -BuildRequires: %{_bindir}/phpunit - -Requires: php(language) >= 5.3.0 +BuildRequires: %{_bindir}/phpab +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +%global phpunit %{_bindir}/phpunit7 +BuildRequires: phpunit7 +%else +%global phpunit %{_bindir}/phpunit6 +BuildRequires: phpunit6 +%endif + +Requires: php(language) >= 7.0 Requires: php-mbstring Requires: php-spl -Requires: php-composer(fedora/autoloader) Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} %description Based on the constant-time base64 implementation made by Steve "Sc00bz" -Thomas, this library aims to offer character encoding functions that do not -leak information about what you are encoding/decoding via processor cache -misses. +Thomas, this library aims to offer character encoding functions that do +not leak information about what you are encoding/decoding via processor +cache misses. %prep %setup -n %{github_name}-%{commit0} %build -cat <<'AUTOLOAD' | tee src/autoload.php - - 2.2.2-1 +- update to 2.2.2 from Fedora +- raise dependency on PHP 7.0 +- use phpunit6/phpunit7 + +* Tue May 01 2018 François Kooman - 2.2.2-1 +- update to 2.2.2 for PHP >= 7 +- update dependencies +- switch to phpab autoload generator + * Sat Mar 10 2018 François Kooman - 1.0.2-1 - update to 1.0.2 -- cgit