public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-aodhclient] epel10: Initial import (#1304467)
@ 2026-05-31 14:38 Pradeep Kilambi
0 siblings, 0 replies; only message in thread
From: Pradeep Kilambi @ 2026-05-31 14:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-aodhclient
Branch : epel10
Commit : be7ce2d201f72cb3bd2087f8df4d81e38e8a7db0
Author : Pradeep Kilambi <pkilambi@redhat.com>
Date : 2016-05-09T17:21:59-04:00
Stats : +202/-0 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-aodhclient/c/be7ce2d201f72cb3bd2087f8df4d81e38e8a7db0?branch=epel10
Log:
Initial import (#1304467)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b957997 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aodhclient-0.4.0.tar.gz
diff --git a/python-aodhclient.spec b/python-aodhclient.spec
new file mode 100644
index 0000000..e6bfafb
--- /dev/null
+++ b/python-aodhclient.spec
@@ -0,0 +1,200 @@
+%{!?python2_shortver: %global python2_shortver %(%{__python2} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
+%{!?python3_shortver: %global python3_shortver %(%{__python3} -c 'import sys; print(str(sys.version_info.major) + "." + str(sys.version_info.minor))')}
+
+%global pypi_name aodhclient
+
+%if 0%{?fedora} >= 24
+%global with_python3 1
+%endif
+
+Name: python-aodhclient
+Version: 0.4.0
+Release: 1%{?dist}
+Summary: Python API and CLI for OpenStack Aodh
+
+License: ASL 2.0
+URL: https://github.com/openstack/%{name}
+Source0: https://pypi.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+
+BuildArch: noarch
+
+
+%package -n python2-%{pypi_name}
+Summary: Python API and CLI for OpenStack Aodh
+%{?python_provide:%python_provide python2-%{library}}
+
+
+BuildRequires: python-setuptools
+BuildRequires: python2-devel
+BuildRequires: python-pbr
+
+Requires: python-babel >= 1.3
+Requires: python-cliff >= 1.14.0
+Requires: python-oslo-i18n >= 1.5.0
+Requires: python-oslo-serialization >= 1.4.0
+Requires: python-oslo-utils >= 2.0.0
+Requires: python-keystoneauth1 >= 1.0.0
+Requires: python-six >= 1.9.0
+Requires: python-futurist
+
+
+%description -n python2-%{pypi_name}
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool.
+
+
+%package -n python-%{pypi_name}-doc
+Summary: Documentation for OpenStack Aodh API Client
+Group: Documentation
+
+BuildRequires: python-sphinx
+BuildRequires: python-oslo-sphinx
+
+
+%description -n python-%{pypi_name}-doc
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool
+(aodh).
+
+This package contains auto-generated documentation.
+
+%package -n python2-%{pypi_name}-tests
+Summary: Python API and CLI for OpenStack Aodh Tests
+Requires: python-%{pypi_name} = %{version}-%{release}
+
+%description -n python2-%{pypi_name}-tests
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool.
+
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary: Python API and CLI for OpenStack Aodh
+
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr >= 0.6
+BuildRequires: python-tools
+
+Requires: python3-babel >= 1.3
+Requires: python3-cliff >= 1.14.0
+Requires: python3-oslo-i18n >= 1.5.0
+Requires: python3-oslo-serialization >= 1.4.0
+Requires: python3-oslo-utils >= 2.0.0
+Requires: python3-keystoneauth1 >= 1.0.0
+Requires: python3-six >= 1.9.0
+Requires: python3-futurist
+
+%description -n python3-%{pypi_name}
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool.
+
+%package -n python3-%{pypi_name}-tests
+Summary: Python API and CLI for OpenStack Aodh Tests
+Requires: python3-%{pypi_name} = %{version}-%{release}
+
+%description -n python3-%{pypi_name}-tests
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool.
+
+
+%endif
+
+%description
+This is a client library for Aodh built on the Aodh API. It
+provides a Python API (the aodhclient module) and a command-line tool.
+
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+2to3 --write --nobackups %{py3dir}
+%endif
+
+# Remove bundled egg-info
+rm -rf aodhclient.egg-info
+
+# Let RPM handle the requirements
+rm -f {,test-}requirements.txt
+
+%build
+%py2_build
+%if 0%{?with_python3}
+pushd %{py3dir}
+LANG=en_US.UTF-8 %{__python3} setup.py build
+popd
+%endif
+
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+LANG=en_US.UTF-8 %{__python3} setup.py install --skip-build --root %{buildroot}
+mv %{buildroot}%{_bindir}/aodh %{buildroot}%{_bindir}/python3-aodh
+popd
+%endif
+
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+# rename binaries, make compat symlinks
+install -m 755 -d %{buildroot}/%{_bindir}
+pushd %{buildroot}%{_bindir}
+#ln -s aodh aodh
+for i in aodh-{2,%{?python2_shortver}}; do
+ ln -s aodh $i
+done
+%if 0%{?with_python3}
+for i in aodh-{3,%{?python3_shortver}}; do
+ ln -s python3-aodh $i
+done
+%endif
+popd
+
+export PYTHONPATH="$( pwd ):$PYTHONPATH"
+sphinx-build -b html doc/source html
+
+
+%files -n python2-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{_bindir}/aodh*
+%{python2_sitelib}/aodhclient
+%{python2_sitelib}/*.egg-info
+%exclude %{python2_sitelib}/aodhclient/tests
+
+%files -n python2-%{pypi_name}-tests
+%license LICENSE
+%{python2_sitelib}/aodhclient/tests
+
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.rst
+%license LICENSE
+%{_bindir}/python3-aodh
+%{_bindir}/aodh*
+%{python3_sitelib}/aodhclient
+%{python3_sitelib}/*.egg-info
+%exclude %{python3_sitelib}/aodhclient/tests
+
+%files -n python3-%{pypi_name}-tests
+%license LICENSE
+%{python3_sitelib}/aodhclient/tests
+
+%endif
+
+%files -n python-%{pypi_name}-doc
+%doc html
+
+%changelog
+* Fri Apr 22 2016 Pradeep Kilambi <pkilambi@redhat.com> 0.4.0
+- Rebase to 0.4.0
+
+* Wed Feb 03 2016 Pradeep Kilambi <pkilambi@redhat.com> 0.1.0
+- Initial package based on python-aodhclient.
diff --git a/sources b/sources
index e69de29..92098c6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+db8f8eb96b20a5d929139bd76d94ab7f aodhclient-0.4.0.tar.gz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-31 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-31 14:38 [rpms/python-aodhclient] epel10: Initial import (#1304467) Pradeep Kilambi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox