1 %include /usr/lib/rpm/macros.php
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - Comfortable processing of texts in images
8 Summary(pl): %{_pearname} - Komfortowe przetwarzanie tekstu w obrazkach
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 0e7eeebb25539679ec789f15c7985109
16 URL: http://pear.php.net/package/Image_Text/
17 BuildRequires: rpm-php-pearprov >= 4.0.2-98
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This class allows you to add text to dynamic generated images more
24 comfortable. It allows you to process multiline text and manipulate:
28 Another nice feature is to let the class measurize your text in respect
29 to font size and line splitting to fit a given text box.
31 This class has in PEAR status: %{_status}.
34 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
35 obrazków w sposób bardziej komfortowy ni¿ dotychczas. Mo¿liwe jest
36 przetwarzanie tekstów wielolinijkowych i manipulowanie:
40 Inn± ciekaw± cech± jest pozwolenie klasie na zmierzenie tekstu w
41 zale¿no¶ci od rozmiaru czcionki i dzielenie go na linie, aby zmie¶ci³
42 siê w podanym polu tekstowym.
44 Ta klasa ma w PEAR status: %{_status}.
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
53 install %{_pearname}-%{version}/%{_class}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc %{_pearname}-%{version}/{example,make_doc{book,html}.sh}
61 %{php_pear_dir}/%{_class}/*.php