- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Net_NNTP.git] / php-pear-Net_NNTP.spec
1 %define         status          stable
2 %define         pearname        Net_NNTP
3 Summary:        %{pearname} - communicate with an NNTP server
4 Summary(pl.UTF-8):      %{pearname} - komunikacja z serwerem NNTP
5 Name:           php-pear-%{pearname}
6 Version:        1.5.2
7 Release:        2
8 License:        W3C / PHP 2.0
9 Group:          Development/Languages/PHP
10 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5:  9ebaa7ec650588f2a7bd9c17e2121b42
12 URL:            http://pear.php.net/package/Net_NNTP/
13 BuildRequires:  php-pear-PEAR >= 1:1.4.5
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.580
16 Requires:       php-pear
17 Requires:       php-pear-Net_Socket >= 1.0.3
18 Requires:       php-pear-PEAR-core >= 1:1.4.0
19 Suggests:       php-pear-Log
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 # exclude optional dependencies
24 %define         _noautoreq      pear(Log.*)
25
26 %description
27 Complete class for communicating with an NNTP server (this is: the
28 USENET), including: post, view, list, authentication, overview, header
29 manipulation, NNTP commands debugger, etc.
30
31 In PEAR status of this package is: %{status}.
32
33 %description -l pl.UTF-8
34 Kompletna klasa umożliwiająca komunikację z serwerem NNTP (USENET),
35 zawierająca: wysyłanie, przeglądanie, listowanie, uwierzytelnianie,
36 przegląd, manipulację nagłówkami, debugger komend NNTP, etc.
37
38 Ta klasa ma w PEAR status %{status}.
39
40 %prep
41 %pear_package_setup
42
43 mv docs/%{pearname}/docs/examples .
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_examplesdir}/%{name}-%{version}}
48 %pear_package_install
49
50 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc install.log
58 %{php_pear_dir}/.registry/*.reg
59 %{php_pear_dir}/Net/NNTP
60 %{_examplesdir}/%{name}-%{version}
This page took 0.102111 seconds and 4 git commands to generate.