commit c3f589650eab9fdeee88eac00c0eb64fde2523c7
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Sat Jun 12 13:37:36 2021 +0200

    Up to 6.4.1.

 php-tcpdf.spec | 12 ++++++------
 shebang.patch  |  8 ++++++++
 2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/php-tcpdf.spec b/php-tcpdf.spec
index 9c9c559..d29658e 100644
--- a/php-tcpdf.spec
+++ b/php-tcpdf.spec
@@ -1,16 +1,16 @@
 # NOTE:
 # - *.z are just gzcompress-ed .ttf files
-%define                ver     %(echo %{version} | tr . _)
 %define                pkgname tcpdf
 %define                php_min_version 5.2.7
 Summary:       TCPDF - PHP class for PDF
 Name:          php-%{pkgname}
-Version:       6.3.2
+Version:       6.4.1
 Release:       1
 License:       LGPL v2.1
 Group:         Development/Languages/PHP
-Source0:       http://downloads.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
-# Source0-md5: 3b78dfde75c18aa5618875cfae911aaf
+Source0:       
https://github.com/tecnickcom/TCPDF/archive/refs/tags/%{version}.tar.gz
+# Source0-md5: 955fa68f9e66ae6e942f5164b9d4010a
+Patch0:                shebang.patch
 URL:           http://www.tcpdf.org/
 BuildRequires: %{php_name}-cli
 BuildRequires: %{php_name}-devel
@@ -72,9 +72,9 @@ TCPDF example programs.
 TCPDF - przykładowe programy.
 
 %prep
-%setup -qc
-mv tcpdf/* .
+%setup -q -n TCPDF-%{version}
 %undos *.TXT
+%patch0 -p1
 
 # remove bundled fonts
 rm -r fonts/dejavu-fonts-ttf-* fonts/freefont-* fonts/ae_fonts_*
diff --git a/shebang.patch b/shebang.patch
new file mode 100644
index 0000000..4ee675e
--- /dev/null
+++ b/shebang.patch
@@ -0,0 +1,8 @@
+--- TCPDF-6.4.1/tools/tcpdf_addfont.php~       2021-03-27 17:00:33.000000000 
+0100
++++ TCPDF-6.4.1/tools/tcpdf_addfont.php        2021-06-12 13:36:34.137628470 
+0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env php
++#!/usr/bin/php
+ <?php
+ //============================================================+
+ // File name   : tcpdf_addfont.php
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-tcpdf.git/commitdiff/c3f589650eab9fdeee88eac00c0eb64fde2523c7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to