]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blob - php-pear-Image_Text.spec
- system vera
[packages/php-pear-Image_Text.git] / php-pear-Image_Text.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Image
3 %define         _subclass       Text
4 %define         _status         beta
5 %define         _pearname       %{_class}_%{_subclass}
6
7 %define         subver  beta
8 %define         rel             5
9 Summary:        %{_pearname} - comfortable processing of texts in images
10 Summary(pl.UTF-8):      %{_pearname} - komfortowe przetwarzanie tekstu w obrazkach
11 Name:           php-pear-%{_pearname}
12 Version:        0.6.0
13 Release:        0.%{subver}.%{rel}
14 License:        PHP 2.02
15 Group:          Development/Languages/PHP
16 Source0:        http://pear.php.net/get/%{_pearname}-%{version}%{subver}.tgz
17 # Source0-md5:  11ef956fc2a93fd359a80bde7fc0e8e8
18 URL:            http://pear.php.net/package/Image_Text/
19 BuildRequires:  php-pear-PEAR
20 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
21 BuildRequires:  rpmbuild(macros) >= 1.300
22 Requires:       php(gd)
23 Requires:       php-pear
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This class allows you to add text to dynamic generated images more
29 comfortable. It allows you to process multiline text and manipulate:
30 - Border
31 - Shading
32 - Alignment
33 Another nice feature is to let the class measurize your text in respect
34 to font size and line splitting to fit a given text box.
35
36 In PEAR status of this package is: %{_status}.
37
38 %description -l pl.UTF-8
39 Ta klasa pozwala na dodanie tekstu do dynamicznie generowanych
40 obrazków w sposób bardziej komfortowy niż dotychczas. Możliwe jest
41 przetwarzanie tekstów wielolinijkowych i manipulowanie:
42 - obramowaniem
43 - cieniem
44 - ustawieniem.
45 Inną ciekawą cechą jest pozwolenie klasie na zmierzenie tekstu w
46 zależności od rozmiaru czcionki i dzielenie go na linie, aby zmieścił
47 się w podanym polu tekstowym.
48
49 Ta klasa ma w PEAR status: %{_status}.
50
51 %package tests
52 Summary:        Tests for PEAR::%{_pearname}
53 Summary(pl.UTF-8):      Testy dla PEAR::%{_pearname}
54 Group:          Development/Languages/PHP
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       fonts-TTF-bitstream-vera
57 AutoReq:        no
58 AutoProv:       no
59
60 %description tests
61 Tests for PEAR::%{_pearname}.
62
63 %description tests -l pl.UTF-8
64 Testy dla PEAR::%{_pearname}.
65
66 %prep
67 %pear_package_setup
68
69 # tests -> tests/%{_pearname}
70 install -d ./%{php_pear_dir}/tests/.tmp
71 mv ./%{php_pear_dir}/tests/{*,.tmp}
72 mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
73
74 # use system Vera.ttf
75 sed -i -e "s,'Vera.ttf','/usr/share/fonts/TTF/Vera.ttf'," usr/share/pear/tests/Image_Text/TextTest.php
76 sed -i -e "s,'Vera.ttf','/usr/share/fonts/TTF/Vera.ttf'," docs/Image_Text/example/example.php
77 sed -i -e 's,"./Vera.ttf","/usr/share/fonts/TTF/Vera.ttf",' docs/Image_Text/example/example.php
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
82 %pear_package_install
83
84 rm -f $RPM_BUILD_ROOT%{php_pear_dir}/data/Image_Text/tests/Vera.ttf
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc install.log
92 %doc docs/%{_pearname}/example
93 %{php_pear_dir}/.registry/*.reg
94 %{php_pear_dir}/%{_class}/*.php
95
96 %files tests
97 %defattr(644,root,root,755)
98 %{php_pear_dir}/tests/%{_pearname}
This page took 0.139684 seconds and 4 git commands to generate.