]> git.pld-linux.org Git - packages/php-phpmailer.git/blob - php-phpmailer.spec
- new
[packages/php-phpmailer.git] / php-phpmailer.spec
1 Summary:        Full featured email transfer class for PHP
2 Name:           phpmailer
3 Version:        2.0.0
4 Release:        0.1
5 License:        LGPL
6 Group:          Development/Languages/PHP
7 URL:            http://phpmailer.codeworxtech.com/
8 Source0:        http://dl.sourceforge.net/phpmailer/PHPMailer_v%{version}.tar.gz
9 # Source0-md5:  1fba7b3b8f67197c371da2f791d517de
10 BuildArch:      noarch
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %define         _appdir /usr/share/php/%{name}
14
15 %description
16 PHP email transport class featuring multiple file attachments, SMTP
17 servers, CCs, BCCs, HTML messages, and word wrap, and more. It can
18 send email via sendmail, PHP mail(), or with SMTP. Methods are based
19 on the popular AspEmail active server component.
20
21 %package phpdoc
22 Summary:        Online manual for %{name}
23 Summary(pl.UTF-8):      Dokumentacja online do %{name}
24 Group:          Documentation
25
26 %description phpdoc
27 Documentation for %{name}.
28
29 %description phpdoc -l pl.UTF-8
30 Dokumentacja do %{name}.
31
32 %prep
33 %setup -q -n PHPMailer_v%{version}
34
35 find '(' -name '*.php' -o -name '*.html' -o -name '*.txt' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_appdir}/language
40 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
41 cp -a language/*.php $RPM_BUILD_ROOT%{_appdir}/language
42
43 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
44 cp -a phpdoc/* $RPM_BUILD_ROOT%{_docdir}/%{name}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc ChangeLog.txt README LICENSE docs/*
52 %{_appdir}
53
54 %files phpdoc
55 %defattr(644,root,root,755)
56 %{_docdir}/%{name}
This page took 0.035732 seconds and 3 git commands to generate.