Compare commits

...

No commits in common. "c9-beta" and "c8-beta-stream-rhel8" have entirely different histories.

3 changed files with 60 additions and 142 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/v5.7.0.tar.gz SOURCES/v4.9.0.tar.gz

View File

@ -1 +1 @@
594083effe4389369ddc47cd84bfbf5d0290f66f SOURCES/v5.7.0.tar.gz fa3ef3d53d68ad9eafa48607fa3e1c5fefe6af16 SOURCES/v4.9.0.tar.gz

View File

@ -1,191 +1,109 @@
# RHEL 8 envs has slightly different python deps Name: python-podman
# and also doesn't support dynamic (build)requires. Version: 4.9.0
%if %{defined rhel} && 0%{?rhel} == 8
%define rhel8_py 1
%endif
%global pypi_name podman
%global desc %{pypi_name} is a library of bindings to use the RESTful API for Podman.
%global pypi_dist 4
Name: python-%{pypi_name}
%if %{defined copr_username}
Epoch: 102
%else
Epoch: 3
%endif
# DO NOT TOUCH the Version string!
# The TRUE source of this specfile is:
# https://github.com/containers/podman/blob/main/rpm/python-podman.spec
# If that's what you're reading, Version must be 0, and will be updated by Packit for
# copr and koji builds.
# If you're reading this on dist-git, the version is automatically filled in by Packit.
Version: 5.7.0
Release: 1%{?dist} Release: 1%{?dist}
License: Apache-2.0
Summary: RESTful API for Podman Summary: RESTful API for Podman
URL: https://github.com/containers/%{pypi_name}-py License: ASL 2.0
# Tarball fetched from upstream URL: https://github.com/containers/podman-py
Source0: %{url}/archive/v%{version}.tar.gz Source0: https://github.com/containers/podman-py/archive/refs/tags/v%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
%desc %{name} is a library of bindings to use the RESTful API for Podman.
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-podman
BuildRequires: git-core
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
%if %{defined rhel8_py}
BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-pytoml BuildRequires: python%{python3_pkgversion}-pytoml
BuildRequires: python%{python3_pkgversion}-pyxdg
BuildRequires: python%{python3_pkgversion}-requests BuildRequires: python%{python3_pkgversion}-requests
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: git-core
BuildRequires: python%{python3_pkgversion}-sphinx
Requires: python%{python3_pkgversion}-pytoml Requires: python%{python3_pkgversion}-pytoml
Requires: python%{python3_pkgversion}-pyxdg
Requires: python%{python3_pkgversion}-requests Requires: python%{python3_pkgversion}-requests
%else Provides: podman-py = %{version}-%{release}
BuildRequires: pyproject-rpm-macros
%endif
Provides: %{pypi_name}-py = %{epoch}:%{version}-%{release}
Provides: python%{python3_pkgversion}dist(%{pypi_name}) = %{pypi_dist}
Provides: python%{python3_version}dist(%{pypi_name}) = %{pypi_dist}
Obsoletes: python%{python3_pkgversion}-%{pypi_name}-api <= 0.0.0-1
Provides: python%{python3_pkgversion}-%{pypi_name}-api = %{epoch}:%{version}-%{release}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python%{python3_pkgversion}-podman}
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python%{python3_pkgversion}-podman
%desc %{name} is a library of bindings to use the RESTful API for Podman.
%prep %prep
%autosetup -Sgit -n %{pypi_name}-py-%{version} %autosetup -Sgit_am -n podman-py-%{version}
%if !%{defined rhel8_py}
%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-t}
%endif
%build %build
export PBR_VERSION="0.0.0"
%if %{defined rhel8_py}
%py3_build %py3_build
%else
%pyproject_wheel
%endif
%install %install
export PBR_VERSION="0.0.0"
%if %{defined rhel8_py}
%py3_install %py3_install
%else
%pyproject_install
%pyproject_save_files %{pypi_name}
%endif
%check %files -n python3-podman
%if %{defined rhel8_py}
%files -n python%{python3_pkgversion}-%{pypi_name}
%dir %{python3_sitelib}/%{pypi_name}-*-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}-*-py%{python3_version}.egg-info/*
%dir %{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}/*
%else
%pyproject_extras_subpkg -n python%{python3_pkgversion}-%{pypi_name} progress_bar
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}
%endif
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{python3_sitelib}/podman/*
%{python3_sitelib}/podman-*/*
%changelog %changelog
* Wed Feb 04 2026 Jindrich Novy <jnovy@redhat.com> - 3:5.7.0-1 * Tue Jan 23 2024 Jindrich Novy <jnovy@redhat.com> - 4.9.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.7.0
- Related: RHEL-111919
* Tue Sep 16 2025 Jindrich Novy <jnovy@redhat.com> - 3:5.6.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.6.0
- Related: RHEL-111919
* Fri Jun 20 2025 Jindrich Novy <jnovy@redhat.com> - 3:5.5.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.5.0
- Related: RHEL-80816
* Mon Mar 03 2025 Jindrich Novy <jnovy@redhat.com> - 3:5.4.0.1-1
- update to https://github.com/containers/podman-py/releases/tag/v5.4.0.1
- Resolves: RHEL-81952
* Wed Nov 27 2024 Jindrich Novy <jnovy@redhat.com> - 3:5.3.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.3.0
- Resolves: RHEL-69140
* Mon Aug 05 2024 Jindrich Novy <jnovy@redhat.com> - 3:5.2.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.2.0
- Related: RHEL-27608
* Mon Mar 25 2024 Jindrich Novy <jnovy@redhat.com> - 3:5.0.0-1
- update to https://github.com/containers/podman-py/releases/tag/v5.0.0
- Resolves: RHEL-30257
* Tue Jan 23 2024 Jindrich Novy <jnovy@redhat.com> - 3:4.9.0-1
- update to https://github.com/containers/podman-py/releases/tag/v4.9.0 - update to https://github.com/containers/podman-py/releases/tag/v4.9.0
- Related: RHEL-2112 - Related: Jira:RHEL-2110
* Fri Jan 05 2024 Jindrich Novy <jnovy@redhat.com> - 3:4.8.2-1 * Fri Jan 05 2024 Jindrich Novy <jnovy@redhat.com> - 4.8.2-1
- update to https://github.com/containers/podman-py/releases/tag/v4.8.2 - update to https://github.com/containers/podman-py/releases/tag/v4.8.2
- Related: RHEL-2112 - Related: Jira:RHEL-2110
* Tue Jan 02 2024 Jindrich Novy <jnovy@redhat.com> - 3:4.8.1-1 * Thu Dec 07 2023 Lokesh Mandvekar <lsm5@redhat.com> - 4.8.0.post1-1
- update to https://github.com/containers/podman-py/releases/tag/v4.8.1
- Related: RHEL-2112
* Wed Dec 06 2023 Lokesh Mandvekar <lsm5@redhat.com> - 3:4.8.0.post1-1
- update to https://github.com/containers/podman-py/releases/tag/v4.8.0.post1 - update to https://github.com/containers/podman-py/releases/tag/v4.8.0.post1
- Related: Jira:RHEL-2112 - Related: Jira:RHEL-2110
* Fri Sep 29 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.7.0-1 * Fri Sep 29 2023 Jindrich Novy <jnovy@redhat.com> - 4.7.0-1
- update to https://github.com/containers/podman-py/releases/tag/v4.7.0 - update to https://github.com/containers/podman-py/releases/tag/v4.7.0
- Related: Jira:RHEL-2112 - Related: Jira:RHEL-2110
* Thu Jul 27 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.6.0-1 * Thu Jul 27 2023 Jindrich Novy <jnovy@redhat.com> - 4.6.0-1
- update to https://github.com/containers/podman-py/releases/tag/v4.6.0 - update to https://github.com/containers/podman-py/releases/tag/v4.6.0
- Related: #2176063 - Related: #2176055
* Fri Jun 02 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.5.1-1 * Tue Jun 06 2023 Jindrich Novy <jnovy@redhat.com> - 4.5.1-1
- update to https://github.com/containers/podman-py/releases/tag/v4.5.1 - update to https://github.com/containers/podman-py/releases/tag/v4.5.1
- Related: #2176063 - Related: #2176055
* Tue May 02 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.5.0-1 * Thu May 11 2023 Jindrich Novy <jnovy@redhat.com> - 4.5.0-1
- update to https://github.com/containers/podman-py/releases/tag/v4.5.0 - update to https://github.com/containers/podman-py/releases/tag/v4.5.0
- Related: #2176063 - Related: #2176055
* Thu Feb 23 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.4.1-1 * Thu Mar 09 2023 Jindrich Novy <jnovy@redhat.com> - 4.4.1-1
- update to https://github.com/containers/podman-py/releases/tag/v4.4.1 - update to https://github.com/containers/podman-py/releases/tag/v4.4.1
- Related: #2124478 - Related: #2176055
* Wed Feb 15 2023 Jindrich Novy <jnovy@redhat.com> - 3:4.4.0-1 * Mon Nov 07 2022 Jindrich Novy <jnovy@redhat.com> - 4.3.0-2
- update to 4.4.0 - upload new source tarball
- (and revert the unneeded upstream python-tomli dependency) - Related: #2123641
- Related: #2124478
* Mon Oct 24 2022 Jindrich Novy <jnovy@redhat.com> - 3:4.3.0-1 * Fri Oct 21 2022 Jindrich Novy <jnovy@redhat.com> - 4.3.0-1
- update to 4.3.0 - update to https://github.com/containers/podman-py/releases/tag/v4.3.0
- Related: #2124478 - Related: #2123641
* Thu Aug 11 2022 Jindrich Novy <jnovy@redhat.com> - 3:4.2.0-1 * Thu Aug 11 2022 Jindrich Novy <jnovy@redhat.com> - 4.2.0-1
- update to https://github.com/containers/podman-py/releases/tag/v4.2.0 - update to https://github.com/containers/podman-py/releases/tag/v4.2.0
- Related: #2061316 - Related: #2061390
* Mon Feb 28 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:4.0.0-1 * Mon Feb 28 2022 Lokesh Mandvekar <lsm5@redhat.com> - 4.0.0-1
- bump to v4.0.0 - bump to v4.0.0
- Related: #2000051 - Related: #2001445
* Fri Oct 01 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-3 * Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3.2.1-4
- perform only sanity/installability tests for now - do not depend on pyproject-rpm-macros - not present in RHEL8
- Related: #2000051 - Related: #2001445
* Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-2 * Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-2
- rebuilt - depend on python3-requests
- Related: #2000051 - Resolves: #1978415 - initial upload to rhel
* Wed Jul 28 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.2.0-1
- Bump to v3.2.0
* Tue May 04 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 3.1.2.4-1
- Initial package
* Mon Sep 27 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-1
- import to c9s
- Related: #2000051