]>
Commit | Line | Data |
---|---|---|
fd66e3cc | 1 | # TODO: |
13bc6b87 | 2 | # - better requires with proper php modules. |
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 |
19f5ccc5 | 6 | Version: 2.3 |
107b55c3 | 7 | Release: 1 |
46bf6096 ER |
8 | License: LGPL |
9 | Group: Development/Languages/PHP | |
19f5ccc5 ER |
10 | Source0: http://dl.sourceforge.net/phpmailer/phpMailer_v%{version}.tar.gz |
11 | # Source0-md5: 897f53ab746c48f372364b7745d8d468 | |
423f17e4 | 12 | URL: http://phpmailer.codeworxtech.com/ |
c24055db | 13 | BuildRequires: rpmbuild(macros) >= 1.461 |
f44cac78 | 14 | Requires: php-common >= 4:5.0 |
19f5ccc5 ER |
15 | Obsoletes: phpmailer |
16 | Patch0: paths.patch | |
46bf6096 ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
19f5ccc5 | 20 | %define _appdir %{php_data_dir}/phpmailer |
46bf6096 ER |
21 | |
22 | %description | |
23 | PHP email transport class featuring multiple file attachments, SMTP | |
24 | servers, CCs, BCCs, HTML messages, and word wrap, and more. It can | |
25 | send email via sendmail, PHP mail(), or with SMTP. Methods are based | |
26 | on the popular AspEmail active server component. | |
27 | ||
423f17e4 JB |
28 | %description -l pl.UTF-8 |
29 | Klasa PHP do przesyłania e-mail obsługująca wiele załączników | |
30 | plikowych, serwery SMTP, CC, BCC, wiadomości HTML, zawijanie linii | |
31 | itp. Potrafi wysyłać pocztę przez sendmaila, funkcją PHP mail() albo | |
32 | poprzez SMTP. Metody są oparte na popularnym komponencie AspEmail. | |
33 | ||
46bf6096 | 34 | %prep |
19f5ccc5 ER |
35 | %setup -q -n phpMailer_v%{version} |
36 | %patch0 -p1 | |
46bf6096 ER |
37 | |
38 | find '(' -name '*.php' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,' | |
19f5ccc5 | 39 | %{__sed} -i -e 's,\r$,,' README LICENSE |
46bf6096 ER |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
19f5ccc5 | 43 | install -d $RPM_BUILD_ROOT%{_appdir}/language |
fd66e3cc | 44 | |
19f5ccc5 ER |
45 | cp -a class.phpmailer.php $RPM_BUILD_ROOT%{php_data_dir} |
46 | # plugins: for smtp and pop before smtp auth | |
47 | cp -a class.{smtp,pop3}.php $RPM_BUILD_ROOT%{_appdir} | |
48 | # language: translations of error messages | |
46bf6096 | 49 | cp -a language/*.php $RPM_BUILD_ROOT%{_appdir}/language |
19f5ccc5 ER |
50 | |
51 | # examples | |
13bc6b87 ER |
52 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
53 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
46bf6096 ER |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc ChangeLog.txt README LICENSE docs/* | |
19f5ccc5 ER |
61 | %{php_data_dir}/class.phpmailer.php |
62 | ||
13bc6b87 | 63 | %dir %{_appdir} |
13bc6b87 ER |
64 | %{_appdir}/class.pop3.php |
65 | %{_appdir}/class.smtp.php | |
13bc6b87 ER |
66 | %dir %{_appdir}/language |
67 | %{_appdir}/language/phpmailer.lang-en.php | |
19f5ccc5 | 68 | %lang(ar) %{_appdir}/language/phpmailer.lang-ar.php |
13bc6b87 | 69 | %lang(ca) %{_appdir}/language/phpmailer.lang-ca.php |
f4cd874b | 70 | %lang(cs) %{_appdir}/language/phpmailer.lang-cz.php |
f4cd874b | 71 | %lang(da) %{_appdir}/language/phpmailer.lang-dk.php |
19f5ccc5 | 72 | %lang(de) %{_appdir}/language/phpmailer.lang-de.php |
13bc6b87 ER |
73 | %lang(es) %{_appdir}/language/phpmailer.lang-es.php |
74 | %lang(et) %{_appdir}/language/phpmailer.lang-et.php | |
75 | %lang(fi) %{_appdir}/language/phpmailer.lang-fi.php | |
76 | %lang(fo) %{_appdir}/language/phpmailer.lang-fo.php | |
77 | %lang(fr) %{_appdir}/language/phpmailer.lang-fr.php | |
78 | %lang(hu) %{_appdir}/language/phpmailer.lang-hu.php | |
79 | %lang(it) %{_appdir}/language/phpmailer.lang-it.php | |
80 | %lang(ja) %{_appdir}/language/phpmailer.lang-ja.php | |
f6089298 | 81 | %lang(nb) %{_appdir}/language/phpmailer.lang-no.php |
19f5ccc5 | 82 | %lang(nl) %{_appdir}/language/phpmailer.lang-nl.php |
13bc6b87 | 83 | %lang(pl) %{_appdir}/language/phpmailer.lang-pl.php |
19f5ccc5 | 84 | %lang(pt_BR) %{_appdir}/language/phpmailer.lang-br.php |
13bc6b87 ER |
85 | %lang(ro) %{_appdir}/language/phpmailer.lang-ro.php |
86 | %lang(ru) %{_appdir}/language/phpmailer.lang-ru.php | |
f4cd874b | 87 | %lang(sv) %{_appdir}/language/phpmailer.lang-se.php |
13bc6b87 ER |
88 | %lang(tr) %{_appdir}/language/phpmailer.lang-tr.php |
89 | ||
90 | %{_examplesdir}/%{name}-%{version} |