-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-ceilometerclient.spec
141 lines (104 loc) · 4.25 KB
/
python-ceilometerclient.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Name: python-ceilometerclient
Version: XXX
Release: XXX{?dist}
Summary: Python API and CLI for OpenStack Ceilometer
Group: Development/Languages
License: ASL 2.0
URL: https://github.com/openstack/%{name}
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
Patch0001: 0001-Remove-runtime-dependency-on-python-pbr.patch
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python2-devel
BuildRequires: python-pbr
BuildRequires: python-d2to1
Requires: python-setuptools
Requires: python-argparse
Requires: python-prettytable
Requires: python-iso8601
Requires: python-oslo-utils
Requires: python-keystoneclient
Requires: python-six >= 1.7.0
Requires: python-stevedore
%description
This is a client library for Ceilometer built on the Ceilometer API. It
provides a Python API (the ceilometerclient module) and a command-line tool
(ceilometer).
%package doc
Summary: Documentation for OpenStack Ceilometer API Client
Group: Documentation
BuildRequires: python-sphinx
BuildRequires: python-oslo-sphinx
%description doc
This is a client library for Ceilometer built on the Ceilometer API. It
provides a Python API (the ceilometerclient module) and a command-line tool
(ceilometer).
This package contains auto-generated documentation.
%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/REDHATCEILOMETERCLIENTVERSION/%{version}/ ceilometerclient/__init__.py
# Remove bundled egg-info
rm -rf python_ceilometerclient.egg-info
# Let RPM handle the requirements
rm -f {,test-}requirements.txt
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build -b html doc/source html
# Fix hidden-file-or-dir warnings
rm -rf html/.doctrees html/.buildinfo
%files
%doc README.rst
%doc LICENSE
%{_bindir}/ceilometer
%{python_sitelib}/ceilometerclient
%{python_sitelib}/*.egg-info
%files doc
%doc html
%changelog
* Wed Oct 08 2014 Jakub Ruzicka <[email protected]> 1.0.12-1
- Update to upstream 1.0.12
- New Requires: python-oslo-utils
- New doc BuildRequires: python-oslo-utils
- oslosphinx -> oslo.sphinx fix
* Tue Sep 23 2014 Jakub Ruzicka <[email protected]> 1.0.11-1
- Update to upstream 1.0.11
- New Requires: python-stevedore
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 1.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Jun 05 2014 Jakub Ruzicka <[email protected]> 1.0.10-1
- Update to upstream 1.0.10
- Remove requirements.txt in .spec instead of patch
* Mon Feb 17 2014 Pádraig Brady <[email protected]> - 1.0.9-3
- Require python-six >= 1.4.1 to ensure update
* Mon Feb 17 2014 Alan Pevec <[email protected]> 1.0.9-1
- Update to upstream 1.0.9
* Mon Dec 16 2013 Jakub Ruzicka <[email protected]> 1.0.8-1
- Update to upstream 1.0.8
- New dependency: python-six
* Mon Oct 07 2013 Jakub Ruzicka <[email protected]> 1.0.6-1
- Update to upstream 1.0.6.
* Mon Sep 09 2013 Jakub Ruzicka <[email protected]> 1.0.3-1
- Update to upstream 1.0.3.
- README extension changed.
- Get rid of pbr deps in the patch instead of this spec file.
* Sun Aug 04 2013 Fedora Release Engineering <[email protected]> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jul 16 2013 Jakub Ruzicka <[email protected]> 1.0.1-2
- New build requires: python-d2to1, python-pbr.
* Tue Jul 16 2013 Jakub Ruzicka <[email protected]> 1.0.1-1
- Update to upstream version 1.0.1.
- Remove new runtime dependency on python-pbr.
- Remove requirements file.
- Make requires generic instead of requiring specific versions.
* Mon Apr 01 2013 Jakub Ruzicka <[email protected]> 1.0.0
- Update to upstream version 1.0.0.
- Added Requires: python-keystoneclient >= 0.1.2.
* Tue Mar 26 2013 Jakub Ruzicka <[email protected]> 0.0.10-0.2.gitd84fd99
- Add BuildRequires: python2-devel.
* Tue Mar 26 2013 Jakub Ruzicka <[email protected]> 0.0.10-0.1.gitd84fd99
- Initial package based on python-novaclient.