public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Alfredo Moralejo <amoralej@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-aodhclient] epel10.2: Update to stein release
Date: Sun, 31 May 2026 14:41:18 GMT	[thread overview]
Message-ID: <178023847835.1.13489421501693695852.rpms-python-aodhclient-c01d8580c7b5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-aodhclient
Branch : epel10.2
Commit : c01d8580c7b5aadf007e3af09a053b91bf1a28e8
Author : Alfredo Moralejo <amoralej@redhat.com>
Date   : 2019-05-10T22:22:35+02:00
Stats  : +87/-79 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-aodhclient/c/c01d8580c7b5aadf007e3af09a053b91bf1a28e8?branch=epel10.2

Log:
Update to stein release

---
diff --git a/.gitignore b/.gitignore
index c62c870..0b96519 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /aodhclient-0.4.0.tar.gz
 /aodhclient-0.5.0.tar.gz
 /aodhclient-0.7.0.tar.gz
+/aodhclient-1.2.0.tar.gz

diff --git a/python-aodhclient.spec b/python-aodhclient.spec
index faf848b..b2c95d4 100644
--- a/python-aodhclient.spec
+++ b/python-aodhclient.spec
@@ -1,126 +1,133 @@
+# Macros for py2/py3 compatibility
+%if 0%{?fedora} || 0%{?rhel} > 7
+%global pyver %{python3_pkgversion}
+%else
+%global pyver 2
+%endif
+%global pyver_bin python%{pyver}
+%global pyver_sitelib %python%{pyver}_sitelib
+%global pyver_install %py%{pyver}_install
+%global pyver_build %py%{pyver}_build
+# End of macros for py2/py3 compatibility
 %global pypi_name aodhclient
 
