Source0: http://dl.sourceforge.net/phpmailer/phpMailer_v%{version}.tar.gz
# Source0-md5: 897f53ab746c48f372364b7745d8d468
Patch0: paths.patch
+Patch1: phpmailer-update-et.patch
URL: http://phpmailer.codeworxtech.com/
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.520
%prep
%setup -q -n phpMailer_v%{version}
%patch0 -p1
+%patch1 -p1
find '(' -name '*.php' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
%{__sed} -i -e 's,\r$,,' README LICENSE
--- /dev/null
+--- phpmailer/language/phpmailer.lang-et.php~ 2010-01-12 16:08:02.000000000 +0200
++++ phpmailer/language/phpmailer.lang-et.php 2010-01-12 16:25:39.874296467 +0200
+@@ -18,7 +18,5 @@
+ $PHPMAILER_LANG["connect_host"] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.';
+ $PHPMAILER_LANG["file_access"] = 'Pole piisavalt õiguseid järgneva faili avamiseks: ';
+ $PHPMAILER_LANG["file_open"] = 'Faili Viga: Faili avamine ebaõnnestus: ';
+-$PHPMAILER_LANG["encoding"] = 'Tundmatu Unknown kodeering: ';
+-$PHPMAILER_LANG["signing"] = 'Signing Error: ';
+-
+-?>
+\ No newline at end of file
++$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: ';
++$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: ';