[packages/php-pear-Text_Figlet] Rel 4; php8
arekm
arekm at pld-linux.org
Mon May 4 12:58:25 CEST 2026
commit 4affae1d0da85d7997682f30ae27527c4d0923af
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon May 4 12:58:16 2026 +0200
Rel 4; php8
php-pear-Text_Figlet-php8.patch | 22 ++++++++++++++++++++++
php-pear-Text_Figlet.spec | 10 +++++++---
2 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/php-pear-Text_Figlet.spec b/php-pear-Text_Figlet.spec
index 749f17f..e20fbf8 100644
--- a/php-pear-Text_Figlet.spec
+++ b/php-pear-Text_Figlet.spec
@@ -4,12 +4,13 @@ Summary: %{_pearname} - Render text using FIGlet fonts
Summary(pl.UTF-8): %{_pearname} - Renderowanie tekstu z użyciem fontów FIGleta
Name: php-pear-%{_pearname}
Version: 1.0.2
-Release: 3
+Release: 4
License: PHP 2.02
Group: Development/Languages/PHP
-Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
+Source0: https://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: e92e1b45796cb0f3e0174bb55ebebc72
-URL: http://pear.php.net/package/Text_Figlet/
+Patch0: %{name}-php8.patch
+URL: https://pear.php.net/package/Text_Figlet/
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.300
@@ -30,6 +31,9 @@ Ta klasa ma w PEAR status: %{_status}.
%prep
%pear_package_setup
+cd ./%{php_pear_dir}
+%patch -P0 -p1
+cd -
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/php-pear-Text_Figlet-php8.patch b/php-pear-Text_Figlet-php8.patch
new file mode 100644
index 0000000..8d6f3c7
--- /dev/null
+++ b/php-pear-Text_Figlet-php8.patch
@@ -0,0 +1,22 @@
+Replace deprecated curly-brace string offset access (removed in PHP 8.0).
+
+--- Text_Figlet-1.0.2.org/Text/Figlet.php 2010-01-01 00:00:00.000000000 +0200
++++ Text_Figlet-1.0.2/Text/Figlet.php 2026-05-04 00:00:00.000000000 +0200
+@@ -245,7 +245,7 @@
+ $i = hexdec(substr($i, 2));
+ } else {
+ // If octal
+- if ($i{0} === '0' && $i !== '0' || substr($i, 0, 2) == '-0') {
++ if ($i[0] === '0' && $i !== '0' || substr($i, 0, 2) == '-0') {
+ $i = octdec($i);
+ }
+ }
+@@ -288,7 +288,7 @@
+ $lt = hexdec(substr($str, $i+2, 4));
+ $i += 5;
+ } else {
+- $lt = ord($str{$i});
++ $lt = ord($str[$i]);
+ }
+
+ $hb = preg_quote($this->hardblank, '/');
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pear-Text_Figlet.git/commitdiff/4affae1d0da85d7997682f30ae27527c4d0923af
More information about the pld-cvs-commit
mailing list