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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688372 - (hide 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 neoclust 314257 Name: python-swiftclient
2 kharec 610635 Version: 2.0.3
3 umeabot 688372 Release: %mkrel 3
4 neoclust 494612 Summary: Client Library for OpenStack Object Storage API
5     License: ASL 2.0
6 neoclust 314257 Group: Development/Python
7 neoclust 494612 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 neoclust 314257 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 kharec 610641 BuildRequires: python-requests
16 neoclust 314257 BuildRequires: python-setuptools
17 neoclust 494612 BuildRequires: python-d2to1
18     BuildRequires: python-pbr
19 neoclust 314257
20     %description
21     Client library and command line utility for interacting with Openstack
22 neoclust 494612 Object Storage API.
23 neoclust 314257
24     %package doc
25 neoclust 494612 Summary: Documentation for OpenStack Object Storage API Client
26 neoclust 314257 Group: Documentation
27    
28     BuildRequires: python-sphinx
29    
30     %description doc
31     Documentation for the client library for interacting with Openstack
32 neoclust 494612 Object Storage API.
33 neoclust 314257
34     %prep
35     %setup -q
36    
37 neoclust 494612 # 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 neoclust 314257 %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 neoclust 494612
54     install -p -D -m 644 doc/manpages/swift.1 %{buildroot}%{_mandir}/man1/swift.1
55    
56 neoclust 314257 # 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 neoclust 494612 %{_mandir}/man1/swift.1*
65 neoclust 314257
66     %files doc
67     %doc LICENSE doc/build/html
68    

  ViewVC Help
Powered by ViewVC 1.1.28