From 46bf6096ed93998727b37f16398f95136dac4a6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 20 Dec 2007 22:40:54 +0000 Subject: [PATCH] - new Changed files: php-phpmailer.spec -> 1.1 --- php-phpmailer.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 php-phpmailer.spec diff --git a/php-phpmailer.spec b/php-phpmailer.spec new file mode 100644 index 0000000..0025049 --- /dev/null +++ b/php-phpmailer.spec @@ -0,0 +1,56 @@ +Summary: Full featured email transfer class for PHP +Name: phpmailer +Version: 2.0.0 +Release: 0.1 +License: LGPL +Group: Development/Languages/PHP +URL: http://phpmailer.codeworxtech.com/ +Source0: http://dl.sourceforge.net/phpmailer/PHPMailer_v%{version}.tar.gz +# Source0-md5: 1fba7b3b8f67197c371da2f791d517de +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _appdir /usr/share/php/%{name} + +%description +PHP email transport class featuring multiple file attachments, SMTP +servers, CCs, BCCs, HTML messages, and word wrap, and more. It can +send email via sendmail, PHP mail(), or with SMTP. Methods are based +on the popular AspEmail active server component. + +%package phpdoc +Summary: Online manual for %{name} +Summary(pl.UTF-8): Dokumentacja online do %{name} +Group: Documentation + +%description phpdoc +Documentation for %{name}. + +%description phpdoc -l pl.UTF-8 +Dokumentacja do %{name}. + +%prep +%setup -q -n PHPMailer_v%{version} + +find '(' -name '*.php' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,' + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_appdir}/language +cp -a *.php $RPM_BUILD_ROOT%{_appdir} +cp -a language/*.php $RPM_BUILD_ROOT%{_appdir}/language + +install -d $RPM_BUILD_ROOT%{_docdir}/%{name} +cp -a phpdoc/* $RPM_BUILD_ROOT%{_docdir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc ChangeLog.txt README LICENSE docs/* +%{_appdir} + +%files phpdoc +%defattr(644,root,root,755) +%{_docdir}/%{name} -- 2.43.0