update to 2.2.2
This commit is contained in:
parent
def1e32d61
commit
4481fdb8ef
3 changed files with 23 additions and 26 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
<?php
|
||||
require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Autoload::addPsr4('ParagonIE\\ConstantTime\\', __DIR__);
|
||||
AUTOLOAD
|
||||
%{_bindir}/phpab -o src/autoload.php src
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_datadir}/php/%{composer_namespace}
|
||||
cp -pr src/* %{buildroot}%{_datadir}/php/%{composer_namespace}
|
||||
|
||||
%check
|
||||
mkdir vendor
|
||||
cat << 'EOF' | tee vendor/autoload.php
|
||||
<?php
|
||||
require_once '%{buildroot}%{_datadir}/php/%{composer_namespace}/autoload.php';
|
||||
require_once '%{_datadir}/php/random_compat/autoload.php';
|
||||
EOF
|
||||
phpunit --no-coverage --verbose
|
||||
%{_bindir}/phpab -o tests/autoload.php tests
|
||||
cat <<'AUTOLOAD' | tee -a tests/autoload.php
|
||||
require_once 'src/autoload.php';
|
||||
AUTOLOAD
|
||||
|
||||
%{_bindir}/phpunit tests --verbose --bootstrap=tests/autoload.php
|
||||
|
||||
%files
|
||||
%dir %{_datadir}/php/ParagonIE
|
||||
|
|
@ -74,6 +65,11 @@ phpunit --no-coverage --verbose
|
|||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Tue May 01 2018 François Kooman <fkooman@tuxed.net> - 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 <fkooman@tuxed.net> - 1.0.3-1
|
||||
- update to 1.0.3
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-paragonie-constant-time-encoding-75e54b9.tar.gz) = f13e4168dfaf1e34ae9d7c560f0814d0f4b6233ba49e9b3d714e55761340ce0c3e5a85d197bf67eb4b6edbd763a4f4f37f48ba6615609fca19236f1f95c98418
|
||||
SHA512 (php-paragonie-constant-time-encoding-eccf915.tar.gz) = b982517a163ff2e9f342be2a30759d008668c2e2cd34ad2faa9b88e5baa4d918bbdcdce41f76c738e734a331dc36e14f122fd4746136749f105838aa2268798e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue