diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | composer.json | 40 | ||||
-rw-r--r-- | php-paragonie-constant-time-encoding.spec | 23 |
3 files changed, 66 insertions, 1 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..3e90d7c --- /dev/null +++ b/composer.json @@ -0,0 +1,40 @@ +{ + "name": "paragonie/constant_time_encoding", + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base64", "encoding", "rfc4648", "base32", "base16", "hex", "bin2hex", "hex2bin", "base64_encode", "base64_decode", "base32_encode", "base32_decode" + ], + "license": "MIT", + "type": "library", + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "support": { + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "email": "info@paragonie.com", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "require": { + "php": "^5.3|^7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "paragonie/random_compat": "^1.4|^2.0" + }, + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + } +} diff --git a/php-paragonie-constant-time-encoding.spec b/php-paragonie-constant-time-encoding.spec index 0a2f939..eedc210 100644 --- a/php-paragonie-constant-time-encoding.spec +++ b/php-paragonie-constant-time-encoding.spec @@ -1,3 +1,12 @@ +# remirepo spec file for php-paragonie-constant-time-encoding, from: +# +# Fedora spec file for php-paragonie-constant-time-encoding +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# %global composer_vendor paragonie %global composer_project constant_time_encoding %global composer_namespace ParagonIE/ConstantTime @@ -65,15 +74,27 @@ cat << 'EOF' | tee vendor/autoload.php require_once '%{buildroot}%{_datadir}/php/%{composer_namespace}/autoload.php'; require_once '%{_datadir}/php/random_compat/autoload.php'; EOF -phpunit --no-coverage --verbose + +ret=0 +for cmd in php php56 php70 php71; do + if which $cmd; then + $cmd %{_bindir}/phpunit --no-coverage --verbose || ret=1 + fi +done +exit $ret + %files %dir %{_datadir}/php/ParagonIE %{_datadir}/php/%{composer_namespace} %doc README.md composer.json +%{!?_licensedir:%global license %%doc} %license LICENSE.txt %changelog +* Thu Mar 16 2017 Remi Collet <remi@remirepo.net> - 1.0.1-4 +- backport for remi repository + * Wed Mar 15 2017 François Kooman <fkooman@tuxed.net> - 1.0.1-4 - own parent directory - remove Requires paragonie/random_compat, only needed for build |