%include /usr/lib/rpm/macros.php %define _class Image %define _subclass Text %define _status beta %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - comfortable processing of texts in images Summary(pl): %{_pearname} - komfortowe przetwarzanie tekstu w obrazkach Name: php-pear-%{_pearname} Version: 0.5.0 Release: 1 License: PHP 2.02 Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz # Source0-md5: 84121838f5d3582225a64785ec63a4a5 URL: http://pear.php.net/package/Image_Text/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This class allows you to add text to dynamic generated images more comfortable. It allows you to process multiline text and manipulate: - Border - Shading - Alignment Another nice feature is to let the class measurize your text in respect to font size and line splitting to fit a given text box. This class has in PEAR status: %{_status}. %description -l pl Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych obrazków w sposób bardziej komfortowy niż dotychczas. Możliwe jest przetwarzanie tekstów wielolinijkowych i manipulowanie: - obramowaniem - cieniem - ustawieniem. Inną ciekawą cechą jest pozwolenie klasie na zmierzenie tekstu w zależności od rozmiaru czcionki i dzielenie go na linie, aby zmieścił się w podanym polu tekstowym. Ta klasa ma w PEAR status: %{_status}. %prep %setup -q -c %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} install %{_pearname}-%{version}/%{_class}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc %{_pearname}-%{version}/{example,make_doc{book,html}.sh} %{php_pear_dir}/%{_class}/*.php