summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-pdf.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-tecnickcom-tc-lib-pdf.spec')
-rw-r--r--php-tecnickcom-tc-lib-pdf.spec25
1 files changed, 17 insertions, 8 deletions
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