2 %define pearname Image_Text
3 %define php_min_version 5.0.0
4 %include /usr/lib/rpm/macros.php
5 Summary: %{pearname} - comfortable processing of texts in images
6 Summary(pl.UTF-8): %{pearname} - komfortowe przetwarzanie tekstu w obrazkach
7 Name: php-pear-%{pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
13 # Source0-md5: 034c356787c73dd1a88567bf01bb7923
14 Patch0: fontpath.patch
15 URL: http://pear.php.net/package/Image_Text/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.580
19 Requires: php(core) >= %{php_min_version}
22 Obsoletes: php-pear-Image_Text-tests
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This class allows you to add text to dynamic generated images more
28 comfortable. It allows you to process multiline text and manipulate:
31 - Alignment Another nice feature is to let the class measurize your
32 text in respect to font size and line splitting to fit a given text
35 In PEAR status of this package is: %{status}.
37 %description -l pl.UTF-8
38 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
39 obrazków w sposób bardziej komfortowy niż dotychczas. Możliwe jest
40 przetwarzanie tekstów wielolinijkowych i manipulowanie:
43 - ustawieniem. Inną ciekawą cechą jest pozwolenie klasie na zmierzenie
44 tekstu w zależności od rozmiaru czcionki i dzielenie go na linie, aby
45 zmieścił się w podanym polu tekstowym.
47 Ta klasa ma w PEAR status: %{status}.
53 mv docs/%{pearname}/* .
54 mv .%{php_pear_dir}/tests/Image_Text/tests .
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
61 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
71 %{php_pear_dir}/.registry/*.reg
72 %{php_pear_dir}/Image/Text.php
73 %{php_pear_dir}/Image/Text
74 %{_examplesdir}/%{name}-%{version}