]>
Commit | Line | Data |
---|---|---|
39d63a13 ER |
1 | # TODO |
2 | # - system locale dir | |
9f12af06 ER |
3 | %define status stable |
4 | %define pearname Horde_Imap_Client | |
5 | %include /usr/lib/rpm/macros.php | |
6 | Summary: %{pearname} - Horde IMAP abstraction interface | |
7 | Name: php-horde-Horde_Imap_Client | |
46e38fa0 | 8 | Version: 1.5.7 |
11e48b15 | 9 | Release: 2 |
9f12af06 ER |
10 | License: LGPL |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
46e38fa0 | 13 | # Source0-md5: 5a42795eae82bdb48af2a4a77fa7f8a3 |
e00c8413 | 14 | URL: https://github.com/horde/horde/tree/master/framework/Imap_Client/ |
9f12af06 ER |
15 | BuildRequires: php-channel(pear.horde.org) |
16 | BuildRequires: php-packagexml2cl | |
17 | BuildRequires: php-pear-PEAR >= 1:1.7.0 | |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
19 | BuildRequires: rpmbuild(macros) >= 1.610 | |
11e48b15 | 20 | Requires: php(hash) |
9f12af06 | 21 | Requires: php-channel(pear.horde.org) |
9f12af06 ER |
22 | Requires: php-horde-Horde_Exception < 2.0.0 |
23 | Requires: php-horde-Horde_Mime < 2.0.0 | |
24 | Requires: php-horde-Horde_Util < 2.0.0 | |
ac30abcb | 25 | Requires: php-pear >= 4:1.3.6-2 |
9f12af06 ER |
26 | Suggests: php-horde-Horde_Cache |
27 | Suggests: php-horde-Horde_Secret | |
28 | Suggests: php-horde-Horde_Stream_Filter | |
29 | Suggests: php-imap | |
30 | Suggests: php-json | |
31 | Suggests: php-mbstring | |
32 | Suggests: php-pear-Auth_SASL | |
33 | BuildArch: noarch | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | # exclude optional dependencies | |
37 | %define _noautoreq pear(Horde/Cache.*) pear(Horde/Secret.*) pear(Horde/Stream/Filter.*) pear(Auth/SASL.*) | |
38 | ||
39 | %description | |
40 | This package provides an abstracted API interface to various IMAP4rev1 | |
41 | (RFC 3501) backend drivers. | |
42 | ||
43 | In PEAR status of this package is: %{status}. | |
44 | ||
45 | %prep | |
46 | %pear_package_setup | |
47 | ||
48 | %build | |
49 | packagexml2cl package.xml > ChangeLog | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
54 | %pear_package_install | |
55 | ||
39d63a13 ER |
56 | %{__rm} $RPM_BUILD_ROOT%{php_pear_dir}/data/Horde_Imap_Client/locale/%{pearname}.pot |
57 | %{__rm} $RPM_BUILD_ROOT%{php_pear_dir}/data/Horde_Imap_Client/locale/*/LC_MESSAGES/%{pearname}.po | |
58 | ||
9f12af06 ER |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %post -p <lua> | |
63 | %pear_package_print_optionalpackages | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc ChangeLog install.log | |
68 | %doc optional-packages.txt | |
69 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
70 | %dir %{php_pear_dir}/Horde/Imap | |
71 | %{php_pear_dir}/Horde/Imap/Client.php | |
72 | %{php_pear_dir}/Horde/Imap/Client | |
39d63a13 | 73 | %{php_pear_dir}/data/Horde_Imap_Client |