2 %define pearname Horde_Http
3 Summary: %{pearname} - Horde HTTP libraries
4 Name: php-horde-Horde_Http
8 Group: Development/Languages/PHP
9 Source0: http://pear.horde.org/get/%{pearname}-%{version}.tgz
10 # Source0-md5: 2e34f5965cc426571534684e4cbac576
11 URL: https://github.com/horde/horde/tree/master/framework/Http/
12 BuildRequires: php-channel(pear.horde.org)
13 BuildRequires: php-packagexml2cl
14 BuildRequires: php-pear-PEAR >= 1:1.7.0
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.610
17 Requires: php-channel(pear.horde.org)
18 Requires: php-horde-Horde_Exception < 2.0.0
19 Requires: php-horde-Horde_Support < 2.0.0
20 Requires: php-pear >= 4:1.3.6-2
22 Suggests: php-horde-Horde_Test
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This package provides a set of classes for making HTTP requests.
30 In PEAR status of this package is: %{status}.
35 mv docs/Horde_Http/examples .
38 packagexml2cl package.xml > ChangeLog
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_pear_dir}
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc ChangeLog install.log
54 %{php_pear_dir}/.registry/.channel.*/*.reg
55 %{php_pear_dir}/Horde/Http.php
56 %{php_pear_dir}/Horde/Http
57 %{_examplesdir}/%{name}-%{version}