]>
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 |
6a698734 ER |
7 | Release: 1 |
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 ER |
64 | |
65 | # examples | |
13bc6b87 ER |
66 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
67 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46bf6096 ER |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
6a698734 | 74 | %doc changelog.txt README docs/* |
19f5ccc5 ER |
75 | %{php_data_dir}/class.phpmailer.php |
76 | ||
13bc6b87 | 77 | %dir %{_appdir} |
13bc6b87 ER |
78 | %{_appdir}/class.pop3.php |
79 | %{_appdir}/class.smtp.php | |
13bc6b87 | 80 | %dir %{_appdir}/language |
19f5ccc5 | 81 | %lang(ar) %{_appdir}/language/phpmailer.lang-ar.php |
13bc6b87 | 82 | %lang(ca) %{_appdir}/language/phpmailer.lang-ca.php |
6a698734 | 83 | %lang(ch) %{_appdir}/language/phpmailer.lang-ch.php |
f4cd874b | 84 | %lang(cs) %{_appdir}/language/phpmailer.lang-cz.php |
f4cd874b | 85 | %lang(da) %{_appdir}/language/phpmailer.lang-dk.php |
19f5ccc5 | 86 | %lang(de) %{_appdir}/language/phpmailer.lang-de.php |
13bc6b87 ER |
87 | %lang(es) %{_appdir}/language/phpmailer.lang-es.php |
88 | %lang(et) %{_appdir}/language/phpmailer.lang-et.php | |
89 | %lang(fi) %{_appdir}/language/phpmailer.lang-fi.php | |
90 | %lang(fo) %{_appdir}/language/phpmailer.lang-fo.php | |
91 | %lang(fr) %{_appdir}/language/phpmailer.lang-fr.php | |
92 | %lang(hu) %{_appdir}/language/phpmailer.lang-hu.php | |
93 | %lang(it) %{_appdir}/language/phpmailer.lang-it.php | |
94 | %lang(ja) %{_appdir}/language/phpmailer.lang-ja.php | |
f6089298 | 95 | %lang(nb) %{_appdir}/language/phpmailer.lang-no.php |
19f5ccc5 | 96 | %lang(nl) %{_appdir}/language/phpmailer.lang-nl.php |
13bc6b87 | 97 | %lang(pl) %{_appdir}/language/phpmailer.lang-pl.php |
19f5ccc5 | 98 | %lang(pt_BR) %{_appdir}/language/phpmailer.lang-br.php |
13bc6b87 ER |
99 | %lang(ro) %{_appdir}/language/phpmailer.lang-ro.php |
100 | %lang(ru) %{_appdir}/language/phpmailer.lang-ru.php | |
f4cd874b | 101 | %lang(sv) %{_appdir}/language/phpmailer.lang-se.php |
13bc6b87 | 102 | %lang(tr) %{_appdir}/language/phpmailer.lang-tr.php |
6a698734 ER |
103 | %lang(zh) %{_appdir}/language/phpmailer.lang-zh.php |
104 | %lang(zh_CN) %{_appdir}/language/phpmailer.lang-zh_cn.php | |
13bc6b87 ER |
105 | |
106 | %{_examplesdir}/%{name}-%{version} |