]>
Commit | Line | Data |
---|---|---|
2b8aed15 ER |
1 | %define status stable |
2 | %define pearname Net_DNS2 | |
3 | %include /usr/lib/rpm/macros.php | |
4 | Summary: %{pearname} - PHP5 Resolver library used to communicate with a DNS server | |
5 | Name: php-pear-Net_DNS2 | |
8bab8211 | 6 | Version: 1.3.2 |
2b8aed15 ER |
7 | Release: 1 |
8 | License: BSD License | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz | |
8bab8211 | 11 | # Source0-md5: b44102f69fd2bfa841baf9075130c620 |
2b8aed15 ER |
12 | URL: http://pear.php.net/package/Net_DNS2/ |
13 | BuildRequires: php-packagexml2cl | |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.593 | |
17 | Requires: php-pear | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Provides (roughly) the same functionality as Net_DNS, but using PHP5 | |
23 | objects, exceptions for error handling, better sockets support. | |
24 | ||
25 | This release is (in most cases) 2x - 10x faster than Net_DNS, as well | |
26 | as includes more RR's (including DNSSEC RR's), and improved sockets | |
27 | and streams support. | |
28 | ||
29 | In PEAR status of this package is: %{status}. | |
30 | ||
31 | %prep | |
32 | %pear_package_setup | |
33 | ||
8bab8211 | 34 | mv docs/%{pearname}/LICENSE . |
f3c01d06 | 35 | |
2b8aed15 ER |
36 | %build |
37 | packagexml2cl package.xml > ChangeLog | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
42 | %pear_package_install | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
8bab8211 | 49 | %doc ChangeLog LICENSE install.log |
2b8aed15 ER |
50 | %{php_pear_dir}/.registry/*.reg |
51 | %{php_pear_dir}/Net/DNS2.php | |
52 | %{php_pear_dir}/Net/DNS2 |