From 79142a9a636d57a9be8fc7074f2117f8be7b12d5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 13 May 2013 13:27:48 +0200 Subject: php-tcpdf: fix mock build --- php-tcpdf.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'php-tcpdf.spec') 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 -- cgit