1 %include /usr/lib/rpm/macros.php
3 %define _pearname Image_Text
4 Summary: %{_pearname} - comfortable processing of texts in images
5 Summary(pl.UTF-8): %{_pearname} - komfortowe przetwarzanie tekstu w obrazkach
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: c62ba5d96331a6ee9fc6b4babea574b9
13 Patch0: fontpath.patch
14 URL: http://pear.php.net/package/Image_Text/
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
20 Obsoletes: php-pear-Image_Text-tests
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This class allows you to add text to dynamic generated images more
26 comfortable. It allows you to process multiline text and manipulate:
29 - Alignment Another nice feature is to let the class measurize your
30 text in respect to font size and line splitting to fit a given text
33 In PEAR status of this package is: %{_status}.
35 %description -l pl.UTF-8
36 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
37 obrazków w sposób bardziej komfortowy niż dotychczas. Możliwe jest
38 przetwarzanie tekstów wielolinijkowych i manipulowanie:
41 - ustawieniem. Inną ciekawą cechą jest pozwolenie klasie na zmierzenie
42 tekstu w zależności od rozmiaru czcionki i dzielenie go na linie, aby
43 zmieścił się w podanym polu tekstowym.
45 Ta klasa ma w PEAR status: %{_status}.
51 mv docs/%{_pearname}/example examples
53 # tests -> tests/%{_pearname}
54 install -d ./%{php_pear_dir}/tests/.tmp
55 mv ./%{php_pear_dir}/tests/{*,.tmp}
56 mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 # tests should not be packaged
67 %{__rm} -r $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/Image/*.php
77 %{_examplesdir}/%{name}-%{version}