]> git.pld-linux.org Git - packages/php-pear-Net_DNSBL.git/blob - php-pear-Net_DNSBL.spec
99f2849a43226d78907519ca266bef68080cee8b
[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):    %{_pearname} - Odpytywanie DNSBL
9 Name:           php-pear-%{_pearname}
10 Version:        1.1.0
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:  1fa2e823e2b2159fa74746347f6380cb
17 URL:            http://pear.php.net/package/Net_DNSBL/
18 BuildRequires:  php-pear-PEAR
19 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
20 Requires:       php-common >= 3:4.3.11
21 Requires:       php-pear
22 Requires:       php-pear-Cache_Lite >= 1.4.1
23 Requires:       php-pear-HTTP_Request >= 1.2.3
24 Requires:       php-pear-Net_CheckIP >= 1.1
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Checks if a given Host or URL is listed on an DNSBL or SURBL.
30
31 In PEAR status of this package is: %{_status}.
32
33 %description -l pl
34 Za pomoc± tej klasy mo¿na sprawdziæ czy dany host lub URL jest wpisany
35 na listy DNSBL lub SURBL.
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 mv ./%{php_pear_dir}/tests/%{_pearname}/{tests/*,}
56 rmdir ./%{php_pear_dir}/tests/%{_pearname}/tests
57 rm -rf .%{php_pear_dir}/tests/Net_DNSBL/Tests
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 %{php_pear_dir}/.registry/*.reg
71 %{php_pear_dir}/%{_class}/*.php
72 %{php_pear_dir}/%{_class}/%{_subclass}
73
74 %files tests
75 %defattr(644,root,root,755)
76 %{php_pear_dir}/tests/*
This page took 0.083631 seconds and 2 git commands to generate.