From 0ad5c99269fa5048bdc98350452a90b7924470b5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 16 Mar 2017 09:41:44 +0100 Subject: php-paragonie-constant-time-encoding: import from Fedora --- php-paragonie-constant-time-encoding.spec | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 php-paragonie-constant-time-encoding.spec (limited to 'php-paragonie-constant-time-encoding.spec') diff --git a/php-paragonie-constant-time-encoding.spec b/php-paragonie-constant-time-encoding.spec new file mode 100644 index 0000000..0a2f939 --- /dev/null +++ b/php-paragonie-constant-time-encoding.spec @@ -0,0 +1,90 @@ +%global composer_vendor paragonie +%global composer_project constant_time_encoding +%global composer_namespace ParagonIE/ConstantTime + +%global github_owner paragonie +%global github_name constant_time_encoding + +%global commit0 d96e63b79a7135a65659ba5b1cb02826172bfedd +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + + +Name: php-%{composer_vendor}-constant-time-encoding +Version: 1.0.1 +Release: 4%{?dist} +Summary: Constant-Time Character Encoding in PHP Projects + +Group: System Environment/Libraries +License: MIT + +URL: https://github.com/%{github_owner}/%{github_name} +Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz + +BuildArch: noarch + +BuildRequires: php(language) >= 5.3.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 +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. + +%prep +%setup -n %{github_name}-%{commit0} + +%build +cat <<'AUTOLOAD' | tee src/autoload.php + - 1.0.1-4 +- own parent directory +- remove Requires paragonie/random_compat, only needed for build +- BuildRequire php-pcre +- rework check autoloader + +* Mon Mar 13 2017 François Kooman - 1.0.1-3 +- better follow SourceURL package guidelines for GH + +* Mon Feb 13 2017 François Kooman - 1.0.1-2 +- add random_compat as dependency to be able to run tests on PHP < 7 + +* Mon Feb 13 2017 François Kooman - 1.0.1-1 +- initial package -- cgit