]>
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 | |
9 | Version: 1.0.0 | |
10 | Release: 1 | |
11 | License: LGPL | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz | |
14 | # Source0-md5: bf4c7e5b9f7365f7ddcc5165b47de5c7 | |
15 | URL: http://pear.horde.org/package/Horde_Prefs/ | |
16 | BuildRequires: php-channel(pear.horde.org) | |
17 | BuildRequires: php-packagexml2cl | |
18 | BuildRequires: php-pear-PEAR | |
19 | BuildRequires: php-pear-PEAR >= 1:1.7.0 | |
20 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
21 | BuildRequires: rpmbuild(macros) >= 1.610 | |
22 | Requires: php-channel(pear.horde.org) | |
23 | Requires: php-horde-Horde_Exception < 2.0.0 | |
24 | Requires: php-horde-Horde_Mime < 2.0.0 | |
25 | Requires: php-horde-Horde_Translation < 2.0.0 | |
26 | Requires: php-horde-Horde_Util < 2.0.0 | |
27 | Requires: php-json | |
28 | Requires: php-pear | |
29 | Suggests: php-horde-Horde_Db | |
30 | Suggests: php-horde-Horde_Image | |
31 | Suggests: php-horde-Horde_Imsp | |
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 |