summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-05-13 13:27:48 +0200
committerRemi Collet <fedora@famillecollet.com>2013-05-13 13:27:48 +0200
commit79142a9a636d57a9be8fc7074f2117f8be7b12d5 (patch)
tree527200992143ee603c47b1637ba8ffd6d968afa8
parent244fe744d298338c66e951b9da949fd814eb9e83 (diff)
php-tcpdf: fix mock build
-rw-r--r--php-tcpdf.spec6
1 files changed, 4 insertions, 2 deletions
diff --git a/php-tcpdf.spec b/php-tcpdf.spec
index aa6eeba..d5bdcff 100644
--- a/php-tcpdf.spec
+++ b/php-tcpdf.spec
@@ -21,6 +21,7 @@ Patch2: %{name}_sysfonts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-cli
+BuildRequires: php-posix
Requires: php(language) >= 5.2
Requires: php-openssl
@@ -215,9 +216,10 @@ install -d %{buildroot}%{_bindir}
install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{real_name}_addfont.php
# Fonts
-cd %{buildroot}%{_datadir}/php/%{real_name}/fonts
+sed -e 's|/etc/php-tcpdf/tcpdf_config.php|config/tcpdf_config.php|' \
+ -i tcpdf.php
-php -d include_path=%{buildroot}%{_datadir}/php:. \
+php -d include_path=..:. \
%{SOURCE1} \
/usr/share/fonts/dejavu/*ttf \
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6