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