]> git.pld-linux.org Git - packages/php-pear-Net_DNSBL.git/blob - php-pear-Net_DNSBL.spec
66a7a6234f3975d13b6abc77146f540068d5e115
[packages/php-pear-Net_DNSBL.git] / php-pear-Net_DNSBL.spec
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.3.3
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:  0d9faf8feeaf4f8528d88a4a32f3ca44
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-Net_CheckIP >= 1.1
24 Requires:       php-pear-Net_DNS >= 1.0.0
25 Requires:       php-pear-PEAR-core >= 1:1.4.0
26 Suggests:       php-pear-Cache_Lite >= 1.4.1
27 Suggests:       php-pear-HTTP_Request >= 1.2.3
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 # exclude optional dependencies
32 %define         _noautoreq      'pear(Cache/Lite.php)' 'pear(HTTP/Request.php)'
33
34 %description
35 Checks if a given Host or URL is listed on an DNSBL or SURBL.
36
37 In PEAR status of this package is: %{_status}.
38
39 %description -l pl.UTF-8
40 Za pomocą tej klasy można sprawdzić czy dany host lub URL jest wpisany
41 na listy DNSBL lub SURBL.
42
43 Ta klasa ma w PEAR status: %{_status}.
44
45 %package tests
46 Summary:        Tests for PEAR::%{_pearname}
47 Summary(pl.UTF-8):      Testy dla PEAR::%{_pearname}
48 Group:          Development/Languages/PHP
49 Requires:       %{name} = %{epoch}:%{version}-%{release}
50 AutoProv:       no
51 AutoReq:        no
52
53 %description tests
54 Tests for PEAR::%{_pearname}.
55
56 %description tests -l pl.UTF-8
57 Testy dla PEAR::%{_pearname}.
58
59 %prep
60 %pear_package_setup
61 mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,}
62 rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests
63 rm -rf .%{php_pear_dir}/tests/Net_DNSBL/Tests
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{php_pear_dir}
68 %pear_package_install
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc install.log
76 %{php_pear_dir}/.registry/*.reg
77 %{php_pear_dir}/%{_class}/*.php
78 %{php_pear_dir}/%{_class}/%{_subclass}
79
80 %files tests
81 %defattr(644,root,root,755)
82 %{php_pear_dir}/tests/*
This page took 0.07543 seconds and 3 git commands to generate.