]> git.pld-linux.org Git - packages/php-pear-Text_CAPTCHA_Numeral.git/blob - php-pear-Text_CAPTCHA_Numeral.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Text_CAPTCHA_Numeral.git] / php-pear-Text_CAPTCHA_Numeral.spec
1 %define         status          stable
2 %define         pearname        Text_CAPTCHA_Numeral
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
7 Release:        1
8 License:        BSD License
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  16b98ca2d1af630120665808e704fae5
12 URL:            http://pear.php.net/package/Text_CAPTCHA_Numeral/
13 BuildRequires:  php-pear-PEAR
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.654
16 Requires:       php-pear >= 4:1.3-5
17 Obsoletes:      php-pear-Text_CAPTCHA_Numeral-tests
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 %prep
34 %pear_package_setup
35
36 mv docs/Text_CAPTCHA_Numeral/examples .
37 mv .%{php_pear_dir}/data/Text_CAPTCHA_Numeral/composer.json .
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{php_pear_dir}
42 %pear_package_install
43
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc install.log
53 %{php_pear_dir}/.registry/*.reg
54 %{php_pear_dir}/Text/CAPTCHA/Numeral.php
55 %{php_pear_dir}/Text/CAPTCHA/Numeral
56 %{_examplesdir}/%{name}-%{version}
This page took 0.070461 seconds and 3 git commands to generate.