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