]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blob - php-pear-Image_Text.spec
- up to 0.6.0 beta release
[packages/php-pear-Image_Text.git] / php-pear-Image_Text.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _status         beta
3 %define         _pearname       Image_Text
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.6.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:  c62ba5d96331a6ee9fc6b4babea574b9
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.300
18 Requires:       php-gd
19 Requires:       php-pear
20 Obsoletes:      php-pear-Image_Text-tests
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This class allows you to add text to dynamic generated images more
26 comfortable. It allows you to process multiline text and manipulate:
27 - Border
28 - Shading
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
31   box.
32
33 In PEAR status of this package is: %{_status}.
34
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:
39 - obramowaniem
40 - cieniem
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.
44
45 Ta klasa ma w PEAR status: %{_status}.
46
47 %prep
48 %pear_package_setup
49 %patch0 -p1
50
51 mv docs/%{_pearname}/example examples
52
53 # tests -> tests/%{_pearname}
54 install -d ./%{php_pear_dir}/tests/.tmp
55 mv ./%{php_pear_dir}/tests/{*,.tmp}
56 mv ./%{php_pear_dir}/tests/{.tmp,%{_pearname}}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
61 %pear_package_install
62
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65
66 # tests should not be packaged
67 %{__rm} -r $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc install.log
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/Image/*.php
77 %{_examplesdir}/%{name}-%{version}
This page took 0.090063 seconds and 4 git commands to generate.