diff --git a/.gitignore b/.gitignore index 8b1544d..9ba39f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /php-paragonie-constant-time-encoding-d96e63b.tar.gz /php-paragonie-constant-time-encoding-6111a38.tar.gz /php-paragonie-constant-time-encoding-75e54b9.tar.gz +/php-paragonie-constant-time-encoding-eccf915.tar.gz diff --git a/php-paragonie-constant-time-encoding.spec b/php-paragonie-constant-time-encoding.spec index de57149..f5ca156 100644 --- a/php-paragonie-constant-time-encoding.spec +++ b/php-paragonie-constant-time-encoding.spec @@ -5,14 +5,14 @@ %global github_owner paragonie %global github_name constant_time_encoding -%global commit0 75e54b9bc1d8eddc59bca721cd0f3d263c70503c +%global commit0 eccf915f45f911bfb189d1d1638d940ec6ee6e33 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: php-%{composer_vendor}-constant-time-encoding -Version: 1.0.3 +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 @@ -22,50 +22,41 @@ 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}/phpab BuildRequires: %{_bindir}/phpunit -Requires: php(language) >= 5.3.0 +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 for PHP >= 7 +- update dependencies +- switch to phpab autoload generator + * Mon Apr 30 2018 François Kooman - 1.0.3-1 - update to 1.0.3 diff --git a/sources b/sources index af11804..7a46c42 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-paragonie-constant-time-encoding-75e54b9.tar.gz) = f13e4168dfaf1e34ae9d7c560f0814d0f4b6233ba49e9b3d714e55761340ce0c3e5a85d197bf67eb4b6edbd763a4f4f37f48ba6615609fca19236f1f95c98418 +SHA512 (php-paragonie-constant-time-encoding-eccf915.tar.gz) = b982517a163ff2e9f342be2a30759d008668c2e2cd34ad2faa9b88e5baa4d918bbdcdce41f76c738e734a331dc36e14f122fd4746136749f105838aa2268798e