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