]> git.pld-linux.org Git - packages/php-pear-Net_Portscan.git/blob - php-pear-Net_Portscan.spec
- BR rpm-build macros >= 1.300 for %pear_ macros
[packages/php-pear-Net_Portscan.git] / php-pear-Net_Portscan.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Net
3 %define         _subclass       Portscan
4 %define         _status         stable
5 %define         _pearname       %{_class}_%{_subclass}
6
7 Summary:        %{_pearname} - portscanner utilities
8 Summary(pl):    %{_pearname} - narzêdzia skanuj±ce porty
9 Name:           php-pear-%{_pearname}
10 Version:        1.0.2
11 Release:        3
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:  37f71b85c3f9a4acff42d019b6d23cd3
17 URL:            http://pear.php.net/package/Net_Portscan/
18 BuildRequires:  php-pear-PEAR
19 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
20 BuildRequires:  rpmbuild(macros) >= 1.300
21 Requires:       php-pear
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The Net_Portscan package allows one to perform basic portscanning
27 functions with PHP. It supports checking an individual port or
28 checking a whole range of ports on a machine.
29
30 In PEAR status of this package is: %{_status}.
31
32 %description -l pl
33 Pakiet Net_Portscan pozwala na podstawowe skany portów przy u¿yciu
34 PHP. Umo¿liwia sprawdzanie pojedynczych portów, jak i ca³ych zakresów
35 portów na danej maszynie.
36
37 Ta klasa ma w PEAR status: %{_status}.
38
39 %package tests
40 Summary:        Tests for PEAR::%{_pearname}
41 Summary(pl):    Testy dla PEAR::%{_pearname}
42 Group:          Development/Languages/PHP
43 Requires:       %{name} = %{epoch}:%{version}-%{release}
44 AutoReq:        no
45 AutoProv:       no
46
47 %description tests
48 Tests for PEAR::%{_pearname}.
49
50 %description tests -l pl
51 Testy dla PEAR::%{_pearname}.
52
53 %prep
54 %pear_package_setup
55
56 install -d ./%{php_pear_dir}/tests/%{_pearname}
57 mv ./%{php_pear_dir}/{%{_class}/tests/*,tests/%{_pearname}}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{php_pear_dir}
62 %pear_package_install
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc install.log
70 %doc docs/%{_pearname}/*
71 %{php_pear_dir}/.registry/*.reg
72 %{php_pear_dir}/%{_class}/*.php
73
74 %files tests
75 %defattr(644,root,root,755)
76 %{php_pear_dir}/tests/*
This page took 0.15535 seconds and 4 git commands to generate.