From deeb5a216dab587ca81d71d8c20b977577ed5af3 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 19:39:17 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-podman-api#254f43569693c0ad603e4b2ae2b441e0f21d96fa --- .gitignore | 2 + README.md | 3 ++ python-podman-api.spec | 107 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 113 insertions(+) create mode 100644 README.md create mode 100644 python-podman-api.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..f5470d7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/python-podman-api-d0a45fe.tar.gz +/python-podman-api-d4b8263.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..6864e7c --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-podman-api + +The python-podman-api package \ No newline at end of file diff --git a/python-podman-api.spec b/python-podman-api.spec new file mode 100644 index 0000000..ffd9a81 --- /dev/null +++ b/python-podman-api.spec @@ -0,0 +1,107 @@ +%global srcname podman +%global pkgsuf podman-api + +# https://github.com/containers/python-podman +%global git https://github.com/containers/python-%{srcname} +%global commit d4b8263bf08b72082cfb45e7367ebf4309facc54 +%global snapshot_date 20200614 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +# Several tests require internet conection or journald to be running +# Let's disable checking for now +%global with_tests 0 + + +# We name the package python-podman-api since there is an upstream intent to +# move to this namespace +Name: python-%{pkgsuf} +# See https://github.com/containers/python-podman/issues/27 +Version: 0.0.0 +Release: 0.8.%{snapshot_date}git%{shortcommit}%{?dist} +Summary: Python bindings for using Varlink access to Podman Service + +License: ASL 2.0 +URL: %{git} +Source0: %{git}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz + +BuildArch: noarch + +%description +%{summary} + +%package -n python3-%{pkgsuf} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +%if 0%{?with_tests} +BuildRequires: podman +BuildRequires: python3-psutil +BuildRequires: python3-dateutil +BuildRequires: python3-varlink +%endif +%{?python_provide:%python_provide python3-%{pkgsuf}} + +# See https://bugzilla.redhat.com/show_bug.cgi?id=1720577 +Obsoletes: python3-podman < 2:0.12.2-28 +Provides: python3-podman = 3:%{version}-%{release} + +%description -n python3-%{pkgsuf} +%{summary} + +%prep +%setup -q -n python-%{srcname}-%{commit} + +%if 0%{?with_tests} +# skip (am I root?) user check +sed -i 's/exit 2/echo/' test/test_runner.sh +%endif + +# Fix example shebangs +sed -i '1 s|/usr/bin/env python3|/usr/bin/python3|' examples/*.py + +%build +export PBR_VERSION="0.0.0" +%py3_build + +%install +export PBR_VERSION="0.0.0" +%py3_install + +%check +%if 0%{?with_tests} +/usr/bin/bash test/test_runner.sh +%endif + +%files -n python3-%{pkgsuf} +%license LICENSE +%doc README.md examples CHANGES.txt +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info/ + +%changelog +* Wed Jul 29 2020 Fedora Release Engineering - 0.0.0-0.8.20200614gitd4b8263 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 14 2020 Athos Ribeiro - 0.0.0-0.7.20200614gitd4b8263 +- Update revision +- BZ1775437 + +* Tue May 26 2020 Miro Hrončok - 0.0.0-0.6.20190613gitd0a45fe +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.0.0-0.5.20190613gitd0a45fe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.0.0-0.4.20190613gitd0a45fe +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.0.0-0.3.20190613gitd0a45fe +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.0.0-0.2.20190613gitd0a45fe +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 13 2019 Athos Ribeiro - 0.0.0-0.1.20190613gitd0a45fe +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..4ebad66 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-podman-api-d4b8263.tar.gz) = 44da187c0e0cf1f809a4c13d3886f513d5d2ade45cd93926ddfd91dd05d286815fbbfc436fa6c3806325970b6923b33b4a9e775e13e46cacc7c978c76e935a2c