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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (show annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (11 years, 3 months ago) by pterjan
File size: 1451 byte(s)
oops
1 Name: python-swiftclient
2 Version: 1.2.0
3 Release: %mkrel 4
4 Summary: Python API and CLI for OpenStack Swift
5 Group: Development/Python
6
7 License: ASL 2.0
8 URL: https://github.com/openstack/python-swiftclient
9 BuildArch: noarch
10
11 #Source0: https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
12 Source0: http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
13
14 #
15 # patches_base=1.2.0
16 #
17
18
19 Requires: python-simplejson
20 # /usr/bin/swift collision with older swift-im rhbz#857900
21 Conflicts: swift < 2.0-0.3
22
23 BuildRequires: python-devel
24 BuildRequires: python-setuptools
25
26 %description
27 Client library and command line utility for interacting with Openstack
28 Swift's API.
29
30 %package doc
31 Summary: Documentation for OpenStack Swift API Client
32 Group: Documentation
33
34 BuildRequires: python-sphinx
35
36 %description doc
37 Documentation for the client library for interacting with Openstack
38 Swift's API.
39
40 %prep
41 %setup -q
42
43 %build
44 %{__python} setup.py build
45
46 %install
47 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
48
49 # Delete tests
50 rm -fr %{buildroot}%{python_sitelib}/tests
51
52 export PYTHONPATH="$( pwd ):$PYTHONPATH"
53 pushd doc
54 make html
55 popd
56 # Fix hidden-file-or-dir warnings
57 rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
58
59 %files
60 %doc LICENSE README.rst
61 %{_bindir}/swift
62 %{python_sitelib}/swiftclient
63 %{python_sitelib}/*.egg-info
64
65 %files doc
66 %doc LICENSE doc/build/html
67

  ViewVC Help
Powered by ViewVC 1.1.30