]>
Commit | Line | Data |
---|---|---|
6a698734 | 1 | %define php_min_version 5.2.0 |
a991a9b9 | 2 | %include /usr/lib/rpm/macros.php |
46bf6096 | 3 | Summary: Full featured email transfer class for PHP |
423f17e4 | 4 | Summary(pl.UTF-8): W pełni funkcjonalna klasa PHP do przesyłania e-maili |
332c5cf9 | 5 | Name: php-phpmailer |
52a0c160 | 6 | Version: 5.2.1 |
26058974 | 7 | Release: 2 |
6a698734 | 8 | License: LGPL v2.1 |
46bf6096 | 9 | Group: Development/Languages/PHP |
46a5f4d3 | 10 | Source0: http://phpmailer.apache-extras.org.codespot.com/files/PHPMailer_%{version}.tgz |
52a0c160 | 11 | # Source0-md5: 2ef9a089aa9aae9899b4ab785ef873c3 |
a991a9b9 | 12 | Patch0: paths.patch |
5bbc8086 | 13 | Patch1: phpmailer-update-et.patch |
11151c00 | 14 | Patch2: tests.patch |
46a5f4d3 | 15 | URL: http://code.google.com/a/apache-extras.org/p/phpmailer/ |
a991a9b9 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
11151c00 | 17 | BuildRequires: rpmbuild(macros) >= 1.553 |
a991a9b9 | 18 | Requires: php-common >= 4:%{php_min_version} |
72538a42 | 19 | Requires: php-date |
a991a9b9 | 20 | Requires: php-pcre |
a991a9b9 ER |
21 | Suggests: php-mbstring |
22 | Suggests: php-openssl | |
19f5ccc5 | 23 | Obsoletes: phpmailer |
46bf6096 ER |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
19f5ccc5 | 27 | %define _appdir %{php_data_dir}/phpmailer |
46bf6096 | 28 | |
6a698734 ER |
29 | # exclude optional php dependencies |
30 | %define _noautophp php-openssl php-mbstring php-filter | |
31 | ||
32 | # put it together for rpmbuild | |
33 | %define _noautoreq %{?_noautophp} %{?_noautopear} | |
a991a9b9 | 34 | |
46bf6096 ER |
35 | %description |
36 | PHP email transport class featuring multiple file attachments, SMTP | |
37 | servers, CCs, BCCs, HTML messages, and word wrap, and more. It can | |
38 | send email via sendmail, PHP mail(), or with SMTP. Methods are based | |
39 | on the popular AspEmail active server component. | |
40 | ||
423f17e4 JB |
41 | %description -l pl.UTF-8 |
42 | Klasa PHP do przesyłania e-mail obsługująca wiele załączników | |
43 | plikowych, serwery SMTP, CC, BCC, wiadomości HTML, zawijanie linii | |
44 | itp. Potrafi wysyłać pocztę przez sendmaila, funkcją PHP mail() albo | |
45 | poprzez SMTP. Metody są oparte na popularnym komponencie AspEmail. | |
46 | ||
46bf6096 | 47 | %prep |
46a5f4d3 | 48 | %setup -q -n PHPMailer_%{version} |
19f5ccc5 | 49 | %patch0 -p1 |
5bbc8086 | 50 | %patch1 -p1 |
11151c00 | 51 | %patch2 -p1 |
46bf6096 | 52 | |
11151c00 | 53 | %undos -f php,html,txt README LICENSE |
46bf6096 ER |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
19f5ccc5 | 57 | install -d $RPM_BUILD_ROOT%{_appdir}/language |
fd66e3cc | 58 | |
11151c00 | 59 | cp -p class.phpmailer.php $RPM_BUILD_ROOT%{php_data_dir} |
19f5ccc5 | 60 | # plugins: for smtp and pop before smtp auth |
11151c00 | 61 | cp -p class.{smtp,pop3}.php $RPM_BUILD_ROOT%{_appdir} |
19f5ccc5 | 62 | # language: translations of error messages |
11151c00 | 63 | cp -p language/*.php $RPM_BUILD_ROOT%{_appdir}/language |
19f5ccc5 | 64 | |
26058974 ER |
65 | # extras: htmlfilter.php |
66 | cp -a extras $RPM_BUILD_ROOT%{_appdir} | |
67 | ||
19f5ccc5 | 68 | # examples |
13bc6b87 ER |
69 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
70 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46bf6096 ER |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
6a698734 | 77 | %doc changelog.txt README docs/* |
19f5ccc5 ER |
78 | %{php_data_dir}/class.phpmailer.php |
79 | ||
13bc6b87 | 80 | %dir %{_appdir} |
13bc6b87 ER |
81 | %{_appdir}/class.pop3.php |
82 | %{_appdir}/class.smtp.php | |
13bc6b87 | 83 | %dir %{_appdir}/language |
19f5ccc5 | 84 | %lang(ar) %{_appdir}/language/phpmailer.lang-ar.php |
13bc6b87 | 85 | %lang(ca) %{_appdir}/language/phpmailer.lang-ca.php |
6a698734 | 86 | %lang(ch) %{_appdir}/language/phpmailer.lang-ch.php |
f4cd874b | 87 | %lang(cs) %{_appdir}/language/phpmailer.lang-cz.php |
f4cd874b | 88 | %lang(da) %{_appdir}/language/phpmailer.lang-dk.php |
19f5ccc5 | 89 | %lang(de) %{_appdir}/language/phpmailer.lang-de.php |
13bc6b87 ER |
90 | %lang(es) %{_appdir}/language/phpmailer.lang-es.php |
91 | %lang(et) %{_appdir}/language/phpmailer.lang-et.php | |
92 | %lang(fi) %{_appdir}/language/phpmailer.lang-fi.php | |
93 | %lang(fo) %{_appdir}/language/phpmailer.lang-fo.php | |
94 | %lang(fr) %{_appdir}/language/phpmailer.lang-fr.php | |
95 | %lang(hu) %{_appdir}/language/phpmailer.lang-hu.php | |
96 | %lang(it) %{_appdir}/language/phpmailer.lang-it.php | |
97 | %lang(ja) %{_appdir}/language/phpmailer.lang-ja.php | |
f6089298 | 98 | %lang(nb) %{_appdir}/language/phpmailer.lang-no.php |
19f5ccc5 | 99 | %lang(nl) %{_appdir}/language/phpmailer.lang-nl.php |
13bc6b87 | 100 | %lang(pl) %{_appdir}/language/phpmailer.lang-pl.php |
19f5ccc5 | 101 | %lang(pt_BR) %{_appdir}/language/phpmailer.lang-br.php |
13bc6b87 ER |
102 | %lang(ro) %{_appdir}/language/phpmailer.lang-ro.php |
103 | %lang(ru) %{_appdir}/language/phpmailer.lang-ru.php | |
f4cd874b | 104 | %lang(sv) %{_appdir}/language/phpmailer.lang-se.php |
13bc6b87 | 105 | %lang(tr) %{_appdir}/language/phpmailer.lang-tr.php |
6a698734 ER |
106 | %lang(zh) %{_appdir}/language/phpmailer.lang-zh.php |
107 | %lang(zh_CN) %{_appdir}/language/phpmailer.lang-zh_cn.php | |
13bc6b87 | 108 | |
26058974 ER |
109 | %dir %{_appdir}/extras |
110 | %{_appdir}/extras/htmlfilter.php | |
111 | ||
13bc6b87 | 112 | %{_examplesdir}/%{name}-%{version} |