forked from openstack/python-keystoneclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-keystoneclient.spec
More file actions
78 lines (52 loc) · 1.77 KB
/
python-keystoneclient.spec
File metadata and controls
78 lines (52 loc) · 1.77 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
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
%define mod_name keystoneclient
%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: python-keystoneclient
Version: 2.7
Release: 1%{?dist}
Epoch: 1
Summary: OpenStack Keystone Client
Group: Development/Languages
License: Apache 2.0
Vendor: Grid Dynamics Consulting Services, Inc.
URL: http://www.openstack.org
Source0: %{name}-%{version}.tar.gz
#Patch0: keystoneclient-list-long.patch
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python-sphinx make
Requires: python-httplib2 python-argparse python-prettytable
%description
This is a client for the OpenStack Keystone API. There is a Python API (the
keystoneclient module), and a command-line script (keystone).
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{epoch}:%{version}-%{release}
%description doc
Documentation for %{name}.
%prep
%setup -q -n %{name}-%{version}
#%patch0 -p1
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
make -C docs html PYTHONPATH=%{buildroot}%{python_sitelib}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.rst LICENSE AUTHORS HACKING
%{python_sitelib}/%{mod_name}*
%{python_sitelib}/python_keystoneclient*.egg-info
%{_usr}/bin/*
%files doc
%defattr(-,root,root,-)
%doc docs/_build/html
%changelog
* Wed Jan 04 2012 Alessio Ababilov <aababilov@griddynamics.com> - 2.7
- Initial release: spec created