forked from jasonhancock/cloudstack-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-cloudstack.spec
More file actions
42 lines (33 loc) · 1.21 KB
/
python-cloudstack.spec
File metadata and controls
42 lines (33 loc) · 1.21 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
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: Python client library for the CloudStack API
Name: python-cloudstack
Version: 3.0.0
Release: 1%{?dist}
License: MIT
Group: Development/Languages
URL: https://github.com/jasonhancock/cloudstack-python-client
Source: python-cloudstack-%{version}.tar.gz
BuildRequires: python-devel, python-setuptools-devel
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Python client library for the CloudStack API
%prep
%setup -q -n %{name}-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README.md example1.py example2.py
%{python_sitelib}/*
%changelog
* Tue Feb 28 2012 Jason Hancock <[email protected]> 3.0.0
- Changing version numbering system to correlate with CloudStack version.
- Updating for CloudStack 3.0.0
* Mon Dec 19 2011 Jason Hancock <[email protected]> 0.1-1
- Initial spec file