2 %define pearname Image_Text
3 %include /usr/lib/rpm/macros.php
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: 5b07f8fe4d384e89cdb273f3a05b1216
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.580
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 .%{php_pear_dir}/data/Image_Text/README .
53 mv docs/%{pearname}/example examples
55 # tests -> tests/%{pearname}
56 install -d ./%{php_pear_dir}/tests/.tmp
57 mv ./%{php_pear_dir}/tests/{*,.tmp}
58 mv ./%{php_pear_dir}/tests/{.tmp,%{pearname}}
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
65 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/Image/*.php
77 %{_examplesdir}/%{name}-%{version}