]>
Commit | Line | Data |
---|---|---|
4c433d94 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Net | |
3 | %define _subclass DNSBL | |
cca56a78 | 4 | %define _status stable |
4c433d94 AG |
5 | %define _pearname %{_class}_%{_subclass} |
6 | ||
7 | Summary: %{_pearname} - DNSBL Checker | |
2206ff55 | 8 | Summary(pl.UTF-8): %{_pearname} - Odpytywanie DNSBL |
4c433d94 | 9 | Name: php-pear-%{_pearname} |
e142e325 | 10 | Version: 1.3.0 |
44a67a2f | 11 | Release: 4 |
4e0a1295 | 12 | Epoch: 0 |
4c433d94 AG |
13 | License: PHP 2.02 |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
e142e325 | 16 | # Source0-md5: 0b89748b71ccf15885af2fbbc4e642df |
4c433d94 | 17 | URL: http://pear.php.net/package/Net_DNSBL/ |
c2b00763 | 18 | BuildRequires: php-pear-PEAR |
62de2e03 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
146cf3fc | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
86b30d96 | 21 | Requires: php-common >= 3:4.3.11 |
4c433d94 | 22 | Requires: php-pear |
85fc15de | 23 | Requires: php-pear-Net_CheckIP >= 1.1 |
5f69ba45 | 24 | Requires: php-pear-Net_DNS >= 1.0.0 |
44a67a2f | 25 | Requires: php-pear-PEAR-core >= 1:1.4.0 |
5f69ba45 ER |
26 | Suggests: php-pear-Cache_Lite >= 1.4.1 |
27 | Suggests: php-pear-HTTP_Request >= 1.2.3 | |
4c433d94 AG |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
5f69ba45 ER |
31 | # exclude optional dependencies |
32 | %define _noautoreq 'pear(Cache/Lite.php)' 'pear(HTTP/Request.php)' | |
33 | ||
4c433d94 AG |
34 | %description |
35 | Checks if a given Host or URL is listed on an DNSBL or SURBL. | |
36 | ||
37 | In PEAR status of this package is: %{_status}. | |
38 | ||
582e008e JR |
39 | %description -l pl.UTF-8 |
40 | Za pomocą tej klasy można sprawdzić czy dany host lub URL jest wpisany | |
4c433d94 AG |
41 | na listy DNSBL lub SURBL. |
42 | ||
43 | Ta klasa ma w PEAR status: %{_status}. | |
44 | ||
62de2e03 ER |
45 | %package tests |
46 | Summary: Tests for PEAR::%{_pearname} | |
2206ff55 | 47 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
f69ba85e | 48 | Group: Development/Languages/PHP |
62de2e03 | 49 | Requires: %{name} = %{epoch}:%{version}-%{release} |
47494119 | 50 | AutoProv: no |
5f69ba45 | 51 | AutoReq: no |
62de2e03 ER |
52 | |
53 | %description tests | |
54 | Tests for PEAR::%{_pearname}. | |
55 | ||
582e008e | 56 | %description tests -l pl.UTF-8 |
62de2e03 ER |
57 | Testy dla PEAR::%{_pearname}. |
58 | ||
4c433d94 | 59 | %prep |
62de2e03 | 60 | %pear_package_setup |
85fc15de ER |
61 | mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,} |
62 | rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests | |
63 | rm -rf .%{php_pear_dir}/tests/Net_DNSBL/Tests | |
4c433d94 AG |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
62de2e03 ER |
67 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
68 | %pear_package_install | |
4c433d94 AG |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
62de2e03 ER |
75 | %doc install.log |
76 | %{php_pear_dir}/.registry/*.reg | |
4c433d94 AG |
77 | %{php_pear_dir}/%{_class}/*.php |
78 | %{php_pear_dir}/%{_class}/%{_subclass} | |
62de2e03 ER |
79 | |
80 | %files tests | |
81 | %defattr(644,root,root,755) | |
82 | %{php_pear_dir}/tests/* |