342e4c
%global modname uritemplate
342e4c
%global altname uritemplate.py
342e4c
342e4c
%global _docdir_fmt %{name}
342e4c
342e4c
Name:           python-%{modname}
342e4c
Version:        3.0.0
342e4c
Release:        3%{?dist}
342e4c
Summary:        Simple python library to deal with URI Templates (RFC 6570)
342e4c
342e4c
License:        BSD
342e4c
URL:            https://%{modname}.readthedocs.io
342e4c
Source0:        https://github.com/sigmavirus24/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
342e4c
342e4c
BuildArch:      noarch
342e4c
342e4c
%description
342e4c
%{summary}.
342e4c
342e4c
%package -n python3-%{modname}
342e4c
Summary:        %{summary}
342e4c
Conflicts:      python3-uri-templates
342e4c
%{?python_provide:%python_provide python3-%{modname}}
342e4c
%{?python_provide:%python_provide python3-%{altname}}
342e4c
BuildRequires:  python3-devel
342e4c
BuildRequires:  python3-setuptools
342e4c
BuildRequires:  python3-pytest
342e4c
342e4c
%description -n python3-%{modname}
342e4c
%{summary}.
342e4c
342e4c
Python 3 version.
342e4c
342e4c
%prep
342e4c
%autosetup -n uritemplate-%{version}
342e4c
342e4c
%build
342e4c
%py3_build
342e4c
342e4c
%install
342e4c
%py3_install
342e4c
342e4c
%check
342e4c
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
342e4c
342e4c
%files -n python3-%{modname}
342e4c
%license LICENSE
342e4c
%doc HISTORY.rst README.rst
342e4c
%{python3_sitelib}/%{modname}-*.egg-info
342e4c
%{python3_sitelib}/%{modname}/
342e4c
342e4c
%changelog
342e4c
* Wed Jun 13 2018 Petr Viktorin <pviktori@redhat.com> - 3.0.0-3
342e4c
- Remove the Python2 subpackage
342e4c
342e4c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
342e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
342e4c
342e4c
* Mon Jul 31 2017 Nick Bebout <nb@fedoraproject.org> - 3.0.0-1
342e4c
- Upgrade to 3.0.0
342e4c
342e4c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
342e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
342e4c
342e4c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
342e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
342e4c
342e4c
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.3.0-3
342e4c
- Rebuild for Python 3.6
342e4c
342e4c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
342e4c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
342e4c
342e4c
* Wed Jun 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-1
342e4c
- Initial package