]>
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 ER |
8 | Version: 1.2.0 |
9 | Release: 1 | |
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 |
ca2982f3 | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
a2bbcabe | 18 | Requires: php-pear |
e0e48547 PG |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
5e62303b | 22 | # exclude optional dependencies |
df9a9fb3 | 23 | %define _noautoreq pear(Net/SMTP.*) |
5e62303b | 24 | |
e0e48547 PG |
25 | %description |
26 | The PEAR's Mail:: interface, defines the interface for implementing | |
27 | mailers under the PEAR hierarchy, and provides supporting functions | |
28 | useful in multiple mailer backends. Currently supported are native PHP | |
29 | mail() function, sendmail and SMTP. This package also provides a RFC | |
30 | 822 Email address list validation utility class. | |
31 | ||
1444f83f | 32 | In PEAR status of this package is: %{_status}. |
287cddc5 | 33 | |
7b5520c8 | 34 | %description -l pl.UTF-8 |
2d44454c | 35 | Klasa Mail:: definiuje w hierarchii PEAR interfejs do implementowania |
7b5520c8 JR |
36 | wysyłania poczty oraz udostępnia funkcje pomocnicze przydatne w wielu |
37 | backendach do obsługi poczty. Aktualnie obsługiwane sposoby to natywna | |
38 | dla PHP funkcja mail(), sendmail oraz SMTP. Ten pakiet zawiera także | |
39 | klasę sprawdzającą zgodność list adresów z RFC 822. | |
e0e48547 | 40 | |
287cddc5 PG |
41 | Ta klasa ma w PEAR status: %{_status}. |
42 | ||
12e59bd1 ER |
43 | %package tests |
44 | Summary: Tests for PEAR::%{_pearname} | |
c0724c82 | 45 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
b36afd92 | 46 | Group: Development/Languages/PHP |
df9a9fb3 | 47 | Requires: %{name} = %{version}-%{release} |
bac9dc86 | 48 | AutoReq: no |
e87ad51f | 49 | AutoProv: no |
12e59bd1 ER |
50 | |
51 | %description tests | |
52 | Tests for PEAR::%{_pearname}. | |
53 | ||
7b5520c8 | 54 | %description tests -l pl.UTF-8 |
d769c780 ER |
55 | Testy dla PEAR::%{_pearname}. |
56 | ||
e0e48547 | 57 | %prep |
12e59bd1 | 58 | %pear_package_setup |
e0e48547 PG |
59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
12e59bd1 ER |
62 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
63 | %pear_package_install | |
e0e48547 PG |
64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
5e62303b ER |
68 | %post |
69 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
70 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
71 | fi | |
72 | ||
e0e48547 PG |
73 | %files |
74 | %defattr(644,root,root,755) | |
12e59bd1 ER |
75 | %doc install.log optional-packages.txt |
76 | %{php_pear_dir}/.registry/*.reg | |
287cddc5 | 77 | %dir %{php_pear_dir}/%{_class} |
e0e48547 PG |
78 | %{php_pear_dir}/*.php |
79 | %{php_pear_dir}/%{_class}/*.php | |
12e59bd1 ER |
80 | |
81 | %files tests | |
82 | %defattr(644,root,root,755) | |
83 | %{php_pear_dir}/tests/* |