Compare commits

..

No commits in common. "c8-stream-2.0" and "c9s" have entirely different histories.

6 changed files with 117 additions and 54 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/python-podman-d0a45fe.tar.gz /python-podman-api-d0a45fe.tar.gz
/python-podman-api-d4b8263.tar.gz

View File

@ -1 +1 @@
3833087a50480db1308cbb0f612802a5a974cdb0 SOURCES/python-podman-d0a45fe.tar.gz d84ad6a6405f519ae292cfe5b8b7275d8d99c9fb python-podman-api-d4b8263.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# python-podman-api
The python-podman-api package

View File

@ -1,52 +0,0 @@
%global modname podman
%global distname podman-api
%global eggname podman_api
# https://github.com/containers/python-podman
%global git0 https://github.com/containers/python-%{modname}
%global commit0 d0a45fea27f3c1b1c481b05e1531adc168f1881e
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: python-%{distname}
Version: 1.2.0
Release: 0.2.git%{shortcommit0}%{?dist}
Summary: Podman API
License: LGPLv2
URL: %{git0}
Source0: %{git0}/archive/%{commit0}/python-%{modname}-%{shortcommit0}.tar.gz
BuildArch: noarch
BuildRequires: python-rpm-macros
BuildRequires: python3-dateutil
BuildRequires: python3-setuptools
Requires: python3-psutil
Provides: python3-%{distname} = %{version}-%{release}
%description
%{summary}
%prep
%setup -q -n python-%{modname}-%{commit0}
%build
%py3_build
%install
%py3_install
%check
%files
%license LICENSE
%{python3_sitelib}/%{modname}/*
%{python3_sitelib}/%{modname}-*.egg-info/*
%changelog
* Thu Dec 12 2019 Jindrich Novy <jnovy@redhat.com> - 1.2.0-0.2.gitd0a45fe
- revert update to 1.6.0 due to new python3-pbr dependency which
is not in RHEL
- Related: RHELPLAN-25139
* Wed May 15 2019 Lokesh Mandvekar <lsm5@@redhat.com> - 1.2.0-0.1.gitd0a45fe
- Initial package

110
python-podman-api.spec Normal file
View File

@ -0,0 +1,110 @@
%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.9.%{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 Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0-0.9.20200614gitd4b8263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0-0.8.20200614gitd4b8263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Jun 14 2020 Athos Ribeiro <athoscr@fedoraproject.org> - 0.0.0-0.7.20200614gitd4b8263
- Update revision
- BZ1775437
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.0-0.6.20190613gitd0a45fe
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0-0.5.20190613gitd0a45fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.0-0.4.20190613gitd0a45fe
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.0-0.3.20190613gitd0a45fe
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.0-0.2.20190613gitd0a45fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jun 13 2019 Athos Ribeiro <athoscr@fedoraproject.org> - 0.0.0-0.1.20190613gitd0a45fe
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (python-podman-api-d4b8263.tar.gz) = 44da187c0e0cf1f809a4c13d3886f513d5d2ade45cd93926ddfd91dd05d286815fbbfc436fa6c3806325970b6923b33b4a9e775e13e46cacc7c978c76e935a2c