%include /usr/lib/rpm/macros.php %define _class Mail %define _pearname %{_class} Summary: %{_class} - Class that provides multiple interfaces for sending emails Summary(pl): %{_class} - Klasa dająca interfejsy do wysyłania poczty Name: php-pear-%{_pearname} Version: 1.0.1 Release: 1 License: PHP 2.02/BSD Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz URL: http://pear.php.net/ BuildRequires: rpm-php-pearprov Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The PEAR's Mail:: interface, defines the interface for implementing mailers under the PEAR hierarchy, and provides supporting functions useful in multiple mailer backends. Currently supported are native PHP mail() function, sendmail and SMTP. This package also provides a RFC 822 Email address list validation utility class. %description -l pl Klasa Mail:: definiuje w hierarchii PEAR interfejs do implementowania wysyłania poczty oraz udostępnia funkcje pomocnicze przydatne w wielu backendach do obsługi poczty. Aktualnie obsługiwane sposoby to natywna dla PHP funkcja mail(), sendmail oraz SMTP. Ten pakiet zawiera także klasę sprawdzającą zgodność list adresów z RFC 822. %prep %setup -q -c %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/ install %{_pearname}-%{version}/%{_class}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{php_pear_dir}/*.php %{php_pear_dir}/%{_class}/*.php