]>
Commit | Line | Data |
---|---|---|
b8c406f2 | 1 | %include /usr/lib/rpm/macros.php |
b8c406f2 | 2 | %define _status alpha |
3391aace | 3 | %define _pearname Text_CAPTCHA |
b8c406f2 | 4 | Summary: %{_pearname} - generation of CAPTCHA imgaes |
179f2ede | 5 | Summary(pl.UTF-8): %{_pearname} - generowanie obrazów CAPTCHA |
b8c406f2 | 6 | Name: php-pear-%{_pearname} |
9792a01a | 7 | Version: 1.0.2 |
b5246944 | 8 | Release: 1 |
b8c406f2 AG |
9 | License: PHP 2.02 |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
9792a01a | 12 | # Source0-md5: 3c30c8650436ea2e961c29e9eedf0066 |
3391aace | 13 | URL: http://pear.php.net/package/ |
b5246944 | 14 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 |
dfadcb04 | 15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
3391aace ER |
16 | BuildRequires: rpmbuild(macros) >= 1.571 |
17 | Requires: php-pear >= 4:1.3-5 | |
85a1e9b2 | 18 | Requires: php-pear-Text_Password |
9792a01a | 19 | Suggests: php(gd) |
55a9ceaa ER |
20 | Suggests: php-pear-Image_Text |
21 | Suggests: php-pear-Numbers_Words | |
22 | Suggests: php-pear-Text_Figlet | |
b8c406f2 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
b5124265 ER |
26 | # exclude optional dependencies |
27 | %define _noautoreq 'pear(Numbers/Words.*)' 'pear(Text/Figlet.*)' 'pear(Image/Text.*)' | |
28 | ||
b8c406f2 AG |
29 | %description |
30 | Implementation of CAPTCHA (completely automated public Turing test to | |
31 | tell computers and humans apart) images. | |
32 | ||
33 | In PEAR status of this package is: %{_status}. | |
34 | ||
60011cdb JR |
35 | %description -l pl.UTF-8 |
36 | Implementacja obrazów CAPTCHA (całkowicie zautomatyzowanego | |
37 | publicznego testu Turinga do odróżnienia ludzi od komputerów). | |
b8c406f2 AG |
38 | |
39 | Ta klasa ma w PEAR status: %{_status}. | |
40 | ||
41 | %prep | |
dfadcb04 | 42 | %pear_package_setup |
b8c406f2 AG |
43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
dfadcb04 ER |
46 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
47 | %pear_package_install | |
b8c406f2 AG |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
3391aace ER |
52 | %post -p <lua> |
53 | %pear_package_print_optionalpackages | |
b5124265 | 54 | |
b8c406f2 AG |
55 | %files |
56 | %defattr(644,root,root,755) | |
b5124265 | 57 | %doc install.log optional-packages.txt |
dfadcb04 ER |
58 | %doc docs/%{_pearname}/* |
59 | %{php_pear_dir}/.registry/*.reg | |
3391aace ER |
60 | %{php_pear_dir}/Text/CAPTCHA.php |
61 | %{php_pear_dir}/Text/CAPTCHA/* |