-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-ironicclient.spec
58 lines (44 loc) · 1.5 KB
/
python-ironicclient.spec
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
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: python-ironicclient
Version: XXX
Release: XXX
Summary: Python client for Ironic
License: ASL 2.0
URL: https://pypi.python.org/pypi/python-ironicclient
Source0: http://tarballs.openstack.org/python-ironicclient/python-ironicclient-0.3.1.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-pbr
BuildRequires: python-setuptools
Requires: python-anyjson
Requires: python-dogpile-cache
Requires: python-httplib2
Requires: python-keystoneclient
Requires: python-lxml
Requires: python-pbr
Requires: python-prettytable
Requires: python-six
Requires: python-stevedore
Requires: python-oslo-i18n
Requires: python-oslo-utils
%description
A python and command line client library for Ironic.
%prep
%setup -q -n %{name}-%{upstream_version}
# Remove the requirements file so that pbr hooks don't add it
# to distutils requires_dist config
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc LICENSE README.rst
%{_bindir}/*
%{python2_sitelib}/ironicclient*
%{python2_sitelib}/python_ironicclient*
%changelog