packages: php-phpmailer/php-phpmailer.spec, php-phpmailer/paths.patch (NEW)...
glen
glen at pld-linux.org
Tue Jan 12 15:08:42 CET 2010
Author: glen Date: Tue Jan 12 14:08:42 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 2.3, apidocs accessible over web only
---- Files affected:
packages/php-phpmailer:
php-phpmailer.spec (1.12 -> 1.13) , paths.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-phpmailer/php-phpmailer.spec
diff -u packages/php-phpmailer/php-phpmailer.spec:1.12 packages/php-phpmailer/php-phpmailer.spec:1.13
--- packages/php-phpmailer/php-phpmailer.spec:1.12 Tue Jan 12 14:56:14 2010
+++ packages/php-phpmailer/php-phpmailer.spec Tue Jan 12 15:08:36 2010
@@ -4,23 +4,21 @@
Summary: Full featured email transfer class for PHP
Summary(pl.UTF-8): W pełni funkcjonalna klasa PHP do przesyłania e-maili
Name: php-phpmailer
-Version: 2.2.1
+Version: 2.3
Release: 1
License: LGPL
Group: Development/Languages/PHP
-Source0: http://dl.sourceforge.net/phpmailer/phpMailer_v%{version}_.tar.gz
-# Source0-md5: 0bf75c1bcef8bde6adbebcdc69f1a02d
+Source0: http://dl.sourceforge.net/phpmailer/phpMailer_v%{version}.tar.gz
+# Source0-md5: 897f53ab746c48f372364b7745d8d468
URL: http://phpmailer.codeworxtech.com/
BuildRequires: rpmbuild(macros) >= 1.461
Requires: php-common >= 4:5.0
-Obsoletes: php-phpmailer
+Obsoletes: phpmailer
+Patch0: paths.patch
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# _phpdocdir / php_docdir / phpdoc_dir ?
-%define _phpdocdir %{_docdir}/phpdoc
-
-%define _appdir %{php_data_dir}/phpmailer
+%define _appdir %{php_data_dir}/phpmailer
%description
PHP email transport class featuring multiple file attachments, SMTP
@@ -34,30 +32,24 @@
itp. Potrafi wysyłać pocztę przez sendmaila, funkcją PHP mail() albo
poprzez SMTP. Metody są oparte na popularnym komponencie AspEmail.
-%package phpdoc
-Summary: Online manual for phpMailer
-Summary(pl.UTF-8): Dokumentacja online do phpMailer
-Group: Documentation
-Requires: php-dirs
-
-%description phpdoc
-Documentation for phpMailer.
-
-%description phpdoc -l pl.UTF-8
-Dokumentacja do phpMailer.
-
%prep
-%setup -q -c
+%setup -q -n phpMailer_v%{version}
+%patch0 -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
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir}/language,%{_phpdocdir}/phpmailer}
+install -d $RPM_BUILD_ROOT%{_appdir}/language
-cp -a *.php $RPM_BUILD_ROOT%{_appdir}
+cp -a class.phpmailer.php $RPM_BUILD_ROOT%{php_data_dir}
+# plugins: for smtp and pop before smtp auth
+cp -a class.{smtp,pop3}.php $RPM_BUILD_ROOT%{_appdir}
+# language: translations of error messages
cp -a language/*.php $RPM_BUILD_ROOT%{_appdir}/language
-cp -a phpdoc/* $RPM_BUILD_ROOT%{_phpdocdir}/phpmailer
+
+# examples
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -67,18 +59,18 @@
%files
%defattr(644,root,root,755)
%doc ChangeLog.txt README LICENSE docs/*
+%{php_data_dir}/class.phpmailer.php
+
%dir %{_appdir}
-%{_appdir}/class.phpmailer.php
%{_appdir}/class.pop3.php
%{_appdir}/class.smtp.php
-
%dir %{_appdir}/language
%{_appdir}/language/phpmailer.lang-en.php
-%lang(pt_BR) %{_appdir}/language/phpmailer.lang-br.php
+%lang(ar) %{_appdir}/language/phpmailer.lang-ar.php
%lang(ca) %{_appdir}/language/phpmailer.lang-ca.php
%lang(cs) %{_appdir}/language/phpmailer.lang-cz.php
-%lang(de) %{_appdir}/language/phpmailer.lang-de.php
%lang(da) %{_appdir}/language/phpmailer.lang-dk.php
+%lang(de) %{_appdir}/language/phpmailer.lang-de.php
%lang(es) %{_appdir}/language/phpmailer.lang-es.php
%lang(et) %{_appdir}/language/phpmailer.lang-et.php
%lang(fi) %{_appdir}/language/phpmailer.lang-fi.php
@@ -87,9 +79,10 @@
%lang(hu) %{_appdir}/language/phpmailer.lang-hu.php
%lang(it) %{_appdir}/language/phpmailer.lang-it.php
%lang(ja) %{_appdir}/language/phpmailer.lang-ja.php
-%lang(nl) %{_appdir}/language/phpmailer.lang-nl.php
%lang(nb) %{_appdir}/language/phpmailer.lang-no.php
+%lang(nl) %{_appdir}/language/phpmailer.lang-nl.php
%lang(pl) %{_appdir}/language/phpmailer.lang-pl.php
+%lang(pt_BR) %{_appdir}/language/phpmailer.lang-br.php
%lang(ro) %{_appdir}/language/phpmailer.lang-ro.php
%lang(ru) %{_appdir}/language/phpmailer.lang-ru.php
%lang(sv) %{_appdir}/language/phpmailer.lang-se.php
@@ -97,18 +90,17 @@
%{_examplesdir}/%{name}-%{version}
-%files phpdoc
-%defattr(644,root,root,755)
-%{_phpdocdir}/phpmailer
-
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2010/01/12 14:08:36 glen
+- up to 2.3, apidocs accessible over web only
+
Revision 1.12 2010/01/12 13:56:14 glen
-- rename to php-phpmailerfg
+- rename to php-phpmailer
Revision 1.11 2008/08/27 06:53:38 ankry
- fix lang() codes
================================================================
Index: packages/php-phpmailer/paths.patch
diff -u /dev/null packages/php-phpmailer/paths.patch:1.1
--- /dev/null Tue Jan 12 15:08:42 2010
+++ packages/php-phpmailer/paths.patch Tue Jan 12 15:08:36 2010
@@ -0,0 +1,20 @@
+--- phpMailer_v2.3/class.phpmailer.php~ 2010-01-12 16:05:45.000000000 +0200
++++ phpMailer_v2.3/class.phpmailer.php 2010-01-12 16:05:46.997539898 +0200
+@@ -134,7 +134,7 @@
+ * is in a different directory than the PHP include path.
+ * @var string
+ */
+- public $PluginDir = '';
++ public $PluginDir = '/usr/share/php/phpmail/';
+
+ /**
+ * Holds PHPMailer version.
+@@ -663,7 +663,7 @@
+ * @access public
+ * @return bool
+ */
+- function SetLanguage($lang_type = 'en', $lang_path = 'language/') {
++ function SetLanguage($lang_type = 'en', $lang_path = '/usr/share/php/phpmailer/language/') {
+ if( !(@include $lang_path.'phpmailer.lang-'.$lang_type.'.php') ) {
+ $PHPMAILER_LANG = array();
+ $PHPMAILER_LANG["provide_address"] = 'You must provide at least one ' .
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-phpmailer/php-phpmailer.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list