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

Diff of /cauldron/python-swiftclient/current/SPECS/python-swiftclient.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 494611 by pterjan, Thu Jan 17 21:30:27 2013 UTC revision 494612 by neoclust, Thu Oct 10 05:54:20 2013 UTC
# Line 1  Line 1 
1  Name:       python-swiftclient  Name:       python-swiftclient
2  Version:    1.2.0  Version:    1.7.0
3  Release:    %mkrel 4  Release:    %mkrel 1
4  Summary:    Python API and CLI for OpenStack Swift  Summary:    Client Library for OpenStack Object Storage API
 Group:      Development/Python  
   
5  License:    ASL 2.0  License:    ASL 2.0
6  URL:        https://github.com/openstack/python-swiftclient  Group:      Development/Python
7  BuildArch:  noarch  URL:        http://pypi.python.org/pypi/%{name}
8    Source0:    http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
 #Source0:    https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz  
 Source0:    http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz  
9    
10  #  #
11  # patches_base=1.2.0  # patches_base=1.7.0
12  #  #
13    Patch0001: 0001-Remove-runtime-dependency-on-python-pbr.patch
14    
15    BuildArch:  noarch
16  Requires:   python-simplejson  Requires:   python-simplejson
17  # /usr/bin/swift collision with older swift-im rhbz#857900  # /usr/bin/swift collision with older swift-im rhbz#857900
18  Conflicts:  swift < 2.0-0.3  Conflicts:  swift < 2.0-0.3
19    
20  BuildRequires: python-devel  BuildRequires: python-devel
21  BuildRequires: python-setuptools  BuildRequires: python-setuptools
22    BuildRequires: python-d2to1
23    BuildRequires: python-pbr
24    
25  %description  %description
26  Client library and command line utility for interacting with Openstack  Client library and command line utility for interacting with Openstack
27  Swift's API.  Object Storage API.
28    
29  %package doc  %package doc
30  Summary:    Documentation for OpenStack Swift API Client  Summary:    Documentation for OpenStack Object Storage API Client
31  Group:      Documentation  Group:      Documentation
32    
33  BuildRequires: python-sphinx  BuildRequires: python-sphinx
34    
35  %description doc  %description doc
36  Documentation for the client library for interacting with Openstack  Documentation for the client library for interacting with Openstack
37  Swift's API.  Object Storage API.
38    
39  %prep  %prep
40  %setup -q  %setup -q
41    
42    %patch0001 -p1
43    
44    # We provide version like this in order to remove runtime dep on pbr.
45    sed -i s/REDHATSWIFTCLIENTVERSION/%{version}/ swiftclient/version.py
46    
47    # Remove bundled egg-info
48    rm -rf python_swiftclient.egg-info
49    
50  %build  %build
51  %{__python} setup.py build  %{__python} setup.py build
52    
53  %install  %install
54  %{__python} setup.py install -O1 --skip-build --root %{buildroot}  %{__python} setup.py install -O1 --skip-build --root %{buildroot}
55    
 # Delete tests  
 rm -fr %{buildroot}%{python_sitelib}/tests  
   
56  export PYTHONPATH="$( pwd ):$PYTHONPATH"  export PYTHONPATH="$( pwd ):$PYTHONPATH"
57  pushd doc  pushd doc
58  make html  make html
59  popd  popd
60    
61    install -p -D -m 644 doc/manpages/swift.1 %{buildroot}%{_mandir}/man1/swift.1
62    
63  # Fix hidden-file-or-dir warnings  # Fix hidden-file-or-dir warnings
64  rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo  rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
65    
# Line 61  rm -fr doc/build/html/.doctrees doc/buil Line 68  rm -fr doc/build/html/.doctrees doc/buil
68  %{_bindir}/swift  %{_bindir}/swift
69  %{python_sitelib}/swiftclient  %{python_sitelib}/swiftclient
70  %{python_sitelib}/*.egg-info  %{python_sitelib}/*.egg-info
71    %{_mandir}/man1/swift.1*
72    
73  %files doc  %files doc
74  %doc LICENSE doc/build/html  %doc LICENSE doc/build/html

Legend:
Removed from v.494611  
changed lines
  Added in v.494612

  ViewVC Help
Powered by ViewVC 1.1.30