%global srcname mailmerge
%{?python_enable_dependency_generator}
Name: python-%{srcname}
Version: 1.9
Release: 1%{?dist}
Summary: Simple command line mail merge tool
License: MIT
URL: https://github.com/awdeorio/mailmerge
Source0: %{pypi_source}
BuildArch: noarch
%description
%{summary}.
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
Provides: %{srcname} = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-%{srcname}
%{summary}.
%prep
%autosetup -n %{srcname}-%{version}
rm -vr *.egg-info
%build
%{py3_build}
%install
%{py3_install}
%files -n python3-%{srcname}
%doc README.md
%license LICENSE
%{_bindir}/mailmerge
%{python3_sitelib}/mailmerge/
%{python3_sitelib}/mailmerge-*.egg-info/
%changelog
* Thu May 16 2019 Brian Exelbierd <bexelbie@redhat.com> - 1.9-1
- Initial package