]> git.pld-linux.org Git - packages/php-tcpdf.git/blobdiff - php-tcpdf.spec
Up to 6.6.5
[packages/php-tcpdf.git] / php-tcpdf.spec
index 692ecb44eba29da61abdb69eb8aaaac8c9155075..af2d5bea765ab640f0de5ef11c6402f07b31e834 100644 (file)
@@ -1,19 +1,19 @@
 # NOTE:
 # - *.z are just gzcompress-ed .ttf files
-%define                ver     %(echo %{version} | tr . _)
 %define                pkgname tcpdf
 %define                php_min_version 5.2.7
-%include       /usr/lib/rpm/macros.php
 Summary:       TCPDF - PHP class for PDF
 Name:          php-%{pkgname}
-Version:       6.2.6
+Version:       6.6.5
 Release:       1
 License:       LGPL v2.1
 Group:         Development/Languages/PHP
-Source0:       http://downloads.sourceforge.net/tcpdf/tcpdf_%{ver}.zip
-# Source0-md5: 9185f0ca4ecc65fb8a1dc115ab96b52b
+Source0:       https://github.com/tecnickcom/TCPDF/archive/refs/tags/%{version}.tar.gz
+# Source0-md5: 6dba74875045bf54f0099515c8d7213e
+Patch0:                shebang.patch
 URL:           http://www.tcpdf.org/
 BuildRequires: %{php_name}-cli
+BuildRequires: %{php_name}-devel
 BuildRequires: %{php_name}-pcre
 BuildRequires: %{php_name}-zlib
 BuildRequires: fonts-TTF-DejaVu
@@ -31,6 +31,7 @@ Requires:     php(mbstring)
 Requires:      php(openssl)
 Requires:      php(pcre)
 Requires:      php(xml)
+Suggests:      php-tcpdf-fonts-dejavu
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -71,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_*
@@ -100,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGELOG.TXT README.TXT
+%doc CHANGELOG.TXT README.md
 %dir %attr(750,root,http) %{_sysconfdir}
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tcpdf_config.php
 %attr(755,root,root) %{_bindir}/tcpdf_addfont
@@ -113,6 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_appdir}/fonts/aefurat*
 %{_appdir}/fonts/cid0*
 %{_appdir}/fonts/courier*
+%{_appdir}/fonts/dejavumathtexgyre*
 %{_appdir}/fonts/helvetica*
 %{_appdir}/fonts/hysmyeongjostdmedium*
 %{_appdir}/fonts/kozgopromedium*
This page took 0.112877 seconds and 4 git commands to generate.