summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer.json2
-rw-r--r--php-tecnickcom-tc-lib-pdf.spec25
2 files changed, 18 insertions, 9 deletions
diff --git a/composer.json b/composer.json
index 0edcba9..a156f3a 100644
--- a/composer.json
+++ b/composer.json
@@ -41,7 +41,7 @@
"require-dev": {
"pdepend/pdepend": "2.16.2",
"phpmd/phpmd": "2.15.0",
- "phpunit/phpunit": "13.0.5 || 12.5.14 || 11.5.55 || 10.5.63",
+ "phpunit/phpunit": "13.1.1 || 12.5.17 || 11.5.55 || 10.5.63",
"squizlabs/php_codesniffer": "4.0.1",
"phpcompatibility/php-compatibility": "^10.0.0@dev"
},
diff --git a/php-tecnickcom-tc-lib-pdf.spec b/php-tecnickcom-tc-lib-pdf.spec
index 528bd96..ab8aa2b 100644
--- a/php-tecnickcom-tc-lib-pdf.spec
+++ b/php-tecnickcom-tc-lib-pdf.spec
@@ -6,22 +6,24 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit 56f8cc151995789b9fe92d1e830914a8a3abd1b0
-%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global c_vendor tecnickcom
%global gh_owner tecnickcom
%global gh_project tc-lib-pdf
%global php_project %{_datadir}/php/Com/Tecnick/Pdf
+%global forgeurl https://github.com/%{gh_owner}/%{gh_project}
+%global tag %{version}
+
%bcond_without tests
Name: php-%{gh_owner}-%{gh_project}
-Version: 8.4.17
-Release: 1%{?dist}
Summary: PHP PDF Library
-
License: LGPL-3.0-or-later
-URL: https://github.com/%{gh_owner}/%{gh_project}
-Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{?gh_short}.tar.gz
+Version: 8.5.0
+Release: 1%{?dist}
+
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildArch: noarch
%if %{with tests}
@@ -126,7 +128,7 @@ Main Features:
%prep
-%setup -q -n %{gh_project}-%{gh_commit}
+%forgesetup
: Sanity check
grep -q '^%{version}$' VERSION
@@ -172,6 +174,10 @@ require '%{buildroot}%{php_project}/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('Test\\', dirname(__DIR__) . '/test');
EOF
+# Fix font path
+sed -e "/fontfile/s:__DIR__ . '/../vendor/tecnickcom/tc-lib-pdf-font/target/fonts/:'%{_datadir}/php-tecnickcom-tc-lib-pdf-font/:" \
+ -i test/*php
+
ret=0
for cmdarg in php php82 "php83 %{_bindir}/phpunit12" "php84 %{_bindir}/phpunit13" "php85 %{_bindir}/phpunit13"; do
if which $cmdarg; then
@@ -196,6 +202,9 @@ exit $ret
%changelog
+* Tue Apr 14 2026 Remi Collet <remi@remirepo.net> - 8.5.0-1
+- update to 8.5.0
+
* Tue Mar 31 2026 Remi Collet <remi@remirepo.net> - 8.4.17-1
- update to 8.4.17