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