-
Notifications
You must be signed in to change notification settings - Fork 18
/
openstack-client.spec
129 lines (94 loc) · 3.39 KB
/
openstack-client.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
%global with_doc 1
%global prj client
%global commit_id 1ed1f5e
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: openstack-%{prj}
Version: 2.6.4
Release: 1.%{commit_id}
Summary: Client for OpenStack Nova API
Group: Applications/System
License: ASL 2.0
Vendor: Grid Dynamics Consulting Services, Inc.
URL: http://pypi.python.org/pypi/python-novaclient
Source0: rackspace-python-novaclient-%{commit_id}.tar.gz
BuildRoot: %{_tmppath}/%{prj}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
Requires: python-novaclient = %{version}-%{release}
%description
This is a client for the OpenStack Nova API. There's a Python API (the
novaclient module), and a command-line script (nova). Each implements 100% of
the OpenStack Nova API.
This package contains command-line script.
%package -n python-novaclient
Summary: Python API for OpenStack Nova
Group: Development/Languages
Requires: python-argparse
Requires: python-simplejson
Requires: python-json
Requires: python-httplib2
Requires: python-prettytable
%description -n python-novaclient
This is a client for the OpenStack Nova API. There's a Python API (the
novaclient module), and a command-line script (nova). Each implements 100% of
the OpenStack Nova API.
This package contains Python API.
%if 0%{?with_doc}
%package doc
Summary: Documentation for OpenStack Nova API
Group: Documentation
%description doc
This is a client for the OpenStack Nova API. There's a Python API (the
novaclient module), and a command-line script (nova). Each implements 100% of
the OpenStack Nova API.
This package contains autogenerated documentation.
%endif
%prep
%setup -q -n rackspace-python-novaclient-%{commit_id}
#patch1 -p1
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# Delete tests
rm -fr %{buildroot}%{python_sitelib}/tests
%if 0%{?with_doc}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build -b html docs html
# Fix hidden-file-or-dir warnings
rm -fr .doctrees .buildinfo
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/nova
%files -n python-novaclient
%defattr(-,root,root,-)
%{python_sitelib}/novaclient
%{python_sitelib}/*.egg-info
%if 0%{?with_doc}
%defattr(-,root,root,-)
%files doc
%doc html
%endif
%changelog
* Fri Sep 16 2011 Alessio Ababilov <[email protected]> - 2.6.4-1.1ed1f5e
- 2.6.4 snapshot
* Tue Jul 19 2011 Andrey Brindeyev <[email protected]> - 2.5.8-1.20251cc
- 2.5.8 snapshot
* Fri Jul 01 2011 Andrey Brindeyev <[email protected]> - 2.5.7-1
- 2.5.7 release
* Tue May 17 2011 Andrey Brindeyev <[email protected]> - 2.4.2-1
- 2.4.2 release
* Fri Mar 25 2011 Andrey Brindeyev <[email protected]> - 2.4.1-3
- Added python-json in Requires
* Fri Mar 25 2011 Andrey Brindeyev <[email protected]> - 2.4.1-2
- Added dependencies on python-httplib2, python-prettytable
* Fri Mar 25 2011 Andrey Brindeyev <[email protected]> - 2.4.1-1
- First build