Blame SPECS/python-aiohttp-cors.spec

8fd60f
%global srcname aiohttp-cors
8fd60f
%global common_desc aiohttp_cors library implements Cross Origin Resource Sharing (CORS) support \
8fd60f
for aiohttp asyncio-powered asynchronous HTTP server.
8fd60f
8fd60f
Name:           python-%{srcname}
8fd60f
Version:        0.7.0
8fd60f
Release:        12%{?dist}
8fd60f
Summary:        CORS (Cross Origin Resource Sharing) support for aiohttp
8fd60f
8fd60f
License:        ASL 2.0
8fd60f
URL:            https://github.com/aio-libs/aiohttp-cors
8fd60f
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
8fd60f
8fd60f
# Fix test failure of test_add_options_route
8fd60f
Patch1:         %{url}/commit/eb4f5a4bb28f8260d4edc32969e838d9abace051.patch
8fd60f
8fd60f
# Fix test failure of test_static_resource
8fd60f
Patch2:         %{url}/pull/278/commits/e64b95848f3253157d831f4934841fceeaf9b2e3.patch
8fd60f
8fd60f
BuildArch:      noarch
8fd60f
8fd60f
%description
8fd60f
%{common_desc}
8fd60f
8fd60f
8fd60f
%package -n python3-%{srcname}
8fd60f
Summary:        %{summary}
8fd60f
%{?python_provide:%python_provide python3-%{srcname}}
8fd60f
BuildRequires: python3-devel
8fd60f
BuildRequires: python3-setuptools
8fd60f
8fd60f
# For tes suite
8fd60f
BuildRequires: python3-pytest
8fd60f
BuildRequires: python3-pytest-aiohttp
8fd60f
BuildRequires: python3-aiohttp >= 1.1
8fd60f
8fd60f
# Browser tests not possible yet
8fd60f
# BuildRequires: python3-selenium
8fd60f
#
8fd60f
# ifarch on noarch?
8fd60f
# BuildRequires: chromium
8fd60f
# BuildRequires: chromedriver
8fd60f
# Chrome failed to start: exited abnormally
8fd60f
#     (unknown error: DevToolsActivePort file doesn't exist)
8fd60f
#
8fd60f
# BuildRequires: firefox
8fd60f
# BuildRequires: geckodriver -- not available
8fd60f
8fd60f
%description -n python3-%{srcname}
8fd60f
%{common_desc}
8fd60f
8fd60f
8fd60f
%prep
8fd60f
%autosetup -n %{srcname}-%{version} -p1
8fd60f
8fd60f
# remove non-essential pytest plugins
8fd60f
sed -i '/pytest-cov/d' setup.py
8fd60f
sed -i '/pytest-pylint/d' setup.py
8fd60f
8fd60f
# Don't treat warnings as errors, that's what upstream testing is for
8fd60f
# In 0.7.0, nothing else is in this config
8fd60f
rm pytest.ini
8fd60f
8fd60f
# Don't add --cov options to pytest
8fd60f
# In 0.7.0, nothing else is in this config
8fd60f
rm setup.cfg
8fd60f
# tox.ini has this repeated, but we don't need it
8fd60f
rm tox.ini
8fd60f
8fd60f
%build
8fd60f
%py3_build
8fd60f
8fd60f
%install
8fd60f
%py3_install
8fd60f
8fd60f
%check
8fd60f
%{python3} -m pytest -v --ignore tests/integration/test_real_browser.py
8fd60f
8fd60f
%files -n python3-%{srcname}
8fd60f
%license LICENSE
8fd60f
%doc README.rst CHANGES.rst
8fd60f
%{python3_sitelib}/aiohttp_cors
8fd60f
%{python3_sitelib}/aiohttp_cors-*.egg-info/
8fd60f
8fd60f
%changelog
8fd60f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-12
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8fd60f
8fd60f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-11
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8fd60f
8fd60f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-10
8fd60f
- Rebuilt for Python 3.9
8fd60f
8fd60f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-9
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8fd60f
8fd60f
* Thu Nov 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-8
8fd60f
- Run the tests
8fd60f
8fd60f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-7
8fd60f
- Rebuilt for Python 3.8.0rc1 (#1748018)
8fd60f
8fd60f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-6
8fd60f
- Rebuilt for Python 3.8
8fd60f
8fd60f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8fd60f
8fd60f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8fd60f
8fd60f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8fd60f
8fd60f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-2
8fd60f
- Rebuilt for Python 3.7
8fd60f
8fd60f
* Sun Apr 22 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 0.7.0-1
8fd60f
- Update to 0.7.0 (rhbz #1554157)
8fd60f
8fd60f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8fd60f
8fd60f
* Sat Dec 30 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.6.0-1
8fd60f
- Update to 0.6.0 (rhbz #1528479)
8fd60f
8fd60f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
8fd60f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8fd60f
8fd60f
* Sat Apr 29 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.5.3-1
8fd60f
- Update to 0.5.3
8fd60f
8fd60f
* Fri Feb 10 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.5.0-1
8fd60f
- Initial spec.