]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blob - php-pear-Image_Text.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 Summary:        %{pearname} - comfortable processing of texts in images
5 Summary(pl.UTF-8):      %{pearname} - komfortowe przetwarzanie tekstu w obrazkach
6 Name:           php-pear-%{pearname}
7 Version:        0.7.0
8 Release:        1
9 License:        PHP 2.02
10 Group:          Development/Languages/PHP
11 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
12 # Source0-md5:  034c356787c73dd1a88567bf01bb7923
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
18 Requires:       php(core) >= %{php_min_version}
19 Requires:       php(gd)
20 Requires:       php-pear
21 Obsoletes:      php-pear-Image_Text-tests
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This class allows you to add text to dynamic generated images more
27 comfortable. It allows you to process multiline text and manipulate:
28 - Border
29 - Shading
30 - Alignment Another nice feature is to let the class measurize your
31   text in respect to font size and line splitting to fit a given text
32   box.
33
34 In PEAR status of this package is: %{status}.
35
36 %description -l pl.UTF-8
37 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
38 obrazków w sposób bardziej komfortowy niż dotychczas. Możliwe jest
39 przetwarzanie tekstów wielolinijkowych i manipulowanie:
40 - obramowaniem
41 - cieniem
42 - ustawieniem. Inną ciekawą cechą jest pozwolenie klasie na zmierzenie
43   tekstu w zależności od rozmiaru czcionki i dzielenie go na linie, aby
44   zmieścił się w podanym polu tekstowym.
45
46 Ta klasa ma w PEAR status: %{status}.
47
48 %prep
49 %pear_package_setup
50 %patch0 -p1
51
52 mv docs/%{pearname}/* .
53 mv .%{php_pear_dir}/tests/Image_Text/tests .
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
58 %pear_package_install
59
60 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README
69 %doc install.log
70 %{php_pear_dir}/.registry/*.reg
71 %{php_pear_dir}/Image/Text.php
72 %{php_pear_dir}/Image/Text
73 %{_examplesdir}/%{name}-%{version}
This page took 0.082853 seconds and 4 git commands to generate.