/[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 688372 - (show annotations) (download)
Tue Sep 16 20:19:27 2014 UTC (7 years ago) by umeabot
File size: 1689 byte(s)
Mageia 5 Mass Rebuild
1 Name: python-swiftclient
2 Version: 2.0.3
3 Release: %mkrel 3
4 Summary: Client Library for OpenStack Object Storage API
5 License: ASL 2.0
6 Group: Development/Python
7 URL: http://pypi.python.org/pypi/%{name}
8 Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
9 BuildArch: noarch
10 Requires: python-simplejson
11 # /usr/bin/swift collision with older swift-im rhbz#857900
12 Conflicts: swift < 2.0-0.3
13
14 BuildRequires: python-devel
15 BuildRequires: python-requests
16 BuildRequires: python-setuptools
17 BuildRequires: python-d2to1
18 BuildRequires: python-pbr
19
20 %description
21 Client library and command line utility for interacting with Openstack
22 Object Storage API.
23
24 %package doc
25 Summary: Documentation for OpenStack Object Storage API Client
26 Group: Documentation
27
28 BuildRequires: python-sphinx
29
30 %description doc
31 Documentation for the client library for interacting with Openstack
32 Object Storage API.
33
34 %prep
35 %setup -q
36
37 # We provide version like this in order to remove runtime dep on pbr.
38 sed -i s/REDHATSWIFTCLIENTVERSION/%{version}/ swiftclient/version.py
39
40 # Remove bundled egg-info
41 rm -rf python_swiftclient.egg-info
42
43 %build
44 %{__python} setup.py build
45
46 %install
47 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
48
49 export PYTHONPATH="$( pwd ):$PYTHONPATH"
50 pushd doc
51 make html
52 popd
53
54 install -p -D -m 644 doc/manpages/swift.1 %{buildroot}%{_mandir}/man1/swift.1
55
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 %{_mandir}/man1/swift.1*
65
66 %files doc
67 %doc LICENSE doc/build/html
68

  ViewVC Help
Powered by ViewVC 1.1.28