Fix python subpackage naming

for the suse_py39 environment we need to use the python39 prefix, which
can be generated via renderspec. Avoid hardcoding a python3- prefix.

Change-Id: I78f92f7d4401b57ce3ee5fac6bf05ba699c6bbf3
This commit is contained in:
Dirk Müller 2023-02-17 01:40:04 +01:00
parent 1fd4b8ce44
commit a271709e61
No known key found for this signature in database
6 changed files with 18 additions and 18 deletions

View File

@ -30,7 +30,7 @@ BuildArch: noarch
%description
Generic Key Manager interface for OpenStack.
%package -n python3-castellan
%package -n {{ py2name(py_versions='py3') }}
Summary: Generic Key Manager interface for OpenStack
Requires: {{ py3('Babel') }}
Requires: {{ py3('python-barbicanclient') }}
@ -44,7 +44,7 @@ Requires: {{ py3('oslo.utils') }}
Requires: {{ py3('requests') }}
Requires: {{ py3('stevedore') }}
%description -n python3-castellan
%description -n {{ py2name(py_versions='py3') }}
Generic Key Manager interface for OpenStack.
This package includes the Python 3.x module.
@ -77,7 +77,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{openstack_stestr_run}
%files -n python3-castellan
%files -n {{ py2name(py_versions='py3') }}
%license LICENSE
%{python3_sitelib}/castellan
%{python3_sitelib}/*.egg-info

View File

@ -42,7 +42,7 @@ and authorization features to web services other than Keystone
The most prominent module is keystonemiddleware.auth_token. This package
does not expose any CLI or Python API features.
%package -n python3-keystonemiddleware
%package -n {{ py2name(py_versions='py3') }}
Summary: Middleware for OpenStack Identity
Requires: {{ py3('WebOb') }}
Requires: {{ py3('keystoneauth1') }}
@ -59,7 +59,7 @@ Requires: {{ py3('pycadf') }}
Requires: {{ py3('python-memcached') }}
Requires: {{ py3('requests') }}
%description -n python3-keystonemiddleware
%description -n {{ py2name(py_versions='py3') }}
This package contains middleware modules designed to provide authentication
and authorization features to web services other than Keystone
The most prominent module is keystonemiddleware.auth_token. This package
@ -97,7 +97,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
rm -v keystonemiddleware/tests/unit/audit/test_logging_notifier.py
%{openstack_stestr_run}
%files -n python3-keystonemiddleware
%files -n {{ py2name(py_versions='py3') }}
%license LICENSE
%doc ChangeLog README.rst
%{python3_sitelib}/{{ pypi_name }}

View File

@ -24,7 +24,7 @@ BuildArch: noarch
Simple Python library and CLI tool to provision bare metal machines using
OpenStack Ironic.
%package -n python3-metalsmith
%package -n {{ py2name(py_versions='py3') }}
Summary: Bare metal provisioner using Ironic
Requires: {{ py3('ansible') }}
Requires: {{ py3('PrettyTable') }}
@ -32,7 +32,7 @@ Requires: {{ py3('openstacksdk') }}
Requires: {{ py3('pbr') }}
Requires: {{ py3('requests') }}
%description -n python3-metalsmith
%description -n {{ py2name(py_versions='py3') }}
Simple Python library and CLI tool to provision bare metal machines using
OpenStack Ironic.
@ -72,7 +72,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{openstack_stestr_run}
%files -n python3-metalsmith
%files -n {{ py2name(py_versions='py3') }}
%license LICENSE
%{_bindir}/metalsmith
%{python3_sitelib}/metalsmith

View File

@ -27,14 +27,14 @@ BuildArch: noarch
%description
Sushy is a Python library to communicate with `Redfish` based systems.
%package -n python3-sushy
%package -n {{ py2name(py_versions='py3') }}
Summary: Python library to communicate with Redfish based systems
Requires: {{ py3('pbr') }}
Requires: {{ py3('python-dateutil') }}
Requires: {{ py3('requests') }}
Requires: {{ py3('stevedore') }}
%description -n python3-sushy
%description -n {{ py2name(py_versions='py3') }}
Sushy is a Python library to communicate with `Redfish` based systems.
%package -n {{ py2name() }}-doc
@ -63,7 +63,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{openstack_stestr_run}
%files -n python3-sushy
%files -n {{ py2name(py_versions='py3') }}
%license LICENSE
%doc AUTHORS ChangeLog README.rst
%{python3_sitelib}/sushy*

View File

@ -46,7 +46,7 @@ BuildArch: noarch
A library to do [jobs, tasks, flows] in a HA manner using
different backends to be used with OpenStack projects.
%package -n python3-taskflow
%package -n {{ py2name(py_versions='py3') }}
Summary: Taskflow structured state management library
Requires: {{ py3('automaton') }}
Requires: {{ py3('cachetools') }}
@ -62,7 +62,7 @@ Requires: {{ py3('six') }}
Requires: {{ py3('stevedore') }}
Requires: {{ py3('tenacity') }}
%description -n python3-taskflow
%description -n {{ py2name(py_versions='py3') }}
A library to do [jobs, tasks, flows] in a HA manner using
different backends to be used with OpenStack projects.
@ -97,7 +97,7 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
%check
%{openstack_stestr_run}
%files -n python3-taskflow
%files -n {{ py2name(py_versions='py3') }}
%doc README.rst
%license LICENSE
%{python3_sitelib}/{{ pypi_name }}

View File

@ -37,7 +37,7 @@ The Tooz project aims at centralizing the most common distributed primitives
like group membership protocol, lock service and leader election by providing
a coordination API helping developers to build distributed applications.
%package -n python3-tooz
%package -n {{ py2name(py_versions='py3') }}
Summary: Coordination library for distributed systems
Requires: {{ py3('fasteners') }}
Requires: {{ py3('futurist') }}
@ -48,7 +48,7 @@ Requires: {{ py3('stevedore') }}
Requires: {{ py3('tenacity') }}
Requires: {{ py3('voluptuous') }}
%description -n python3-tooz
%description -n {{ py2name(py_versions='py3') }}
The Tooz project aims at centralizing the most common distributed primitives
like group membership protocol, lock service and leader election by providing
a coordination API helping developers to build distributed applications.
@ -92,7 +92,7 @@ bash run-tests.sh
%install
%{py3_install}
%files -n python3-tooz
%files -n {{ py2name(py_versions='py3') }}
%license LICENSE
%{python3_sitelib}/{{ pypi_name }}
%{python3_sitelib}/{{ pypi_name }}-*.egg-info