/[packages]/cauldron/python-httplib2/current/SPECS/python-httplib2.spec
ViewVC logotype

Contents of /cauldron/python-httplib2/current/SPECS/python-httplib2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 425497 - (show annotations) (download)
Thu May 23 21:24:08 2013 UTC (11 years, 1 month ago) by philippem
File size: 1437 byte(s)
fix P3K cert file not found
1 %define fname httplib2
2
3 Name: python-httplib2
4 Summary: Python HTTP library module
5 Version: 0.7.7
6 Release: %mkrel 4
7 Source0: http://httplib2.googlecode.com/files/%{fname}-%{version}.tar.gz
8 Patch0: httplib2-use-system-certs.patch
9 Patch1: httplib2-ssl-hostname.patch
10 URL: http://code.google.com/p/httplib2
11 Group: System/Libraries
12 License: MIT
13 BuildArch: noarch
14 BuildRequires: python
15
16 %description
17 A comprehensive HTTP client library that supports many features left
18 out of other HTTP libraries.
19
20 %package -n python3-httplib2
21 Summary: Python 3 HTTP library module
22 Group: System/Libraries
23 BuildRequires: python3
24
25 %description -n python3-httplib2
26 A comprehensive HTTP client library that supports many features left
27 out of other HTTP libraries.
28
29 %prep
30 %setup -q -c
31 mv httplib2-%{version} python2
32 pushd python2
33 %patch0 -p0 -b .certfile
34 %patch1 -p1 -b .ssl-hostname
35 popd
36 cp -r python2 python3
37
38 %build
39 pushd python2
40 python setup.py build
41 popd
42
43 pushd python3
44 python3 setup.py build
45 popd
46
47 %install
48 rm -rf %{buildroot}
49
50 pushd python2
51 python setup.py install --root=%{buildroot} --compile --optimize=2
52 popd
53
54 pushd python3
55 python3 setup.py install --root=%{buildroot} --compile --optimize=2
56 popd
57
58 %files
59 %doc python2/README
60 %{py_puresitedir}/%{fname}
61 %{py_puresitedir}/%{fname}-%{version}-py%{pyver}.egg-info
62
63 %files -n python3-httplib2
64 %doc python3/README
65 %{py3_puresitedir}/%{fname}
66 %{py3_puresitedir}/%{fname}-%{version}-py%{py3ver}.egg-info

  ViewVC Help
Powered by ViewVC 1.1.30