]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blob - php-pear-Image_Text.spec
up to 0.7.0
[packages/php-pear-Image_Text.git] / php-pear-Image_Text.spec
1 %define         status          beta
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}
8 Version:        0.7.0
9 Release:        1
10 License:        PHP 2.02
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}
20 Requires:       php(gd)
21 Requires:       php-pear
22 Obsoletes:      php-pear-Image_Text-tests
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This class allows you to add text to dynamic generated images more
28 comfortable. It allows you to process multiline text and manipulate:
29 - Border
30 - Shading
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
33   box.
34
35 In PEAR status of this package is: %{status}.
36
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:
41 - obramowaniem
42 - cieniem
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.
46
47 Ta klasa ma w PEAR status: %{status}.
48
49 %prep
50 %pear_package_setup
51 %patch0 -p1
52
53 mv docs/%{pearname}/* .
54 mv .%{php_pear_dir}/tests/Image_Text/tests .
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
59 %pear_package_install
60
61 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc README
70 %doc install.log
71 %{php_pear_dir}/.registry/*.reg
72 %{php_pear_dir}/Image/Text.php
73 %{php_pear_dir}/Image/Text
74 %{_examplesdir}/%{name}-%{version}
This page took 0.042398 seconds and 4 git commands to generate.