-
 %{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+%global with_doc 1
+
+%global common_desc \
+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.
 
 Name:             python-aodhclient
-Version:          0.7.0
-Release:          9%{?dist}
+Version:          1.2.0
+Release:          1%{?dist}
 Summary:          Python API and CLI for OpenStack Aodh
 
 License:          ASL 2.0
 URL:              https://launchpad.net/python-aodhclient
-Source0:          https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+Source0:          https://tarballs.openstack.org/%{name}/%{pypi_name}-%{upstream_version}.tar.gz
 
 BuildArch:        noarch
 
 %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.
+%{common_desc}
 
+%package -n python%{pyver}-%{pypi_name}
+Summary:          Python API and CLI for OpenStack Aodh
+%{?python_provide:%python_provide python%{pyver}-%{pypi_name}}
+
+BuildRequires:    python%{pyver}-setuptools
+BuildRequires:    python%{pyver}-devel
+BuildRequires:    python%{pyver}-pbr
+BuildRequires:    git
+
+Requires:         python%{pyver}-pbr
+Requires:         python%{pyver}-cliff >= 1.14.0
+Requires:         python%{pyver}-oslo-i18n >= 1.5.0
+Requires:         python%{pyver}-oslo-serialization >= 1.4.0
+Requires:         python%{pyver}-oslo-utils >= 2.0.0
+Requires:         python%{pyver}-keystoneauth1 >= 1.0.0
+Requires:         python%{pyver}-six >= 1.9.0
+Requires:         python%{pyver}-osc-lib >= 1.0.1
+# Handle python2 exception
+%if %{pyver} == 2
+Requires:         pyparsing
+%else
+Requires:         python%{pyver}-pyparsing
+%endif
+
+%description -n python%{pyver}-%{pypi_name}
+%{common_desc}
+
+%if 0%{?with_doc}
 %package  doc
 Summary:          Documentation for OpenStack Aodh API Client
 
-BuildRequires:    python3-sphinx
-BuildRequires:    python3-oslo-sphinx
+BuildRequires:    python%{pyver}-sphinx
+BuildRequires:    python%{pyver}-openstackdocstheme
+BuildRequires:    python%{pyver}-keystoneauth1
+BuildRequires:    python%{pyver}-oslo-utils
+BuildRequires:    python%{pyver}-oslo-serialization
+BuildRequires:    python%{pyver}-cliff
 
 
 %description 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
+%{common_desc}
 (aodh).
 
 This package contains auto-generated documentation.
+%endif
 
-%package -n python3-%{pypi_name}
-Summary:          Python API and CLI for OpenStack Aodh
-
-%{?python_provide:%python_provide python3-%{pypi_name}}
-
-BuildRequires:    python3-setuptools
-BuildRequires:    python3-devel
-BuildRequires:    python3-pbr
-
-Requires:         python3-pbr
-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-debtcollector
-
-%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
+%package -n python%{pyver}-%{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.
+Requires:         python%{pyver}-%{pypi_name} = %{version}-%{release}
 
+%description -n python%{pyver}-%{pypi_name}-tests
+%{common_desc}
 
 %prep
-%setup -q -n %{pypi_name}-%{upstream_version}
+%autosetup -n %{pypi_name}-%{upstream_version} -S git
 
 # Let RPM handle the requirements
 rm -f {,test-}requirements.txt
 
 
 %build
-%py3_build
+%{pyver_build}
 
 %install
-%py3_install
+%{pyver_install}
 
-export PYTHONPATH="$( pwd ):$PYTHONPATH"
-sphinx-build-3 -b html doc/source html
+# Create a versioned binary for backwards compatibility until everything is pure py3
+ln -s aodh %{buildroot}%{_bindir}/aodh-%{pyver}
 
-%files -n python3-%{pypi_name}
-%license LICENSE
+%if 0%{?with_doc}
+export PYTHONPATH=.
+sphinx-build-%{pyver} -b html doc/source doc/build/html
+# remove the sphinx-build-%{pyver} leftovers
+rm -rf doc/build/html/.{doctrees,buildinfo}
+%endif
+
+%files -n python%{pyver}-%{pypi_name}
 %doc README.rst
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/*.egg-info
+%license LICENSE
+%{pyver_sitelib}/aodhclient
+%{pyver_sitelib}/*.egg-info
 %{_bindir}/aodh
-%exclude %{python3_sitelib}/aodhclient/tests
+%{_bindir}/aodh-%{pyver}
+%exclude %{pyver_sitelib}/aodhclient/tests
 
-%files -n python3-%{pypi_name}-tests
+%files -n python%{pyver}-%{pypi_name}-tests
 %license LICENSE
-%{python3_sitelib}/aodhclient/tests
+%{pyver_sitelib}/aodhclient/tests
 
+%if 0%{?with_doc}
 %files doc
-%doc html
+%doc doc/build/html
 %license LICENSE
+%endif
 
 %changelog
-* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-9
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Sun Oct 28 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-8
-- Subpackages python2-aodhclient, python2-aodhclient-tests have been removed
-  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-7
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-6
-- Rebuilt for Python 3.7
-
-* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-2
-- Rebuild for Python 3.6
-
-* Mon Sep 12 2016 Haikel Guemar <hguemar@fedoraproject.org> 0.7.0-1
-- Update to 0.7.0
+* Mon Mar 11 2019 RDO <dev@lists.rdoproject.org> 1.2.0-1
+- Update to 1.2.0
 

diff --git a/sources b/sources
index 31904a3..a7ca482 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-247a399d94d81214da08c11240b72dc9  aodhclient-0.7.0.tar.gz
+SHA512 (aodhclient-1.2.0.tar.gz) = 2422847c83c2a331ff4b6778f8819b6cb67e840626854961e865c3fd8fa00ce34ca6cbfd8eed17a0779daff784cae2c9084b163aaeeee8df1563a797bd2832ca

                 reply	other threads:[~2026-05-31 14:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178023847835.1.13489421501693695852.rpms-python-aodhclient-c01d8580c7b5@fedoraproject.org \
    --to=amoralej@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox