1 %include /usr/lib/rpm/macros.php
5 %define _pearname %{_class}_%{_subclass}
7 Summary: %{_pearname} - implementation of the SMTP protocol
8 Summary(pl): %{_pearname} - implementacja protoko³u SMTP
9 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: 11c4de943b07206aab6193eefd8f328e
16 URL: http://pear.php.net/package/Net_SMTP/
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # exclude optional dependencies
23 %define _noautoreq 'pear(Auth/SASL.*)'
26 Provides an implementation of the SMTP protocol using PEAR's
29 In PEAR status of this package is: %{_status}.
32 Dostarcza implementacjê protoko³u SMTP przy u¿yciu PEAR-owej klasy
35 Ta klasa ma w PEAR status: %{_status}.
38 Summary: Tests for PEAR::%{_pearname}
39 Summary(pl): Testy dla PEAR::%{_pearname}
41 Requires: %{name} = %{epoch}:%{version}-%{release}
44 Tests for PEAR::%{_pearname}.
46 %description tests -l pl
47 Testy dla PEAR::%{_pearname}.
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
58 rm -rf $RPM_BUILD_ROOT
61 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
62 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
66 %defattr(644,root,root,755)
67 %doc install.log optional-packages.txt
68 %{php_pear_dir}/.registry/*.reg
69 %{php_pear_dir}/%{_class}/*.php
72 %defattr(644,root,root,755)
73 %{php_pear_dir}/tests/*