8ea9e99
# Created by pyp2rpm-3.3.2
8ea9e99
%global pypi_name priority
8ea9e99
8ea9e99
%global common_description %{expand:
8ea9e99
A HTTP/2 Priority Implementation Priority is a pure-Python
8ea9e99
implementation of the priority logic for HTTP/2, set out in RFC 7540 Section
8ea9e99
5.3 (Stream Priority)_. This logic allows for clients to express a preference
8ea9e99
for how the server allocates its (limited) resources to the many outstanding
8ea9e99
HTTP requests that may be running over a single HTTP/2 connection.}
8ea9e99
8ea9e99
Name:           python-%{pypi_name}
8ea9e99
Version:        1.3.0
eff9a37
Release:        6%{?dist}
8ea9e99
Summary:        A pure-Python implementation of the HTTP/2 priority tree
8ea9e99
8ea9e99
License:        MIT
8ea9e99
URL:            http://python-hyper.org/priority/
8ea9e99
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
5a6c782
5a6c782
# Increase deadline for test_period_of_repetition
5a6c782
Patch1:         deadline.patch
5a6c782
8ea9e99
BuildArch:      noarch
8ea9e99
 
8ea9e99
BuildRequires:  python2-devel
8ea9e99
BuildRequires:  python2dist(setuptools)
ff23e79
BuildRequires:  python2dist(pytest)
ff23e79
BuildRequires:  python2dist(hypothesis)
8ea9e99
 
8ea9e99
BuildRequires:  python3-devel
8ea9e99
BuildRequires:  python3dist(setuptools)
ff23e79
BuildRequires:  python3dist(pytest)
ff23e79
BuildRequires:  python3dist(hypothesis)
8ea9e99
8ea9e99
%{?python_enable_dependency_generator}
8ea9e99
8ea9e99
%description
8ea9e99
%{common_description}
8ea9e99
8ea9e99
8ea9e99
%package -n     python2-%{pypi_name}
8ea9e99
Summary:        %{summary}
8ea9e99
%{?python_provide:%python_provide python2-%{pypi_name}}
8ea9e99
8ea9e99
%description -n python2-%{pypi_name}
8ea9e99
%{common_description}
8ea9e99
8ea9e99
8ea9e99
%package -n     python3-%{pypi_name}
8ea9e99
Summary:        %{summary}
8ea9e99
%{?python_provide:%python_provide python3-%{pypi_name}}
8ea9e99
8ea9e99
%description -n python3-%{pypi_name}
8ea9e99
%{common_description}
8ea9e99
8ea9e99
8ea9e99
%prep
5a6c782
%autosetup -n %{pypi_name}-%{version} -p1
8ea9e99
# Remove bundled egg-info
8ea9e99
rm -rf %{pypi_name}.egg-info
8ea9e99
8ea9e99
8ea9e99
%build
8ea9e99
%py2_build
8ea9e99
%py3_build
8ea9e99
8ea9e99
8ea9e99
%install
8ea9e99
%py2_install
8ea9e99
%py3_install
8ea9e99
8ea9e99
8ea9e99
%check
ff23e79
PYTHONPATH=%{buildroot}%{python2_sitelib}:$PYTHONPATH %{__python2} -m pytest
ff23e79
PYTHONPATH=%{buildroot}%{python3_sitelib}:$PYTHONPATH %{__python3} -m pytest
8ea9e99
8ea9e99
8ea9e99
%files -n python2-%{pypi_name}
8ea9e99
%license LICENSE
8ea9e99
%doc README.rst
8ea9e99
%{python2_sitelib}/%{pypi_name}
8ea9e99
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
8ea9e99
8ea9e99
8ea9e99
%files -n python3-%{pypi_name}
8ea9e99
%license LICENSE
8ea9e99
%doc README.rst
8ea9e99
%{python3_sitelib}/%{pypi_name}
8ea9e99
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
8ea9e99
8ea9e99
8ea9e99
%changelog
eff9a37
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
eff9a37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
eff9a37
ff23e79
* Thu Mar 07 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.3.0-5
ff23e79
- Add actual tests
ff23e79
1664314
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
1664314
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1664314
1c44e59
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
1c44e59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1c44e59
d5550de
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-2
d5550de
- Rebuilt for Python 3.7
d5550de
8ea9e99
* Mon May 14 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.3.0-1
8ea9e99
- Initial package.