]>
Commit | Line | Data |
---|---|---|
1 | %include /usr/lib/rpm/macros.php | |
2 | %define _class Mail | |
3 | %define _subclass IMAP | |
4 | %define _status beta | |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
7 | %define _rc RC2 | |
8 | %define _rel 4 | |
9 | Summary: %{_pearname} - a c-client webmail backend | |
10 | Summary(pl.UTF-8): %{_pearname} - backend webmaila oparty o bibliotekę c-client | |
11 | Name: php-pear-%{_pearname} | |
12 | Version: 1.1.0 | |
13 | Release: 0.%{_rc}.%{_rel} | |
14 | License: PHP | |
15 | Group: Development/Languages/PHP | |
16 | Source0: http://pear.php.net/get/%{_pearname}-%{version}%{_rc}.tgz | |
17 | # Source0-md5: 5ed47847db2ff6e5ff733f2bd2147bef | |
18 | URL: http://pear.php.net/package/Mail_IMAP/ | |
19 | BuildRequires: php-pear-PEAR | |
20 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
21 | BuildRequires: rpmbuild(macros) >= 1.300 | |
22 | Requires: php(imap) | |
23 | Requires: php-pear | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | # exclude optional dependencies | |
28 | %define _noautoreq 'pear(Net/URL.*)' | |
29 | ||
30 | %description | |
31 | Mail_IMAP provides a simplifed backend for working with the c-client | |
32 | (IMAP) extension. It serves as an OO wrapper for commonly used | |
33 | c-client functions. It provides structure and header parsing as well | |
34 | as body retrieval. | |
35 | ||
36 | In PEAR status of this package is: %{_status}. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Mail_IMAP dostarcza uproszczonego backendu do pracy z rozszerzeniem | |
40 | IMAP. Działa jako zorientowany obiektowo wrapper na często używane | |
41 | funkcje biblioteki c-client. Przetwarza struktury oraz nagłówki jak | |
42 | również umożliwia odbiór treści wiadomości. | |
43 | ||
44 | Ta klasa ma w PEAR status: %{_status}. | |
45 | ||
46 | %prep | |
47 | %pear_package_setup | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
52 | %pear_package_install | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post | |
58 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
59 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
60 | fi | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc install.log optional-packages.txt | |
65 | %{php_pear_dir}/.registry/*.reg | |
66 | %{php_pear_dir}/%{_class}/*.php |