1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
5 Summary: %{_pearname} - Class that provides multiple interfaces for sending emails
6 Summary(pl.UTF-8): %{_pearname} - Klasa dająca interfejsy do wysyłania poczty
7 Name: php-pear-%{_pearname}
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 # Source0-md5: 1bb2c88905f255490c4706b5394c2036
14 URL: http://pear.php.net/package/Mail/
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
19 Suggests: php-pear-Net_SMTP
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # exclude optional dependencies
24 %define _noautoreq pear(Net/SMTP.*)
27 The PEAR's Mail:: interface, defines the interface for implementing
28 mailers under the PEAR hierarchy, and provides supporting functions
29 useful in multiple mailer backends. Currently supported are native PHP
30 mail() function, sendmail and SMTP. This package also provides a RFC
31 822 Email address list validation utility class.
33 In PEAR status of this package is: %{_status}.
35 %description -l pl.UTF-8
36 Klasa Mail:: definiuje w hierarchii PEAR interfejs do implementowania
37 wysyłania poczty oraz udostępnia funkcje pomocnicze przydatne w wielu
38 backendach do obsługi poczty. Aktualnie obsługiwane sposoby to natywna
39 dla PHP funkcja mail(), sendmail oraz SMTP. Ten pakiet zawiera także
40 klasę sprawdzającą zgodność list adresów z RFC 822.
42 Ta klasa ma w PEAR status: %{_status}.
45 Summary: Tests for PEAR::%{_pearname}
46 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
47 Group: Development/Languages/PHP
48 Requires: %{name} = %{version}-%{release}
53 Tests for PEAR::%{_pearname}.
55 %description tests -l pl.UTF-8
56 Testy dla PEAR::%{_pearname}.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 rm -rf $RPM_BUILD_ROOT
70 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
71 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
75 %defattr(644,root,root,755)
76 %doc install.log optional-packages.txt
77 %{php_pear_dir}/.registry/*.reg
78 %dir %{php_pear_dir}/%{_class}
80 %{php_pear_dir}/%{_class}/*.php
83 %defattr(644,root,root,755)
84 %{php_pear_dir}/tests/*