1 |
# $Id: php-pear-HTTP-Request.spec,v 1.1 2009/03/05 15:11:16 slords Exp $ |
2 |
|
3 |
Summary: PEAR HTTP_Request provides an easy way to perform HTTP requests |
4 |
%define name php-pear-HTTP-Request |
5 |
%define version 1.4.0 |
6 |
%define release 2 |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: PHP License |
11 |
Group: Applications/Web |
12 |
Source0: php-pear-HTTP-Request-%{version}.tgz |
13 |
Url: http://pear.php.net/package/HTTP_Request |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-%(id -u -n)-buildroot |
15 |
BuildArchitectures: noarch |
16 |
Requires: php |
17 |
Requires: php-pear-Net-URL |
18 |
Requires: php-pear-Net-Socket |
19 |
Obsoletes: pear-http_request |
20 |
|
21 |
%description |
22 |
Supports GET/POST/HEAD/TRACE/PUT/DELETE, Basic authentication, Proxy, |
23 |
Proxy Authentication, SSL, file uploads etc. |
24 |
|
25 |
|
26 |
%prep |
27 |
%setup -q -n php-pear-HTTP-Request-%{version} |
28 |
|
29 |
%build |
30 |
|
31 |
%clean |
32 |
rm -rf $RPM_BUILD_ROOT |
33 |
|
34 |
%install |
35 |
rm -rf $RPM_BUILD_ROOT |
36 |
mkdir -p $RPM_BUILD_ROOT/usr/share/pear-addons/HTTP |
37 |
cp -rp Request* $RPM_BUILD_ROOT/usr/share/pear-addons/HTTP |
38 |
mkdir -p $RPM_BUILD_ROOT/usr/share/pear-addons/doc/HTTP_Request |
39 |
cp -rp docs $RPM_BUILD_ROOT/usr/share/pear-addons/doc/HTTP_Request/ |
40 |
|
41 |
%files |
42 |
%defattr(-,root,root) |
43 |
%dir /usr/share/pear-addons/ |
44 |
/usr/share/pear-addons/* |
45 |
|
46 |
%changelog |
47 |
* Tue Dec 30 2008 Gavin Weight <gweight@gmail.com> 1.4.0-2 |
48 |
- Add requires php-pear-Net-URL and php-pear-Net-Socket. [SME: 4909] |
49 |
|
50 |
* Sun Aug 26 2007 John H. Bennett III <bennettj@johnbennettservices.com> 1.4.0-1 |
51 |
- Updated package name to match what is in SME8 repo so upgrades from 7 to 8 will |
52 |
work without any issues. |
53 |
|
54 |
* Fri Dec 15 2006 John H. Bennett III <bennettj@johnbennettservices.com> 1.4.0-00sme |
55 |
- Updated to 1.4.0 |
56 |
|
57 |
* Mon Oct 9 2006 John H. Bennett III <bennettj@johnbennettservices.com> 1.3.0-00sme |
58 |
- Initial |