-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpython-ironicclient.spec
94 lines (69 loc) · 2.79 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
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
%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{?dist}
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
Patch0001: 0001-ironicclient-Remove-runtime-dependency-on-python-pbr.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-pbr
BuildRequires: python-setuptools
Requires: python-prettytable
Requires: python-keystoneclient
Requires: python-six
Requires: python-stevedore
Requires: python-anyjson
Requires: python-httplib2
Requires: python-lxml
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}
%patch0001 -p1
# We provide version like this in order to remove runtime dep on pbr.
sed -i s/REDHATIRONICCLIENTVERSION/%{version}/ ironicclient/__init__.py
# 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
* Thu Oct 16 2014 Angus Thomas <[email protected]> - 0.3.1-1
- Rebased to python-ironicclient-0.3.1
* Tue Oct 07 2014 Dan Prince <[email protected]> - XXX
- Rebase patches.
- Remove requirements.txt and test-requirements.txt via the RPM spec
file instead of patch files (this is more robust)
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Mar 26 2014 Angus Thomas <[email protected]> - 0.1.2-5
- Removed instance of macro in Changelog
- Consistent use of tabs in SPEC file
* Thu Feb 27 2014 Angus Thomas <[email protected]> - 0.1.2-4
- Switched to patches made with git
- Write REDHATIRONICCLIENTVERSION correctly
- Reordered files section
* Thu Feb 27 2014 Angus Thomas <[email protected]> - 0.1.2-3
- Added macro fix to support building on EL6
* Wed Feb 26 2014 Angus Thomas <[email protected]> - 0.1.2-2
- Added patches to remove pbr dependency
- Updated the source URL
- Removed deletion of python_ironicclient.egg-info
* Tue Feb 25 2014 Angus Thomas <[email protected]> - 0.1.2-1
- Initial package.