commit 65ec0b27d0feb8208a14f5f9b7199307468f8b7f
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Tue Mar 31 16:58:47 2015 +0300

    update php depcs

 php-dompdf.spec | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/php-dompdf.spec b/php-dompdf.spec
index c9bb2dc..e3039ab 100644
--- a/php-dompdf.spec
+++ b/php-dompdf.spec
@@ -1,5 +1,8 @@
+# TODO
+# - external php-font-lib
+# - external php-tcpdf
 %define                pkgname dompdf
-%define                php_min_version 5.2.1
+%define                php_min_version 5.2.7
 %include       /usr/lib/rpm/macros.php
 Summary:       HTML to PDF converter
 Name:          php-%{pkgname}
@@ -15,11 +18,26 @@ BuildRequires:      rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.461
 BuildRequires: unzip
 Requires:      php(core) >= %{php_min_version}
+Requires:      php(date)
+Requires:      php(dom)
+Requires:      php(gd)
+Requires:      php(iconv)
+Requires:      php(json)
 Requires:      php(mbstring)
+Requires:      php(pcre)
+Requires:      php(spl)
+Requires:      php(xml)
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _noautoreq_pear  dompdf_config.inc.php
+%define                _noautoreq_pear  dompdf_config.inc.php 
.*Font_Binary_Stream.php
+
+# exclude optional php dependencies
+%define                _noautophp      php-curl php-pgsql php.*pgsql
+
+# put it together for rpmbuild
+%define                _noautoreq      %{?_noautophp} %{?_noautopear}
+
 %define                _appdir                 %{php_data_dir}/%{pkgname}
 
 %description
@@ -36,7 +54,7 @@ mv %{pkgname}/* .
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -p *.php $RPM_BUILD_ROOT%{_appdir}
+cp -a dompdf.php load_font.php include lib $RPM_BUILD_ROOT%{_appdir}
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a www/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-dompdf.git/commitdiff/65ec0b27d0feb8208a14f5f9b7199307468f8b7f

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to