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