[python-openstackclient/f20] Initial package version

Jakub Ruzicka jruzicka at fedoraproject.org
Thu Nov 21 18:16:06 UTC 2013


commit dbdca2f4d43cb652a35a95842ec617a8f86df9ff
Author: Jakub Ruzicka <jruzicka at redhat.com>
Date:   Thu Nov 21 19:19:08 2013 +0100

    Initial package version

 .gitignore                  |    1 +
 python-openstackclient.spec |   92 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ca16ebd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-openstackclient-0.2.2.tar.gz
diff --git a/python-openstackclient.spec b/python-openstackclient.spec
new file mode 100644
index 0000000..858d4b8
--- /dev/null
+++ b/python-openstackclient.spec
@@ -0,0 +1,92 @@
+Name:             python-openstackclient
+Version:          0.2.2
+Release:          2%{?dist}
+Summary:          OpenStack Command-line Client
+
+Group:            Development/Languages
+License:          ASL 2.0
+URL:              http://github.com/openstack/python-openstackclient
+Source0:          http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
+
+BuildArch:        noarch
+
+BuildRequires:    python2-devel
+BuildRequires:    python-setuptools
+BuildRequires:    python-pbr
+BuildRequires:    python-d2to1
+BuildRequires:    python-sphinx
+
+Requires:         python-pbr
+Requires:         python-cliff
+Requires:         python-keyring
+Requires:         python-crypto
+Requires:         python-glanceclient
+Requires:         python-keystoneclient
+Requires:         python-novaclient
+Requires:         python-cinderclient
+
+%description
+python-openstackclient is a unified command-line client for the OpenStack APIs.
+It is a thin wrapper to the stock python-*client modules that implement the
+actual REST API client actions.
+
+%package doc
+Summary:          Documentation for OpenStack Nova API Client
+Group:            Documentation
+
+BuildRequires:    python-sphinx
+
+Requires:         %{name} = %{version}-%{release}
+
+%description      doc
+python-openstackclient is a unified command-line client for the OpenStack APIs.
+It is a thin wrapper to the stock python-*client modules that implement the
+actual REST API client actions.
+
+This package contains auto-generated documentation.
+
+
+%prep
+%setup -q
+
+# Remove bundled egg-info
+rm -rf python_openstackclient.egg-info
+
+# We handle requirements ourselves, pkg_resources only bring pain
+rm -rf requirements.txt test-requirements.txt
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Delete tests
+rm -fr %{buildroot}%{python_sitelib}/openstackclient/tests
+
+export PYTHONPATH="$( pwd ):$PYTHONPATH"
+sphinx-build -b html doc/source html
+sphinx-build -b man doc/source man
+
+install -p -D -m 644 man/openstack.1 %{buildroot}%{_mandir}/man1/openstack.1
+
+# Fix hidden-file-or-dir warnings
+rm -fr html/.doctrees html/.buildinfo
+
+%files
+%doc LICENSE README.rst
+%{_bindir}/openstack
+%{python_sitelib}/openstackclient
+%{python_sitelib}/*.egg-info
+%{_mandir}/man1/openstack.1*
+
+%files doc
+%doc html
+
+%changelog
+* Tue Nov 19 2013 Jakub Ruzicka <jruzicka at redhat.com> 0.2.2-2
+- doc subpackage now requires main package
+- Use %{__python2} macro instead of %{__python}
+
+* Wed Oct 30 2013 Jakub Ruzicka <jruzicka at redhat.com> 0.2.2-1
+- Initial package version based on cinderclient
diff --git a/sources b/sources
index e69de29..6ff9e11 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5ad5f3ad0e84c83ec623265420de79d4  python-openstackclient-0.2.2.tar.gz


More information about the scm-commits mailing list