From a5fb19ff40404b23a494e80f313b4ade4f27cee3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Dec 2020 10:52:56 +0100 Subject: update to 1.6.1 switch to classmap autoloader --- php-tecnickcom-tc-lib-pdf-encrypt.spec | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'php-tecnickcom-tc-lib-pdf-encrypt.spec') diff --git a/php-tecnickcom-tc-lib-pdf-encrypt.spec b/php-tecnickcom-tc-lib-pdf-encrypt.spec index fd8615f..ad071da 100644 --- a/php-tecnickcom-tc-lib-pdf-encrypt.spec +++ b/php-tecnickcom-tc-lib-pdf-encrypt.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 9b2ef81b4879e6f0e339ad0ffb1ee8d5e68f389f +%global gh_commit d70022f5aeaba240a2f9f1828b78b1efc3a4ffd8 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global c_vendor tecnickcom %global gh_owner tecnickcom @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-%{gh_owner}-%{gh_project} -Version: 1.5.10 +Version: 1.6.1 Release: 1%{?dist} Summary: PHP library to encrypt data for PDF @@ -32,13 +32,15 @@ BuildRequires: php-hash BuildRequires: php-openssl BuildRequires: php-pcre BuildRequires: php-posix -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 -%global phpunit %{_bindir}/phpunit7 +%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 +%global phpunit %{_bindir}/phpunit9 +BuildRequires: phpunit9 >= 9.5.0 %else -%global phpunit %{_bindir}/phpunit +%global phpunit %{_bindir}/phpunit8 +BuildRequires: phpunit8 >= 8.5.13 %endif -BuildRequires: %{phpunit} %endif +BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { # "php": ">=5.4", @@ -56,6 +58,7 @@ Requires: php-pcre Requires: php-posix # From phpcompatinfo report for version 1.5.0 # none +Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{c_vendor}/%{gh_project}) = %{version} @@ -77,30 +80,29 @@ grep -q '^%{version}$' VERSION %build -# Empty build section, most likely nothing required. +phpab --template fedora --output src/autoload.php src %install mkdir -p $(dirname %{buildroot}%{php_project}) cp -pr src %{buildroot}%{php_project} -cp -p resources/autoload.php \ - %{buildroot}%{php_project}/autoload.php %check %if %{with_tests} mkdir vendor -cat < - 1.6.1-1 +- update to 1.6.1 +- switch to classmap autoloader + * Fri Jan 3 2020 Remi Collet - 1.5.10-1 - update to 1.5.10 (no change) -- cgit