-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-saharaclient.spec
More file actions
66 lines (49 loc) · 1.73 KB
/
python-saharaclient.spec
File metadata and controls
66 lines (49 loc) · 1.73 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
Name: python-saharaclient
Version: XXX
Release: XXX
Provides: python-savannaclient = %{version}-%{release}
Obsoletes: python-savannaclient <= 0.5.0-2
Summary: Client library for OpenStack Sahara API
License: ASL 2.0
URL: https://launchpad.net/sahara
Source0: http://tarballs.openstack.org/python-saharaclient/python-saharaclient-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-d2to1
BuildRequires: python-pbr >= 1.6
Requires: python-babel >= 1.3
Requires: python-cliff
Requires: python-iso8601
Requires: python-keystoneclient
Requires: python-oslo-i18n
Requires: python-oslo-log
Requires: python-oslo-utils
Requires: python-netaddr >= 0.7.12
Requires: python-pbr
Requires: python-prettytable
Requires: python-requests >= 2.5.2
Requires: python-six >= 1.9.0
%description
Python client library for interacting with OpenStack Sahara API.
%prep
%setup -q -n %{name}-%{upstream_version}
rm -rf python_saharaclient.egg-info
rm -rf {,test-}requirements.txt
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%check
# Building on koji with virtualenv requires test-requirements.txt and this
# causes errors when trying to resolve the package names, also turning on pep8
# results in odd exceptions from flake8.
# TODO mimccune fix up unittests
# sh run_tests.sh --no-virtual-env --no-pep8
%files
%license LICENSE
%doc ChangeLog README.rst
%{_bindir}/sahara
%{python2_sitelib}/saharaclient
%{python2_sitelib}/*.egg-info
%changelog