1 |
spuhler |
4948 |
%define prj Horde_Framework |
2 |
|
|
|
3 |
|
|
%define xmldir %{_var}/lib/pear |
4 |
|
|
%define peardir %(pear config-get php_dir 2> /dev/null) |
5 |
|
|
|
6 |
|
|
Name: horde-framework |
7 |
|
|
Version: 0.0.2 |
8 |
|
|
Release: %mkrel 7 |
9 |
|
|
Summary: Horde core Framework libraries |
10 |
|
|
License: LGPL |
11 |
|
|
Group: Networking/Mail |
12 |
|
|
Url: http://pear.horde.org/index.php?package=%{prj} |
13 |
|
|
Source0: %{prj}-%{version}.tgz |
14 |
|
|
BuildArch: noarch |
15 |
|
|
Requires(pre): php-pear |
16 |
|
|
Requires: horde-dom |
17 |
|
|
Requires: horde-form |
18 |
|
|
Requires: horde-browser |
19 |
|
|
Requires: horde-cli |
20 |
|
|
Requires: php-pear-Services_Weather |
21 |
|
|
Requires: php-pear-Log |
22 |
|
|
BuildRequires: php-pear |
23 |
|
|
BuildRequires: php-pear-channel-horde |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
These classes provide the core functionality of the Horde Application Framework. |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
%prep |
30 |
|
|
%setup -q -n %{prj}-%{version} |
31 |
|
|
|
32 |
|
|
%build |
33 |
|
|
%__mv ../package.xml . |
34 |
|
|
|
35 |
|
|
%install |
36 |
|
|
pear install --packagingroot %{buildroot} --nodeps package.xml |
37 |
|
|
|
38 |
|
|
%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} |
39 |
|
|
|
40 |
|
|
%__mkdir_p %{buildroot}%{_docdir}/horde |
41 |
|
|
|
42 |
|
|
%__mkdir_p %{buildroot}%{xmldir} |
43 |
|
|
%__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
%__rm -rf %{buildroot} |
47 |
|
|
|
48 |
|
|
%post |
49 |
|
|
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml |
50 |
|
|
|
51 |
|
|
%postun |
52 |
|
|
if [ "$1" -eq "0" ]; then |
53 |
|
|
pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj} |
54 |
|
|
fi |
55 |
|
|
|
56 |
|
|
%files |
57 |
|
|
%defattr(-, root, root) |
58 |
|
|
%{xmldir}/%{prj}.xml |
59 |
|
|
%{peardir}/Horde.php |
60 |
|
|
%dir %{peardir}/Horde |
61 |
|
|
%{peardir}/Horde/Config.php |
62 |
|
|
%{peardir}/Horde/Help.php |
63 |
|
|
%{peardir}/Horde/Menu.php |
64 |
|
|
%{peardir}/Horde/Registry.php |
65 |
|
|
%{peardir}/Horde/Text.php |
66 |
|
|
%dir %{_docdir}/horde |
67 |
|
|
|
68 |
|
|
|