#global git 3b560a231daf11828b7a0c7ef9bbff4f0d5a52ab Name: php-fkooman-secookie Version: 5.0.1 Release: 2%{?dist} Summary: Modern HTTP cookie and session library License: MIT URL: https://git.tuxed.net/fkooman/php-secookie/about/ %if %{defined git} Source0: https://git.tuxed.net/fkooman/php-secookie/snapshot/php-secookie-%{git}.tar.xz %else Source0: https://src.tuxed.net/php-secookie/php-secookie-%{version}.tar.xz Source1: https://src.tuxed.net/php-secookie/php-secookie-%{version}.tar.xz.minisig Source2: minisign-8466FFE127BCDC82.pub %endif Source3: %{name}.cron BuildArch: noarch BuildRequires: minisign BuildRequires: php-fedora-autoloader-devel BuildRequires: %{_bindir}/phpab # "require-dev": { # "phpunit/phpunit": "^4.8.35|^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-pcre": "*", # "php": ">=5.4", # "paragonie/random_compat": ">=2", # "paragonie/constant_time_encoding": "^1|^2" # }, BuildRequires: php(language) >= 5.4.0 BuildRequires: php-date BuildRequires: php-pcre %if 0%{?fedora} < 28 && 0%{?rhel} < 8 BuildRequires: php-composer(paragonie/random_compat) %endif BuildRequires: php-composer(paragonie/constant_time_encoding) # "require": { # "ext-date": "*", # "ext-pcre": "*", # "php": ">=5.4", # "paragonie/random_compat": ">=2", # "paragonie/constant_time_encoding": "^1|^2" # }, Requires: crontabs Requires: php(language) >= 5.4.0 Requires: php-date Requires: php-pcre %if 0%{?fedora} < 28 && 0%{?rhel} < 8 Requires: php-composer(paragonie/random_compat) %endif Requires: php-composer(paragonie/constant_time_encoding) Provides: php-composer(fkooman/secookie) = %{version} %description An easy to use, secure, simple and modern PHP cookie and session library supporting multiple parallel sessions without using PHP's session management. %prep %if %{defined git} %autosetup -n php-secookie-%{git} %else /usr/bin/minisign -V -m %{SOURCE0} -x %{SOURCE1} -p %{SOURCE2} %autosetup -n php-secookie-%{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'; AUTOLOAD %endif %install mkdir -p %{buildroot}%{_datadir}/php/fkooman/SeCookie cp -pr src/* %{buildroot}%{_datadir}/php/fkooman/SeCookie mkdir -p %{buildroot}%{_sysconfdir}/cron.daily %{__install} -p -D -m 0750 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.daily/%{name} %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 README.md composer.json CHANGES.md %dir %{_datadir}/php/fkooman %{_datadir}/php/fkooman/SeCookie %config(noreplace) %{_sysconfdir}/cron.daily/%{name} %changelog * Wed Aug 12 2020 François Kooman - 5.0.1-2 - add -ignore_readdir_race to cron running find to delete expired sessions * Sun Aug 09 2020 François Kooman - 5.0.1-1 - update to 5.0.1 - release files moved to src.tuxed.net * Tue Jul 28 2020 François Kooman - 5.0.0-1 - update to 5.0.0 * Mon Jul 20 2020 François Kooman - 4.0.1-1 - update to 4.0.1 * Mon Feb 03 2020 François Kooman - 4.0.0-1 - update to 4.0.0 * Wed Jan 29 2020 François Kooman - 3.0.1-1 - update to 3.0.1 * Mon Jan 27 2020 François Kooman - 3.0.0-1 - update to 3.0.0 * Sun Sep 09 2018 François Kooman - 2.0.1-7 - merge dev and prod spec files in one - cleanup requirements * Sat Sep 08 2018 François Kooman - 2.0.1-6 - add composer.json comments to (Build)Requires - move some stuff around to make it consistent with other spec files * Sun Aug 05 2018 François Kooman - 2.0.1-5 - use phpunit7 on supported platforms * Mon Jul 23 2018 François Kooman - 2.0.1-4 - add missing BR * Mon Jul 23 2018 François Kooman - 2.0.1-3 - use fedora phpab template for generating autoloader * Thu Jun 28 2018 François Kooman - 2.0.1-2 - use release tarball instead of Git tarball - verify GPG signature * Sat Jun 02 2018 François Kooman - 2.0.1-1 - update to 2.0.1 * Fri Jun 01 2018 François Kooman - 2.0.0-3 - update upstream URL to git.tuxed.net * Thu Dec 07 2017 François Kooman - 2.0.0-2 - use phpab to generate the classloader * Sun Sep 10 2017 François Kooman - 2.0.0-1 - update to 2.0.0 * Fri Sep 01 2017 François Kooman - 1.0.2-2 - rework spec, to align it with practices document * Tue Aug 08 2017 François Kooman - 1.0.2-1 - update to 1.0.2 * Mon Aug 07 2017 François Kooman - 1.0.1-1 - update to 1.0.1 * Fri Jun 30 2017 François Kooman - 1.0.0-2 - remove old changelog entries * Fri Jun 30 2017 François Kooman - 1.0.0-1 - initial package