SPECS: php-pear-Image_Text.spec - system vera
glen
glen at pld-linux.org
Thu Mar 13 22:28:43 CET 2008
Author: glen Date: Thu Mar 13 21:28:43 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- system vera
---- Files affected:
SPECS:
php-pear-Image_Text.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: SPECS/php-pear-Image_Text.spec
diff -u SPECS/php-pear-Image_Text.spec:1.28 SPECS/php-pear-Image_Text.spec:1.29
--- SPECS/php-pear-Image_Text.spec:1.28 Mon Feb 4 21:15:26 2008
+++ SPECS/php-pear-Image_Text.spec Thu Mar 13 22:28:38 2008
@@ -6,7 +6,7 @@
%define _pearname %{_class}_%{_subclass}
%define subver beta
-%define rel 4
+%define rel 5
Summary: %{_pearname} - comfortable processing of texts in images
Summary(pl.UTF-8): %{_pearname} - komfortowe przetwarzanie tekstu w obrazkach
Name: php-pear-%{_pearname}
@@ -53,8 +53,9 @@
Summary: Tests for PEAR::%{_pearname}
Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
Group: Development/Languages/PHP
-AutoReq: no
Requires: %{name} = %{version}-%{release}
+Requires: fonts-TTF-bitstream-vera
+AutoReq: no
AutoProv: no
%description tests
@@ -71,11 +72,18 @@
mv ./%{php_pear_dir}/tests/{*,.tmp}
mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
+# use system Vera.ttf
+sed -i -e "s,'Vera.ttf','/usr/share/fonts/TTF/Vera.ttf'," usr/share/pear/tests/Image_Text/TextTest.php
+sed -i -e "s,'Vera.ttf','/usr/share/fonts/TTF/Vera.ttf'," docs/Image_Text/example/example.php
+sed -i -e 's,"./Vera.ttf","/usr/share/fonts/TTF/Vera.ttf",' docs/Image_Text/example/example.php
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
%pear_package_install
+rm -f $RPM_BUILD_ROOT%{php_pear_dir}/data/Image_Text/tests/Vera.ttf
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -89,7 +97,6 @@
%files tests
%defattr(644,root,root,755)
%{php_pear_dir}/tests/%{_pearname}
-%{php_pear_dir}/data/Image_Text/tests/Vera.ttf
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -97,6 +104,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2008-03-13 21:28:38 glen
+- system vera
+
Revision 1.28 2008-02-04 20:15:26 glen
- rel 4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pear-Image_Text.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list