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