]>
Commit | Line | Data |
---|---|---|
b4414519 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Net | |
3 | %define _subclass Nmap | |
33a12431 | 4 | %define _status stable |
b4414519 AG |
5 | %define _pearname Net_Nmap |
6 | Summary: %{_pearname} - A simple wrapper class for the Nmap utility | |
7 | Summary(pl.UTF-8): %{_pearname} - prosty wrapper dla programu nmap | |
8 | Name: php-pear-%{_pearname} | |
dbefecd5 | 9 | Version: 1.0.2 |
33a12431 | 10 | Release: 1 |
b4414519 AG |
11 | License: LGPL |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
dbefecd5 | 14 | # Source0-md5: bea20d4d59ba2d9faecfec01cfee1242 |
b4414519 AG |
15 | URL: http://pear.php.net/package/Net_Nmap/ |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | Requires: nmap | |
19 | Requires: php-pear | |
c449948f | 20 | Requires: php-pear-PEAR-core >= 1:1.4.0 |
b4414519 AG |
21 | Requires: php-pear-XML_Parser |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Net_Nmap is a simple interface for Nmap, the free and open source | |
27 | utility for network exploration or security auditing. | |
28 | ||
29 | Net_Nmap can be used to auto discovery hosts and services in your | |
30 | network or simply to parse Nmap XML output. | |
31 | ||
32 | In PEAR status of this package is: %{_status}. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Net_Nmap to prosty interfejs do programu nmap, nardzędzia do analizy | |
36 | ruchu i audytu bezpieczeństwa. | |
37 | ||
38 | Net_Nmap może być użyty do wykrycia maszyn i usług w sieci lub do | |
39 | analizy raportu XML z nmapa. | |
40 | ||
41 | Ta klasa ma w PEAR status: %{_status}. | |
42 | ||
43 | %package tests | |
44 | Summary: Tests for PEAR::%{_pearname} | |
45 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
46 | Group: Development/Languages/PHP | |
b4414519 AG |
47 | Requires: %{name} = %{version}-%{release} |
48 | AutoProv: no | |
dbefecd5 | 49 | AutoReq: no |
b4414519 AG |
50 | |
51 | %description tests | |
52 | Tests for PEAR::%{_pearname}. | |
53 | ||
54 | %description tests -l pl.UTF-8 | |
55 | Testy dla PEAR::%{_pearname}. | |
56 | ||
57 | %prep | |
58 | %pear_package_setup | |
b4414519 AG |
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}/Net/Nmap | |
73 | %{php_pear_dir}/Net/Nmap.php | |
74 | %{php_pear_dir}/data/Net_Nmap | |
75 | ||
76 | %files tests | |
77 | %defattr(644,root,root,755) | |
78 | %{php_pear_dir}/tests/Net_Nmap |