/[packages]/cauldron/php-pear-Mail/current/SPECS/php-pear-Mail.spec
ViewVC logotype

Contents of /cauldron/php-pear-Mail/current/SPECS/php-pear-Mail.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35374 - (show annotations) (download)
Sun Jan 23 21:28:41 2011 UTC (13 years, 2 months ago) by spuhler
File size: 1650 byte(s)
added Requires:php-pear-Net_Socket
Requires:	phppear-Net_SMTincreased rel to 7
1 %define _class Mail
2 %define pre b1
3 %define upstream_name %{_class}
4
5 Name: php-pear-%{upstream_name}
6 Version: 1.2.0
7 Release: %mkrel 0.%{pre}.7
8 Summary: Class that provides multiple interfaces for sending emails
9 License: PHP License
10 Group: Development/PHP
11 URL: http://pear.php.net/package/%{upstream_name}
12 Source0: http://download.pear.php.net/package/%{upstream_name}-%{version}%{pre}.tgz
13 Patch0: Mail-1.2.0b1-CVE-2009-4023,4111.diff
14 Requires(post): php-pear
15 Requires(preun): php-pear
16 Requires: php-pear
17 Requires: php-pear-Net_Socket
18 Requires: phppear-Net_SMTP
19 BuildRequires: php-pear
20 BuildArch: noarch
21
22 %description
23 PEAR's Mail package defines an interface for implementing mailers under the
24 PEAR hierarchy. It also provides supporting functions useful to multiple mailer
25 backends. Currently supported backends include: PHP's native mail() function,
26 sendmail, and SMTP. This package also provides a RFC822 email address list
27 validation utility class.
28
29 %prep
30 %setup -q -c
31 mv package.xml %{upstream_name}-%{version}%{pre}/%{upstream_name}.xml
32
33 %patch0 -p0 -b .CVE-2009-4023,4111
34
35 %install
36 rm -rf %{buildroot}
37
38 cd %{upstream_name}-%{version}%{pre}
39 pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
40 rm -rf %{buildroot}%{_datadir}/pear/.??*
41
42 rm -rf %{buildroot}%{_datadir}/pear/docs
43 rm -rf %{buildroot}%{_datadir}/pear/tests
44
45 install -d %{buildroot}%{_datadir}/pear/packages
46 install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages
47
48 %clean
49 rm -rf %{buildroot}
50
51
52 %files
53 %defattr(-,root,root)
54 %{_datadir}/pear/%{_class}
55 %{_datadir}/pear/%{_class}.php
56 %{_datadir}/pear/packages/%{upstream_name}.xml
57
58
59

  ViewVC Help
Powered by ViewVC 1.1.30