File php5-pear-mail.spec of Package php5-pear-mail

#
# spec file for package php5-pear-mail (Version 1.1.14)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           php5-pear-mail
BuildRequires:  php5-pear
%define peardir %{_datadir}/php5/PEAR
License:        BSD 3-Clause
Group:          Development/Libraries/PHP
Version:        1.1.14
Release:        1.<RELEASE135>
Summary:        PEAR class that provides multiple interfaces for sending emails
Url:            http://pear.php.net/package/Mail
Requires:       php5-pear
Provides:       php-pear-mail
Source:         http://pear.php.net/get/Mail-%{version}.tgz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch:          Mail-1.1.14-CVE-2009-4023,4111.patch

%description
PEAR's Mail package defines an interface for implementing mailers under
the PEAR hierarchy. It also provides supporting functions useful to
multiple mailer backends. Currently supported backends include: PHP's
native mail() function, sendmail, and SMTP. This package also provides
a RFC822 email address list validation utility class.



Authors:
--------
    Chuck Hagenbuch <chuck@horde.org>
    Richard Heyes
    Jon Parise <jon@php.net>

%prep
%setup -c
%patch

%build

%install
mv package*.xml Mail-%{version}
cd Mail-%{version}
PHP_PEAR_PHP_BIN="/usr/bin/php5 -d memory_limit=50m" pear5 -v -d doc_dir=%{_docdir}/%{name} install --offline -R "$RPM_BUILD_ROOT" package.xml
rm -rf "$RPM_BUILD_ROOT"/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}
rm -rf "$RPM_BUILD_ROOT"/tmp

%files
%defattr(-, root, root)
%dir %{peardir}/test
%{peardir}/test/Mail
%{peardir}/Mail
%{peardir}/Mail.php

%changelog
openSUSE Build Service is sponsored by