]> git.pld-linux.org Git - packages/php-pear-Image_Text.git/blob - php-pear-Image_Text.spec
- use virtual php extension deps (to be independant of php version)
[packages/php-pear-Image_Text.git] / php-pear-Image_Text.spec
1 %define         status          beta
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}
7 Version:        0.6.1
8 Release:        2
9 License:        PHP 2.02
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
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 .%{php_pear_dir}/data/Image_Text/README .
52
53 mv docs/%{pearname}/example examples
54
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}}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
63 %pear_package_install
64
65 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README
74 %doc install.log
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/Image/*.php
77 %{_examplesdir}/%{name}-%{version}
This page took 0.062292 seconds and 4 git commands to generate.