]>
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 | |
179f2ede | 8 | Summary(pl.UTF-8): %{_pearname} - generowanie obrazów CAPTCHA |
b8c406f2 | 9 | Name: php-pear-%{_pearname} |
9d74a91c AG |
10 | Version: 0.3.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 | |
9d74a91c | 15 | # Source0-md5: 51902a7ba321ce06fb9487af7ee26500 |
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 | ||
b5124265 ER |
27 | # exclude optional dependencies |
28 | %define _noautoreq 'pear(Numbers/Words.*)' 'pear(Text/Figlet.*)' 'pear(Image/Text.*)' | |
29 | ||
b8c406f2 AG |
30 | %description |
31 | Implementation of CAPTCHA (completely automated public Turing test to | |
32 | tell computers and humans apart) images. | |
33 | ||
34 | In PEAR status of this package is: %{_status}. | |
35 | ||
60011cdb JR |
36 | %description -l pl.UTF-8 |
37 | Implementacja obrazów CAPTCHA (całkowicie zautomatyzowanego | |
38 | publicznego testu Turinga do odróżnienia ludzi od komputerów). | |
b8c406f2 AG |
39 | |
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
42 | %prep | |
dfadcb04 | 43 | %pear_package_setup |
b8c406f2 AG |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
dfadcb04 ER |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
48 | %pear_package_install | |
b8c406f2 AG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
b5124265 ER |
53 | %post |
54 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
55 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
56 | fi | |
57 | ||
b8c406f2 AG |
58 | %files |
59 | %defattr(644,root,root,755) | |
b5124265 | 60 | %doc install.log optional-packages.txt |
dfadcb04 ER |
61 | %doc docs/%{_pearname}/* |
62 | %{php_pear_dir}/.registry/*.reg | |
b8c406f2 AG |
63 | %{php_pear_dir}/%{_class}/*.php |
64 | %{php_pear_dir}/%{_class}/%{_subclass} |