]>
Commit | Line | Data |
---|---|---|
102289ff ER |
1 | # TODO |
2 | # - system locale dir | |
3 | # - fix missing pear(Horde/Kolab.php) | |
4 | %define status stable | |
5 | %define pearname Horde_Prefs | |
102289ff ER |
6 | Summary: %{pearname} - Horde Preferences API |
7 | Name: php-horde-Horde_Prefs | |
67d5178b | 8 | Version: 1.1.8 |
f53a7612 | 9 | Release: 2 |
102289ff ER |
10 | License: LGPL |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
67d5178b | 13 | # Source0-md5: 81245a89d767e4486e17219f2e01c032 |
a2517359 | 14 | URL: https://github.com/horde/horde/tree/master/framework/Prefs/ |
102289ff ER |
15 | BuildRequires: php-channel(pear.horde.org) |
16 | BuildRequires: php-packagexml2cl | |
102289ff ER |
17 | BuildRequires: php-pear-PEAR >= 1:1.7.0 |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
19 | BuildRequires: rpmbuild(macros) >= 1.610 | |
f53a7612 | 20 | Requires: php(json) |
102289ff ER |
21 | Requires: php-channel(pear.horde.org) |
22 | Requires: php-horde-Horde_Exception < 2.0.0 | |
23 | Requires: php-horde-Horde_Mime < 2.0.0 | |
24 | Requires: php-horde-Horde_Translation < 2.0.0 | |
25 | Requires: php-horde-Horde_Util < 2.0.0 | |
13e7e45c | 26 | Requires: php-pear >= 4:1.3.6-2 |
d6c3d86c | 27 | Suggests: php-horde-Horde_Autoloader |
102289ff ER |
28 | Suggests: php-horde-Horde_Db |
29 | Suggests: php-horde-Horde_Image | |
30 | Suggests: php-horde-Horde_Imsp | |
d6c3d86c | 31 | Suggests: php-horde-Horde_Kolab_Storage |
102289ff ER |
32 | BuildArch: noarch |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | # exclude optional dependencies | |
36 | %define _noautoreq pear(Horde/Db.*) pear(Horde/Image.*) pear(Horde/Imsp.*) pear(Horde/Kolab.php) | |
37 | ||
38 | %description | |
39 | The Horde_Prefs package provides a common abstracted interface into | |
40 | the various preferences storage mediums. It also includes all of the | |
41 | functions for retrieving, storing, and checking preference values. | |
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 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post -p <lua> | |
60 | %pear_package_print_optionalpackages | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc ChangeLog install.log | |
65 | %doc optional-packages.txt | |
66 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
67 | %{php_pear_dir}/Horde/Prefs.php | |
68 | %{php_pear_dir}/Horde/Prefs | |
69 | %{php_pear_dir}/data/Horde_Prefs |