%global pypi_name ModulemdTranslationHelpers
Name: python-%{pypi_name}
Version: 0.5
Release: 3%{?dist}
Summary: Tools for working with translations of modulemd
License: MIT
URL: https://github.com/fedora-modularity/ModulemdTranslationHelpers
Source0: https://files.pythonhosted.org/packages/source/M/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: koji
BuildRequires: libmodulemd
%{?python_enable_dependency_generator}
%description
Provides a library and tools for dealing with translatable strings in modulemd
documents.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: koji
Requires: libmodulemd
Requires: python-gobject-base
Obsoletes: python2-mmdzanata < 0.7-3
%description -n python2-%{pypi_name}
Provides a library and tools for dealing with translatable strings in modulemd
documents.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%install
%py2_install
%files -n python2-%{pypi_name}
%doc README.md
%license LICENSE
%{_bindir}/ModulemdTranslationHelpers
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Oct 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.5-3
- Fix incorrect dependenct on pygobject3
* Wed Sep 26 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.5-2
- Fixes to the specfile
* Tue Sep 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.5-1
- Fixes from code review
* Tue Sep 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.3-1
- Initial package