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