]>
Commit | Line | Data |
---|---|---|
e0e48547 PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Mail | |
287cddc5 | 3 | %define _status stable |
e0e48547 | 4 | %define _pearname %{_class} |
93019f07 | 5 | Summary: %{_pearname} - Class that provides multiple interfaces for sending emails |
c0724c82 | 6 | Summary(pl.UTF-8): %{_pearname} - Klasa dająca interfejsy do wysyłania poczty |
e0e48547 | 7 | Name: php-pear-%{_pearname} |
df9a9fb3 | 8 | Version: 1.2.0 |
10b2edc6 | 9 | Release: 3 |
a64aba2b | 10 | License: PHP/BSD |
e0e48547 PG |
11 | Group: Development/Languages/PHP |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
df9a9fb3 | 13 | # Source0-md5: 1bb2c88905f255490c4706b5394c2036 |
ef2c21ac | 14 | URL: http://pear.php.net/package/Mail/ |
49eeed86 | 15 | BuildRequires: php-pear-PEAR |
efb7b361 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
10b2edc6 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.571 |
18 | Requires: php-pear >= 4:1.3-6 | |
6dec2783 | 19 | Suggests: php-pear-Net_SMTP |
e0e48547 PG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
5e62303b | 23 | # exclude optional dependencies |
df9a9fb3 | 24 | %define _noautoreq pear(Net/SMTP.*) |
5e62303b | 25 | |
e0e48547 PG |
26 | %description |
27 | The PEAR's Mail:: interface, defines the interface for implementing | |
28 | mailers under the PEAR hierarchy, and provides supporting functions | |
29 | useful in multiple mailer backends. Currently supported are native PHP | |
30 | mail() function, sendmail and SMTP. This package also provides a RFC | |
31 | 822 Email address list validation utility class. | |
32 | ||
1444f83f | 33 | In PEAR status of this package is: %{_status}. |
287cddc5 | 34 | |
7b5520c8 | 35 | %description -l pl.UTF-8 |
2d44454c | 36 | Klasa Mail:: definiuje w hierarchii PEAR interfejs do implementowania |
7b5520c8 JR |
37 | wysyłania poczty oraz udostępnia funkcje pomocnicze przydatne w wielu |
38 | backendach do obsługi poczty. Aktualnie obsługiwane sposoby to natywna | |
39 | dla PHP funkcja mail(), sendmail oraz SMTP. Ten pakiet zawiera także | |
40 | klasę sprawdzającą zgodność list adresów z RFC 822. | |
e0e48547 | 41 | |
287cddc5 PG |
42 | Ta klasa ma w PEAR status: %{_status}. |
43 | ||
12e59bd1 ER |
44 | %package tests |
45 | Summary: Tests for PEAR::%{_pearname} | |
c0724c82 | 46 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
b36afd92 | 47 | Group: Development/Languages/PHP |
df9a9fb3 | 48 | Requires: %{name} = %{version}-%{release} |
e87ad51f | 49 | AutoProv: no |
6dec2783 | 50 | AutoReq: no |
12e59bd1 ER |
51 | |
52 | %description tests | |
53 | Tests for PEAR::%{_pearname}. | |
54 | ||
7b5520c8 | 55 | %description tests -l pl.UTF-8 |
d769c780 ER |
56 | Testy dla PEAR::%{_pearname}. |
57 | ||
e0e48547 | 58 | %prep |
12e59bd1 | 59 | %pear_package_setup |
e0e48547 PG |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
12e59bd1 ER |
63 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
64 | %pear_package_install | |
e0e48547 PG |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
10b2edc6 ER |
69 | %post -p <lua> |
70 | %pear_package_print_optionalpackages | |
5e62303b | 71 | |
e0e48547 PG |
72 | %files |
73 | %defattr(644,root,root,755) | |
12e59bd1 ER |
74 | %doc install.log optional-packages.txt |
75 | %{php_pear_dir}/.registry/*.reg | |
10b2edc6 ER |
76 | %{php_pear_dir}/Mail.php |
77 | %{php_pear_dir}/Mail/* | |
12e59bd1 ER |
78 | |
79 | %files tests | |
80 | %defattr(644,root,root,755) | |
81 | %{php_pear_dir}/tests/* |