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