]>
Commit | Line | Data |
---|---|---|
b1369283 ER |
1 | %define status stable |
2 | %define pearname Text_CAPTCHA_Numeral | |
b1369283 ER |
3 | Summary: %{pearname} - generation of numeral maths captchas |
4 | Summary(pl.UTF-8): %{pearname} - generowanie matematycznych captcha | |
5 | Name: php-pear-%{pearname} | |
6 | Version: 1.3.2 | |
6605357e | 7 | Release: 1 |
4babc0d8 AG |
8 | License: BSD License |
9 | Group: Development/Languages/PHP | |
b1369283 ER |
10 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz |
11 | # Source0-md5: 16b98ca2d1af630120665808e704fae5 | |
4babc0d8 AG |
12 | URL: http://pear.php.net/package/Text_CAPTCHA_Numeral/ |
13 | BuildRequires: php-pear-PEAR | |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
b1369283 | 15 | BuildRequires: rpmbuild(macros) >= 1.654 |
bc52513d | 16 | Requires: php-pear >= 4:1.3-5 |
c61fe86e | 17 | Obsoletes: php-pear-Text_CAPTCHA_Numeral-tests |
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 | ||
b1369283 | 25 | In PEAR status of this package is: %{status}. |
4babc0d8 AG |
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 | ||
b1369283 | 31 | Ta klasa ma w PEAR status: %{status}. |
4babc0d8 | 32 | |
4babc0d8 AG |
33 | %prep |
34 | %pear_package_setup | |
35 | ||
bc52513d | 36 | mv docs/Text_CAPTCHA_Numeral/examples . |
b1369283 | 37 | mv .%{php_pear_dir}/data/Text_CAPTCHA_Numeral/composer.json . |
bc52513d | 38 | |
4babc0d8 AG |
39 | %install |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
42 | %pear_package_install | |
43 | ||
bc52513d ER |
44 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
45 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46 | ||
4babc0d8 AG |
47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
bc52513d | 52 | %doc install.log |
4babc0d8 | 53 | %{php_pear_dir}/.registry/*.reg |
e79eb076 | 54 | %{php_pear_dir}/Text/CAPTCHA/Numeral.php |
bc52513d | 55 | %{php_pear_dir}/Text/CAPTCHA/Numeral |
bc52513d | 56 | %{_examplesdir}/%{name}-%{version} |