1 %include /usr/lib/rpm/macros.php
3 %define _subclass DNSBL
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - DNSBL Checker
8 Summary(pl): %{_pearname} - Odpytywanie DNSBL
9 Name: php-pear-%{_pearname}
14 Group: Development/Languages/PHP
15 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
16 # Source0-md5: fcc53573625e56cf53c053678ae7ada7
17 URL: http://pear.php.net/package/Net_DNSBL/
18 BuildRequires: php-pear-PEAR
19 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 Requires: php-common >= 3:4.3.6
22 Requires: php-pear-Cache_Lite >= 1.3.1
23 Requires: php-pear-HTTP_Request >= 1.2.3
24 Requires: php-pear-Net_CheckIP >= 1.1
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Checks if a given Host or URL is listed on an DNSBL or SURBL.
31 In PEAR status of this package is: %{_status}.
34 Za pomoc± tej klasy mo¿na sprawdziæ czy dany host lub URL jest wpisany
35 na listy DNSBL lub SURBL.
37 Ta klasa ma w PEAR status: %{_status}.
40 Summary: Tests for PEAR::%{_pearname}
41 Summary(pl): Testy dla PEAR::%{_pearname}
42 Group: Development/Languages/PHP
43 Requires: %{name} = %{epoch}:%{version}-%{release}
47 Tests for PEAR::%{_pearname}.
49 %description tests -l pl
50 Testy dla PEAR::%{_pearname}.
54 mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,}
55 rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests
56 rm -rf .%{php_pear_dir}/tests/Net_DNSBL/Tests
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{php_pear_dir}/.registry/*.reg
70 %{php_pear_dir}/%{_class}/*.php
71 %{php_pear_dir}/%{_class}/%{_subclass}
74 %defattr(644,root,root,755)
75 %{php_pear_dir}/tests/*