[python-ceilometerclient/el6] Initial package.

Jakub Ruzicka jruzicka at fedoraproject.org
Tue Mar 26 18:40:13 UTC 2013


commit 54ff0c3cd6a8b8e0f9531ed716d9c40f826b5c53
Author: Jakub Ruzicka <jruzicka at redhat.com>
Date:   Tue Mar 26 19:37:39 2013 +0100

    Initial package.

 .gitignore                   |    1 +
 python-ceilometerclient.spec |   94 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1b42d7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.0.10.d84fd99.tar.gz
diff --git a/python-ceilometerclient.spec b/python-ceilometerclient.spec
new file mode 100644
index 0000000..fd2d82e
--- /dev/null
+++ b/python-ceilometerclient.spec
@@ -0,0 +1,94 @@
+%global commit_hash d84fd99
+
+Name:             python-ceilometerclient
+Version:          0.0.10
+Release:          0.2.git%{commit_hash}%{?dist}
+Summary:          Python API and CLI for OpenStack Ceilometer
+
+Group:            Development/Languages
+License:          ASL 2.0
+URL:              https://github.com/openstack/%{name}
+Source0:          https://github.com/redhat-openstack/%{name}/archive/%{version}.%{commit_hash}.tar.gz
+
+BuildArch:        noarch
+BuildRequires:    python-setuptools
+BuildRequires:    python2-devel
+
+Requires:         python-argparse
+Requires:         python-prettytable >= 0.6
+Requires:         python-prettytable < 0.7
+Requires:         python-setuptools
+Requires:         python-iso8601 >= 0.1.4
+
+#
+# patches_base=0.0.10.d84fd99
+#
+
+%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
+
+%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 -qn %{name}-%{version}.%{commit_hash}
+
+# Remove bundled egg-info.
+rm -rf python_novaclient.egg-info
+
+# Let RPM handle deps.
+# TODO: Have the following handle multi line entries.
+sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
+
+# There is no version yet.
+sed -i 's/setup\.get_version(project)/"%{version}.%{commit_hash}"/' setup.py
+
+# MANIFEST.in contains mostly non-existent files, delete it.
+rm -f 'MANIFEST.in'
+
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+# Delete tests
+rm -rf %{buildroot}%{python_sitelib}/tests
+
+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.md
+%doc LICENSE
+%{_bindir}/ceilometer
+%{python_sitelib}/ceilometerclient
+%{python_sitelib}/*.egg-info
+
+%files doc
+%doc html
+
+%changelog
+* Tue Mar 26 2013 Jakub Ruzicka <jruzicka at redhat.com> 0.0.10-0.2.gitd84fd99
+- Add BuildRequires: python2-devel.
+
+* Tue Mar 26 2013 Jakub Ruzicka <jruzicka at redhat.com> 0.0.10-0.1.gitd84fd99
+- Initial package based on python-novaclient.
diff --git a/sources b/sources
index e69de29..da1212a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+90b1f12cf05230b0591203c28832ee02  0.0.10.d84fd99.tar.gz


More information about the scm-commits mailing list