]>
Commit | Line | Data |
---|---|---|
4babc0d8 | 1 | %include /usr/lib/rpm/macros.php |
4babc0d8 AG |
2 | %define _status stable |
3 | %define _pearname Text_CAPTCHA_Numeral | |
4 | Summary: %{_pearname} - generation of numeral maths captchas | |
5 | Summary(pl.UTF-8): %{_pearname} - generowanie matematycznych captcha | |
6 | Name: php-pear-%{_pearname} | |
6605357e ER |
7 | Version: 1.3.0 |
8 | Release: 1 | |
4babc0d8 AG |
9 | License: BSD License |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
6605357e | 12 | # Source0-md5: 7e7c51c49fbd20702a531a235bd19f5e |
4babc0d8 AG |
13 | URL: http://pear.php.net/package/Text_CAPTCHA_Numeral/ |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
3db4845e | 16 | BuildRequires: rpmbuild(macros) >= 1.300 |
bc52513d | 17 | Requires: php-pear >= 4:1.3-5 |
4babc0d8 AG |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Numeral captcha generates mathematical operations and answers in order | |
23 | to prove that bots using it are human. | |
24 | ||
25 | In PEAR status of this package is: %{_status}. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Liczbowe captcha polega na generowania równań matecznych i rozwiązań | |
29 | do nich w celu rozróżnienia między ludźmi a botami. | |
30 | ||
31 | Ta klasa ma w PEAR status: %{_status}. | |
32 | ||
33 | %package tests | |
34 | Summary: Tests for PEAR::%{_pearname} | |
35 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
36 | Group: Development/Languages/PHP | |
4babc0d8 AG |
37 | Requires: %{name} = %{version}-%{release} |
38 | AutoProv: no | |
bc52513d | 39 | AutoReq: no |
4babc0d8 AG |
40 | |
41 | %description tests | |
42 | Tests for PEAR::%{_pearname}. | |
43 | ||
44 | %description tests -l pl.UTF-8 | |
45 | Testy dla PEAR::%{_pearname}. | |
46 | ||
47 | %prep | |
48 | %pear_package_setup | |
49 | ||
bc52513d ER |
50 | mv docs/Text_CAPTCHA_Numeral/examples . |
51 | ||
4babc0d8 AG |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
55 | %pear_package_install | |
56 | ||
bc52513d ER |
57 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
58 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
59 | ||
4babc0d8 AG |
60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
bc52513d | 65 | %doc install.log |
4babc0d8 | 66 | %{php_pear_dir}/.registry/*.reg |
e79eb076 | 67 | %{php_pear_dir}/Text/CAPTCHA/Numeral.php |
bc52513d ER |
68 | %{php_pear_dir}/Text/CAPTCHA/Numeral |
69 | ||
70 | %{_examplesdir}/%{name}-%{version} | |
4babc0d8 AG |
71 | |
72 | %files tests | |
73 | %defattr(644,root,root,755) | |
74 | %{php_pear_dir}/tests/Text_CAPTCHA_Numeral |