02a5bc
%global python_podman_version v4.2.1
02a5bc
#%%global python_podman_branch v4.2.0-rhel
02a5bc
%global python_podman_commit0 c52201038ef5bed260b81d8d84df8b95b26fc231
02a5bc
%global python_podman_shortcommit0 %(c=%{python_podman_commit0}; echo ${c:0:7})
02a5bc
421e8a
Epoch: 3
02a5bc
Name: python-podman
02a5bc
Version: 4.2.1
421e8a
Release: 1%{?dist}
421e8a
Summary: RESTful API for Podman
421e8a
License: ASL 2.0
421e8a
URL: https://github.com/containers/podman-py
02a5bc
%if 0%{?python_podman_branch:1}
02a5bc
Source0: https://github.com/containers/podman-py/archive/%{python_podman_commit0}.tar.gz
02a5bc
%else
421e8a
Source0: %{url}/releases/download/v%{version}/podman-%{version}.tar.gz
02a5bc
%endif
421e8a
BuildArch: noarch
421e8a
421e8a
%description
02a5bc
%{name} is a library of bindings to use the RESTful API for Podman.
421e8a
421e8a
%package -n python%{python3_pkgversion}-podman
421e8a
BuildRequires: pyproject-rpm-macros
421e8a
BuildRequires: python3-devel
421e8a
BuildRequires: git-core
b216f2
BuildRequires: python3-sphinx
421e8a
Provides: podman-py = %{version}-%{release}
421e8a
Summary: %{summary}
421e8a
%{?python_provide:%python_provide python%{python3_pkgversion}-podman}
421e8a
421e8a
%description -n python%{python3_pkgversion}-podman
421e8a
%{name} is a library of bindings to use the RESTful API for Podman.
421e8a
421e8a
%prep
02a5bc
%if 0%{?python_podman_branch:1}
02a5bc
%autosetup -Sgit_am -n podman-py-%{python_podman_commit0}
02a5bc
%else
421e8a
%autosetup -Sgit_am -n podman-%{version}
421e8a
%generate_buildrequires
421e8a
%pyproject_buildrequires %{?with_tests:-t}
02a5bc
%endif
421e8a
421e8a
%build
421e8a
export PBR_VERSION="0.0.0"
421e8a
%pyproject_wheel
421e8a
421e8a
%install
421e8a
export PBR_VERSION="0.0.0"
421e8a
%pyproject_install
421e8a
%pyproject_save_files podman
421e8a
421e8a
%check
421e8a
421e8a
%files -n python%{python3_pkgversion}-podman -f %{pyproject_files}
421e8a
%license LICENSE
421e8a
%doc README.md
421e8a
421e8a
%changelog
02a5bc
* Mon Oct 24 2022 Jindrich Novy <jnovy@redhat.com> - 3:4.2.0-1
02a5bc
- update to 4.2.1
02a5bc
- Resolves: #2136283
02a5bc
02a5bc
* Fri Oct 21 2022 Jindrich Novy <jnovy@redhat.com> - 3:4.2.0-3
02a5bc
- fix build
02a5bc
- Related: #2136283
02a5bc
02a5bc
* Thu Oct 20 2022 Jindrich Novy <jnovy@redhat.com> - 4.2.0-2
02a5bc
- fix "[RFE] python-podman: Podman support to perform custom actions on unhealthy containers"
02a5bc
- Resolves: #2136283
02a5bc
b216f2
* Thu Aug 11 2022 Jindrich Novy <jnovy@redhat.com> - 3:4.2.0-1
b216f2
- update to https://github.com/containers/podman-py/releases/tag/v4.2.0
b216f2
- Related: #2061316
b216f2
421e8a
* Mon Feb 28 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:4.0.0-1
421e8a
- bump to v4.0.0
421e8a
- Related: #2000051
421e8a
421e8a
* Fri Oct 01 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-3
421e8a
- perform only sanity/installability tests for now
421e8a
- Related: #2000051
421e8a
421e8a
* Wed Sep 29 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-2
421e8a
- rebuilt
421e8a
- Related: #2000051
421e8a
421e8a
* Mon Sep 27 2021 Jindrich Novy <jnovy@redhat.com> - 3:3.2.1-1
421e8a
- import to c9s
421e8a
- Related: #2000051