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