From db8a8d895d1d64af439c6ba14799714919b21dcb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 May 2026 08:47:36 +0200 Subject: update to 2.13.0 raise dependency on PHP 8.2 raise dependency on tc-lib-file 2.6 raise dependency on tc-lib-unicode-data 2.1 raise dependency on tc-lib-pdf-encrypt 2.3 --- composer.json | 134 +++++++++++++++---------------- php-tecnickcom-tc-lib-pdf-font-rpm.patch | 22 ++--- php-tecnickcom-tc-lib-pdf-font.spec | 31 ++++--- 3 files changed, 97 insertions(+), 90 deletions(-) diff --git a/composer.json b/composer.json index c3d50d7..e6daa99 100644 --- a/composer.json +++ b/composer.json @@ -1,70 +1,70 @@ { - "name": "tecnickcom/tc-lib-pdf-font", - "description": "PHP library containing PDF page formats and definitions", - "type": "library", - "homepage": "https://tcpdf.org", - "license": "LGPL-3.0-or-later", - "keywords": [ - "tc-lib-pdf-font", - "PDF", - "font", - "TTF", - "AFM", - "PFB", - "import" - ], - "authors": [ - { - "name": "Nicola Asuni", - "email": "info@tecnick.com", - "role": "lead" + "name": "tecnickcom/tc-lib-pdf-font", + "description": "PHP library containing PDF page formats and definitions", + "type": "library", + "homepage": "https://tcpdf.org", + "license": "LGPL-3.0-or-later", + "keywords": [ + "tc-lib-pdf-font", + "PDF", + "font", + "TTF", + "AFM", + "PFB", + "import" + ], + "authors": [ + { + "name": "Nicola Asuni", + "email": "info@tecnick.com", + "role": "lead" + } + ], + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/tecnickcom" + } + ], + "require": { + "php": ">=8.2", + "ext-json": "*", + "ext-pcre": "*", + "ext-zlib": "*", + "tecnickcom/tc-lib-file": "^2.6", + "tecnickcom/tc-lib-unicode-data": "^2.1", + "tecnickcom/tc-lib-pdf-encrypt": "^2.3" + }, + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, + "require-dev": { + "pdepend/pdepend": "^2.16", + "phpunit/phpunit": "^13.1 || ^12.5 || ^11.5", + "phpcompatibility/php-compatibility": "^10.0.0@dev" + }, + "autoload": { + "psr-4": { + "Com\\Tecnick\\Pdf\\Font\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Test\\": "test" + } + }, + "support": { + "issues": "https://github.com/tecnickcom/tc-lib-pdf-font/issues", + "source": "https://github.com/tecnickcom/tc-lib-pdf-font" + }, + "scripts": { + "test": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --stderr test", + "cs-check": "./vendor/bin/mago --config ./mago.src.toml lint src && ./vendor/bin/mago --config ./mago.test.toml lint test", + "cs-fix": "./vendor/bin/mago fmt src test", + "analyse": "./vendor/bin/mago --config ./mago.src.toml analyze src && ./vendor/bin/mago --config ./mago.test.toml analyze test" } - ], - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/tecnickcom" - } - ], - "require": { - "php": ">=8.1", - "ext-json": "*", - "ext-pcre": "*", - "ext-zlib": "*", - "tecnickcom/tc-lib-file": "^2.5", - "tecnickcom/tc-lib-unicode-data": "^2.0", - "tecnickcom/tc-lib-pdf-encrypt": "^2.2" - }, - "minimum-stability": "dev", - "prefer-stable": true, - "config": { - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - } - }, - "require-dev": { - "pdepend/pdepend": "^2.16", - "phpmd/phpmd": "^2.15", - "phpunit/phpunit": "^13.1 || ^12.5 || ^11.5 || ^10.5", - "squizlabs/php_codesniffer": "^4.0", - "phpcompatibility/php-compatibility": "^10.0.0@dev" - }, - "autoload": { - "psr-4": { - "Com\\Tecnick\\Pdf\\Font\\": "src" - } - }, - "autoload-dev": { - "psr-4": { "Test\\": "test" } - }, - "support": { - "issues": "https://github.com/tecnickcom/tc-lib-pdf-font/issues", - "source": "https://github.com/tecnickcom/tc-lib-pdf-font" - }, - "scripts": { - "test": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --stderr test", - "cs-check": "./vendor/bin/phpcs --standard=phpcs.xml", - "cs-fix": "./vendor/bin/phpcbf --ignore=\"./vendor/\" --standard=psr12 src test", - "analyse": "./vendor/phpstan.phar analyse" - } } diff --git a/php-tecnickcom-tc-lib-pdf-font-rpm.patch b/php-tecnickcom-tc-lib-pdf-font-rpm.patch index cfe9e59..2378ec4 100644 --- a/php-tecnickcom-tc-lib-pdf-font-rpm.patch +++ b/php-tecnickcom-tc-lib-pdf-font-rpm.patch @@ -1,7 +1,7 @@ diff -up ./src/Load.php.rpm ./src/Load.php ---- ./src/Load.php.rpm 2026-04-20 09:18:14.000000000 +0200 -+++ ./src/Load.php 2026-04-21 08:01:40.439250910 +0200 -@@ -365,6 +365,12 @@ abstract class Load +--- ./src/Load.php.rpm 2026-05-12 23:33:40.000000000 +0200 ++++ ./src/Load.php 2026-05-13 08:43:00.390222294 +0200 +@@ -398,6 +398,12 @@ abstract class Load if ($glb !== false) { $dirs = [...$dirs, ...$glb]; } @@ -15,10 +15,10 @@ diff -up ./src/Load.php.rpm ./src/Load.php $parent_font_dir = $dir->findParentDir('fonts', __DIR__); diff -up ./test/OutputTest.php.rpm ./test/OutputTest.php ---- ./test/OutputTest.php.rpm 2026-04-20 09:18:14.000000000 +0200 -+++ ./test/OutputTest.php 2026-04-21 08:00:25.977554452 +0200 -@@ -75,7 +75,7 @@ class OutputTest extends TestUtil - $encrypt = new \Com\Tecnick\Pdf\Encrypt\Encrypt(); +--- ./test/OutputTest.php.rpm 2026-05-12 23:33:40.000000000 +0200 ++++ ./test/OutputTest.php 2026-05-13 08:44:40.973931232 +0200 +@@ -220,7 +220,7 @@ class OutputTest extends TestUtil + $encrypt = $this->createEncrypt(); $output = new \Com\Tecnick\Pdf\Font\Output($fonts, $objnum, $encrypt); - $this->assertEquals(37, $output->getObjectNumber()); @@ -27,8 +27,8 @@ diff -up ./test/OutputTest.php.rpm ./test/OutputTest.php $this->assertNotEmpty($output->getFontsBlock()); diff -up ./util/bulk_convert.php.rpm ./util/bulk_convert.php ---- ./util/bulk_convert.php.rpm 2026-04-20 09:18:14.000000000 +0200 -+++ ./util/bulk_convert.php 2026-04-21 08:00:25.977634131 +0200 +--- ./util/bulk_convert.php.rpm 2026-05-12 23:33:40.000000000 +0200 ++++ ./util/bulk_convert.php 2026-05-13 08:43:00.390462507 +0200 @@ -86,7 +86,7 @@ if (!\is_writable($options['outpath'])) exit(2); } @@ -48,8 +48,8 @@ diff -up ./util/bulk_convert.php.rpm ./util/bulk_convert.php $fontdir = \array_diff(\scandir($ttfdir), array('.', '..', '.git')); diff -up ./util/convert.php.rpm ./util/convert.php ---- ./util/convert.php.rpm 2026-04-20 09:18:14.000000000 +0200 -+++ ./util/convert.php 2026-04-21 08:00:25.977686323 +0200 +--- ./util/convert.php.rpm 2026-05-12 23:33:40.000000000 +0200 ++++ ./util/convert.php 2026-05-13 08:43:00.390516662 +0200 @@ -224,7 +224,7 @@ if (empty($options['fonts'])) { $convert_errors = 0; $convert_success = 0; diff --git a/php-tecnickcom-tc-lib-pdf-font.spec b/php-tecnickcom-tc-lib-pdf-font.spec index 020fe1c..6672708 100644 --- a/php-tecnickcom-tc-lib-pdf-font.spec +++ b/php-tecnickcom-tc-lib-pdf-font.spec @@ -26,7 +26,7 @@ Name: php-%{gh_owner}-%{gh_project} Summary: PHP library containing PDF page formats and definitions License: LGPL-3.0-or-later -Version: 2.12.0 +Version: 2.13.0 Release: 1%{?dist} %forgemeta @@ -47,9 +47,9 @@ BuildRequires: php-json BuildRequires: php-pcre BuildRequires: php-spl BuildRequires: php-zlib -BuildRequires: (php-composer(%{c_vendor}/tc-lib-file) >= 2.5 with php-composer(%{c_vendor}/tc-lib-file) < 3) -BuildRequires: (php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.0 with php-composer(%{c_vendor}/tc-lib-unicode-data) < 3) -BuildRequires: (php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.2 with php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3) +BuildRequires: (php-composer(%{c_vendor}/tc-lib-file) >= 2.6 with php-composer(%{c_vendor}/tc-lib-file) < 3) +BuildRequires: (php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.1 with php-composer(%{c_vendor}/tc-lib-unicode-data) < 3) +BuildRequires: (php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.3 with php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3) %endif BuildRequires: php-fedora-autoloader-devel # System fonts @@ -64,21 +64,21 @@ BuildRequires: unifont-ttf-fonts %endif # From composer.json, "require": { -# "php": ">=8.1", +# "php": ">=8.2", # "ext-json": "*", # "ext-pcre": "*", # "ext-zlib": "*", -# "tecnickcom/tc-lib-file": "^2.5", -# "tecnickcom/tc-lib-unicode-data": "^2.0", -# "tecnickcom/tc-lib-pdf-encrypt": "^2.2" -Requires: php(language) >= 8.1 +# "tecnickcom/tc-lib-file": "^2.6", +# "tecnickcom/tc-lib-unicode-data": "^2.1", +# "tecnickcom/tc-lib-pdf-encrypt": "^2.3" +Requires: php(language) >= 8.2 Requires: php-json Requires: php-pcre Requires: php-spl Requires: php-zlib -Requires: (php-composer(%{c_vendor}/tc-lib-file) >= 2.5 with php-composer(%{c_vendor}/tc-lib-file) < 3) -Requires: (php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.0 with php-composer(%{c_vendor}/tc-lib-unicode-data) < 3) -Requires: (php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.2 with php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3) +Requires: (php-composer(%{c_vendor}/tc-lib-file) >= 2.6 with php-composer(%{c_vendor}/tc-lib-file) < 3) +Requires: (php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.1 with php-composer(%{c_vendor}/tc-lib-unicode-data) < 3) +Requires: (php-composer(%{c_vendor}/tc-lib-pdf-encrypt) >= 2.3 with php-composer(%{c_vendor}/tc-lib-pdf-encrypt) < 3) # From phpcompatinfo report for version 2.0.8 # none Requires: php-composer(fedora/autoloader) @@ -212,6 +212,13 @@ exit $ret %changelog +* Wed May 13 2026 Remi Collet - 2.13.0-1 +- update to 2.13.0 +- raise dependency on PHP 8.2 +- raise dependency on tc-lib-file 2.6 +- raise dependency on tc-lib-unicode-data 2.1 +- raise dependency on tc-lib-pdf-encrypt 2.3 + * Sun May 10 2026 Remi Collet - 2.12.0-1 - update to 2.12.0 -- cgit