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