-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-troveclient.spec
More file actions
98 lines (78 loc) · 2.31 KB
/
python-troveclient.spec
File metadata and controls
98 lines (78 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Name: python-troveclient
Version: XXX
Release: XXX
Summary: Client library for OpenStack DBaaS API
License: ASL 2.0
URL: http://www.openstack.org/
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-sphinx
BuildRequires: python-requests
BuildRequires: python-pbr
BuildRequires: python-oslo-sphinx
Requires: python-argparse
Requires: python-keystoneclient
Requires: python-oslo-utils
Requires: python-pbr
Requires: python-prettytable
Requires: python-requests
Requires: python-setuptools
Requires: python-simplejson
Requires: python-six
# required for tests
# tests currently disabled due missing deps
#BuildRequires: python-pep8
#BuildRequires: pyflakes
# currently under review
# https://bugzilla.redhat.com/show_bug.cgi?id=839056
# BuildRequires: python-flake8
# Currently under review
# https://bugzilla.redhat.com/show_bug.cgi?id=958007
# BuildRequires: python-hacking
#BuildRequires: python-mock
#BuildRequires: python-testtools
#BuildRequires: python-testrepository
%description
This is a client for the Trove API. There's a Python API (the
troveclient module), and a command-line script (trove). Each
implements 100% (or less ;) ) of the Trove API.
%prep
%setup -q -n %{name}-%{upstream_version}
# Remove bundled egg-info
rm -rf %{name}.egg-info
# Let RPM handle the requirements
rm -f {test-,}requirements.txt
# Generate html docs
#export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build -b html doc/source html
# Remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%build
%if 0%{?rhel} == 6
%{__python} setup.py build
%else
%{__python2} setup.py build
%endif
%install
%if 0%{?rhel} == 6
%{__python} setup.py install --skip-build --root %{buildroot}
%else
%{__python2} setup.py install --skip-build --root %{buildroot}
%endif
# currently disabling tests
# see buildrequires
#%check
#%{__python2} setup.py test
%files
%doc html README.rst LICENSE
%if 0%{?rhel} == 6
%{python_sitelib}/python_troveclient-*.egg-info
%{python_sitelib}/troveclient
%else
%{python2_sitelib}/python_troveclient-*.egg-info
%{python2_sitelib}/troveclient
%endif
%{_bindir}/trove
%changelog