#global git c913ee158193350371e181f2490a16125cade809 Name: php-fkooman-saml-sp Version: 0.2.2 Release: 1%{?dist} Summary: SAML Service Provider library License: MIT URL: https://software.tuxed.net/php-saml-sp %if %{defined git} Source0: https://git.tuxed.net/fkooman/php-saml-sp/snapshot/php-saml-sp-%{git}.tar.xz %else Source0: https://software.tuxed.net/php-saml-sp/files/php-saml-sp-%{version}.tar.xz Source1: https://software.tuxed.net/php-saml-sp/files/php-saml-sp-%{version}.tar.xz.minisig Source2: minisign-8466FFE127BCDC82.pub %endif BuildArch: noarch BuildRequires: minisign BuildRequires: php-fedora-autoloader-devel BuildRequires: %{_bindir}/phpab # "require-dev": { # "phpunit/phpunit": "^4|^5|^6|^7", # }, %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 BuildRequires: phpunit7 %global phpunit %{_bindir}/phpunit7 %else BuildRequires: phpunit %global phpunit %{_bindir}/phpunit %endif # "require": { # "ext-date": "*", # "ext-dom": "*", # "ext-hash": "*", # "ext-libxml": "*", # "ext-openssl": "*", # "ext-pcre": "*", # "ext-session": "*", # "ext-spl": "*", # "ext-zlib": "*", # "paragonie/constant_time_encoding": "^1|^2", # "paragonie/random_compat": ">=1", # "php": ">=5.4", # "symfony/polyfill-php56": "^1" # }, BuildRequires: php(language) >= 5.4.0 BuildRequires: php-date BuildRequires: php-dom BuildRequires: php-hash BuildRequires: php-libxml BuildRequires: php-openssl BuildRequires: php-pcre BuildRequires: php-session BuildRequires: php-spl BuildRequires: php-zlib BuildRequires: php-composer(paragonie/constant_time_encoding) %if 0%{?fedora} < 28 && 0%{?rhel} < 8 BuildRequires: php-composer(paragonie/random_compat) BuildRequires: php-composer(symfony/polyfill-php56) %endif # "require": { # "ext-date": "*", # "ext-dom": "*", # "ext-hash": "*", # "ext-libxml": "*", # "ext-openssl": "*", # "ext-pcre": "*", # "ext-session": "*", # "ext-spl": "*", # "ext-zlib": "*", # "paragonie/constant_time_encoding": "^1|^2", # "paragonie/random_compat": ">=1", # "php": ">=5.4", # "symfony/polyfill-php56": "^1" # }, Requires: php(language) >= 5.4.0 Requires: php-date Requires: php-dom Requires: php-hash Requires: php-libxml Requires: php-openssl Requires: php-pcre Requires: php-session Requires: php-spl Requires: php-zlib Requires: php-composer(paragonie/constant_time_encoding) %if 0%{?fedora} < 28 && 0%{?rhel} < 8 Requires: php-composer(paragonie/random_compat) Requires: php-composer(symfony/polyfill-php56) %endif Provides: php-composer(fkooman/saml-sp) = %{version} %description This library allows adding SAML Service Provider (SP) support to your PHP web application. %prep %if %{defined git} %setup -qn php-saml-sp-%{git} %else /usr/bin/minisign -V -m %{SOURCE0} -x %{SOURCE1} -p %{SOURCE2} %setup -qn php-saml-sp-%{version} %endif %build %{_bindir}/phpab -t fedora -o src/autoload.php src cat <<'AUTOLOAD' | tee -a src/autoload.php require_once '%{_datadir}/php/ParagonIE/ConstantTime/autoload.php'; AUTOLOAD %if 0%{?fedora} < 28 && 0%{?rhel} < 8 cat <<'AUTOLOAD' | tee -a src/autoload.php require_once '%{_datadir}/php/random_compat/autoload.php'; require_once '%{_datadir}/php/Symfony/Polyfill/autoload.php'; AUTOLOAD %endif %install mkdir -p %{buildroot}%{_datadir}/php/fkooman/SAML/SP cp -pr src/* %{buildroot}%{_datadir}/php/fkooman/SAML/SP %check %{_bindir}/phpab -o tests/autoload.php tests cat <<'AUTOLOAD' | tee -a tests/autoload.php require_once 'src/autoload.php'; AUTOLOAD %{phpunit} tests --verbose --bootstrap=tests/autoload.php %files %license LICENSE %doc composer.json CHANGES.md README.md %dir %{_datadir}/php/fkooman %dir %{_datadir}/php/fkooman/SAML %{_datadir}/php/fkooman/SAML/SP %changelog * Tue Aug 06 2019 François Kooman - 0.2.2-1 - update to 0.2.2 * Mon Aug 05 2019 François Kooman - 0.2.1-1 - update to 0.2.1 - switch to minisign signature verification for release builds * Wed Jul 31 2019 François Kooman - 0.2.0-1 - update to 0.2.0 * Tue Apr 23 2019 François Kooman - 0.1.1-1 - update to 0.1.1 * Fri Mar 15 2019 François Kooman - 0.1.0-1 - initial package