]>
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 | |
6 | %include /usr/lib/rpm/macros.php | |
7 | Summary: %{pearname} - Horde Preferences API | |
8 | Name: php-horde-Horde_Prefs | |
9cb95db0 | 9 | Version: 1.1.7 |
102289ff ER |
10 | Release: 1 |
11 | License: LGPL | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
9cb95db0 | 14 | # Source0-md5: c74b79754d2b0a255419b23d07694371 |
a2517359 | 15 | URL: https://github.com/horde/horde/tree/master/framework/Prefs/ |
102289ff ER |
16 | BuildRequires: php-channel(pear.horde.org) |
17 | BuildRequires: php-packagexml2cl | |
102289ff ER |
18 | BuildRequires: php-pear-PEAR >= 1:1.7.0 |
19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
20 | BuildRequires: rpmbuild(macros) >= 1.610 | |
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 | |
26 | Requires: php-json | |
13e7e45c | 27 | Requires: php-pear >= 4:1.3.6-2 |
d6c3d86c | 28 | Suggests: php-horde-Horde_Autoloader |
102289ff ER |
29 | Suggests: php-horde-Horde_Db |
30 | Suggests: php-horde-Horde_Image | |
31 | Suggests: php-horde-Horde_Imsp | |
d6c3d86c | 32 | Suggests: php-horde-Horde_Kolab_Storage |
102289ff ER |
33 | BuildArch: noarch |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | # exclude optional dependencies | |
37 | %define _noautoreq pear(Horde/Db.*) pear(Horde/Image.*) pear(Horde/Imsp.*) pear(Horde/Kolab.php) | |
38 | ||
39 | %description | |
40 | The Horde_Prefs package provides a common abstracted interface into | |
41 | the various preferences storage mediums. It also includes all of the | |
42 | functions for retrieving, storing, and checking preference values. | |
43 | ||
44 | In PEAR status of this package is: %{status}. | |
45 | ||
46 | %prep | |
47 | %pear_package_setup | |
48 | ||
49 | %build | |
50 | packagexml2cl package.xml > ChangeLog | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
55 | %pear_package_install | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post -p <lua> | |
61 | %pear_package_print_optionalpackages | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc ChangeLog install.log | |
66 | %doc optional-packages.txt | |
67 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
68 | %{php_pear_dir}/Horde/Prefs.php | |
69 | %{php_pear_dir}/Horde/Prefs | |
70 | %{php_pear_dir}/data/Horde_Prefs |