summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json6
-rw-r--r--php-tecnickcom-tc-lib-pdf-font-rpm.patch39
-rw-r--r--php-tecnickcom-tc-lib-pdf-font.spec5
3 files changed, 27 insertions, 23 deletions
diff --git a/composer.json b/composer.json
index 92be060..66b9d0c 100644
--- a/composer.json
+++ b/composer.json
@@ -1,11 +1,11 @@
{
- "name": "tecnickcom/tc-lib-pdf-font-font",
+ "name": "tecnickcom/tc-lib-pdf-font",
"description": "PHP library containing PDF page formats and definitions",
"type": "library",
- "homepage": "http://www.tecnick.com",
+ "homepage": "https://tcpdf.org",
"license": "LGPL-3.0-or-later",
"keywords": [
- "tc-lib-pdf-font-font",
+ "tc-lib-pdf-font",
"PDF",
"font",
"TTF",
diff --git a/php-tecnickcom-tc-lib-pdf-font-rpm.patch b/php-tecnickcom-tc-lib-pdf-font-rpm.patch
index 90cf22f..57a8e2a 100644
--- a/php-tecnickcom-tc-lib-pdf-font-rpm.patch
+++ b/php-tecnickcom-tc-lib-pdf-font-rpm.patch
@@ -1,20 +1,21 @@
diff -up ./src/Load.php.rpm ./src/Load.php
---- ./src/Load.php.rpm 2026-04-11 18:57:51.000000000 +0200
-+++ ./src/Load.php 2026-04-14 12:16:20.395083087 +0200
-@@ -359,6 +359,10 @@ abstract class Load
- {
- $dir = new Dir();
- $dirs = [''];
-+ $glb = \glob('/usr/share/php-tecnickcom-tc-lib-pdf-font/*', GLOB_ONLYDIR);
-+ if ($glb !== false) {
-+ $dirs = [...$dirs, ...$glb];
-+ }
- if (\defined('K_PATH_FONTS')) {
- $dirs[] = K_PATH_FONTS;
- $glb = \glob(K_PATH_FONTS . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR);
+--- ./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,11 @@ abstract class Load
+ if ($glb !== false) {
+ $dirs = [...$dirs, ...$glb];
+ }
++ } else {
++ $glb = \glob('/usr/share/php-tecnickcom-tc-lib-pdf-font/*', GLOB_ONLYDIR);
++ if ($glb !== false) {
++ $dirs = [...$dirs, ...$glb];
++ }
+ }
+
+ $parent_font_dir = $dir->findParentDir('fonts', __DIR__);
diff -up ./test/OutputTest.php.rpm ./test/OutputTest.php
---- ./test/OutputTest.php.rpm 2026-04-14 12:18:43.369505233 +0200
-+++ ./test/OutputTest.php 2026-04-14 12:19:26.395635970 +0200
+--- ./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();
$output = new \Com\Tecnick\Pdf\Font\Output($fonts, $objnum, $encrypt);
@@ -25,8 +26,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-11 18:57:51.000000000 +0200
-+++ ./util/bulk_convert.php 2026-04-14 12:16:20.395188715 +0200
+--- ./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
@@ -86,7 +86,7 @@ if (!\is_writable($options['outpath']))
exit(2);
}
@@ -46,8 +47,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-11 18:57:51.000000000 +0200
-+++ ./util/convert.php 2026-04-14 12:16:20.395243397 +0200
+--- ./util/convert.php.rpm 2026-04-20 09:18:14.000000000 +0200
++++ ./util/convert.php 2026-04-21 08:00:25.977686323 +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 0a504d5..9f1da99 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.6.38
+Version: 2.6.39
Release: 1%{?dist}
%forgemeta
@@ -212,6 +212,9 @@ exit $ret
%changelog
+* Tue Apr 21 2026 Remi Collet <remi@remirepo.net> - 2.6.39-1
+- update to 2.6.39 (no change)
+
* Mon Apr 20 2026 Remi Collet <remi@remirepo.net> - 2.6.38-1
- update to 2.6.38
- open https://github.com/tecnickcom/tc-lib-pdf-font/pull/15 fix typo