]>
Commit | Line | Data |
---|---|---|
b8c406f2 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Text | |
3 | %define _subclass CAPTCHA | |
4 | %define _status alpha | |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
7 | Summary: %{_pearname} - generation of CAPTCHA imgaes | |
60011cdb | 8 | Summary(pl.UTF-8): %{_pearname} - generowanie obrazów CAPTCHA |
b8c406f2 | 9 | Name: php-pear-%{_pearname} |
e35d4fe8 AG |
10 | Version: 0.2.0 |
11 | Release: 1 | |
b8c406f2 AG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
e35d4fe8 | 15 | # Source0-md5: cb4c81777be06d4dae452151035175ef |
b8c406f2 | 16 | URL: http://pear.php.net/package/Text_CAPTCHA/ |
b0e20990 | 17 | BuildRequires: php-pear-PEAR |
dfadcb04 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
6b2198a4 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
964aa39f | 20 | Requires: php(gd) |
b8c406f2 | 21 | Requires: php-pear |
85a1e9b2 ER |
22 | Requires: php-pear-Image_Text |
23 | Requires: php-pear-Text_Password | |
b8c406f2 AG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Implementation of CAPTCHA (completely automated public Turing test to | |
29 | tell computers and humans apart) images. | |
30 | ||
31 | In PEAR status of this package is: %{_status}. | |
32 | ||
60011cdb JR |
33 | %description -l pl.UTF-8 |
34 | Implementacja obrazów CAPTCHA (całkowicie zautomatyzowanego | |
35 | publicznego testu Turinga do odróżnienia ludzi od komputerów). | |
b8c406f2 AG |
36 | |
37 | Ta klasa ma w PEAR status: %{_status}. | |
38 | ||
39 | %prep | |
dfadcb04 | 40 | %pear_package_setup |
b8c406f2 AG |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
dfadcb04 ER |
44 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
45 | %pear_package_install | |
b8c406f2 AG |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
dfadcb04 ER |
52 | %doc install.log |
53 | %doc docs/%{_pearname}/* | |
54 | %{php_pear_dir}/.registry/*.reg | |
b8c406f2 AG |
55 | %{php_pear_dir}/%{_class}/*.php |
56 | %{php_pear_dir}/%{_class}/%{_subclass} |