[packages/php-ufpdf] use existing draw.php
glen
glen at pld-linux.org
Sun Apr 28 15:09:13 CEST 2013
commit 6963007ba8aff0f0b3136d0ec7ce7f8e77685a46
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 28 16:08:47 2013 +0300
use existing draw.php
php-ufpdf.spec | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/php-ufpdf.spec b/php-ufpdf.spec
index 1ab6e7c..aaee245 100644
--- a/php-ufpdf.spec
+++ b/php-ufpdf.spec
@@ -9,8 +9,8 @@ Group: Libraries
Source0: http://www.acko.net/files/ufpdf.zip
# Source0-md5: 1ae3792810334c15dcec3773b4d5bf54
# http://www.fpdf.de/downloads/addons/69/
-Source1: ufpdf-draw.php
-# Source1-md5: c8ff16105021bb1edc2023a3c9e4be19
+Source1: http://www.fpdf.org/en/script/dl.php?id=69&f=tgz&/ufpdf-draw.tgz
+# Source1-md5: 4aa6f93a76b5911d711fa15cfeab4231
URL: http://acko.net/node/56
BuildRequires: sed >= 4.0
BuildRequires: unzip
@@ -37,20 +37,20 @@ UFPDF, rozszerzenie FPDF pozwalające na akceptowanie danych
wejściowych w UTF-8.
%prep
-%setup -q -n %{name}
+%setup -q -n ufpdf -a1
-sed -i -e 's#fpdf.php#fpdf/fpdf.php#g' ufpdf.php
+sed -i -e 's#fpdf.php#fpdf/fpdf.php#g' ufpdf.php draw/*.php
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{php_data_dir}/ufpdf
cp -p ufpdf.php $RPM_BUILD_ROOT%{php_data_dir}/ufpdf/ufpdf.php
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{php_data_dir}/ufpdf/udraw.php
+cp -p draw/draw.php $RPM_BUILD_ROOT%{php_data_dir}/ufpdf/udraw.php
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.txt ufpdf-test.php tools/*.php
+%doc README.txt ufpdf-test.php tools/*.php draw/ex.php
%{php_data_dir}/ufpdf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-ufpdf.git/commitdiff/6963007ba8aff0f0b3136d0ec7ce7f8e77685a46
More information about the pld-cvs-commit
mailing list