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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 425497 - (hide 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 wally 53106 %define fname httplib2
2    
3     Name: python-httplib2
4     Summary: Python HTTP library module
5 philippem 325421 Version: 0.7.7
6 philippem 425497 Release: %mkrel 4
7 wally 53106 Source0: http://httplib2.googlecode.com/files/%{fname}-%{version}.tar.gz
8 philippem 268282 Patch0: httplib2-use-system-certs.patch
9 luigiwalser 412877 Patch1: httplib2-ssl-hostname.patch
10 wally 53106 URL: http://code.google.com/p/httplib2
11     Group: System/Libraries
12     License: MIT
13     BuildArch: noarch
14 guillomovitch 216361 BuildRequires: python
15 wally 53106
16     %description
17     A comprehensive HTTP client library that supports many features left
18     out of other HTTP libraries.
19    
20 guillomovitch 216361 %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 wally 53106 %prep
30 philippem 268293 %setup -q -c
31     mv httplib2-%{version} python2
32     pushd python2
33 philippem 268282 %patch0 -p0 -b .certfile
34 luigiwalser 412877 %patch1 -p1 -b .ssl-hostname
35 philippem 268293 popd
36 guillomovitch 216361 cp -r python2 python3
37 wally 53106
38     %build
39 guillomovitch 216361 pushd python2
40     python setup.py build
41     popd
42 wally 53106
43 guillomovitch 216361 pushd python3
44     python3 setup.py build
45     popd
46    
47 wally 53106 %install
48 guillomovitch 216361 rm -rf %{buildroot}
49 wally 53106
50 guillomovitch 216361 pushd python2
51     python setup.py install --root=%{buildroot} --compile --optimize=2
52     popd
53 wally 53106
54 guillomovitch 216361 pushd python3
55     python3 setup.py install --root=%{buildroot} --compile --optimize=2
56     popd
57    
58 wally 53106 %files
59 guillomovitch 216361 %doc python2/README
60 wally 53106 %{py_puresitedir}/%{fname}
61     %{py_puresitedir}/%{fname}-%{version}-py%{pyver}.egg-info
62 guillomovitch 216361
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