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