%global srcname msrest %global _description %{summary}. Name: python-%{srcname} Version: 0.6.21 Release: 5%{?dist} Summary: The runtime library "msrest" for AutoRest generated Python clients License: MIT URL: https://github.com/Azure/msrest-for-python Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz # Fix Python requirement versions Patch0: %{name}-0.6.17-requirements.patch BuildRequires: python3-devel BuildRequires: %{py3_dist aiodns} BuildRequires: %{py3_dist aiohttp} BuildRequires: %{py3_dist certifi} BuildRequires: %{py3_dist httpretty} BuildRequires: %{py3_dist isodate} BuildRequires: %{py3_dist pytest-asyncio} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist requests-oauthlib} BuildRequires: %{py3_dist requests} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist trio} # Required for documentation BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist recommonmark} BuildRequires: %{py3_dist sphinx-rtd-theme} BuildRequires: %{py3_dist sphinx} %if 0%{?fedora} <= 33 BuildRequires: fonts-srpm-macros %endif BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} # Extras requirements Requires: %{py3_dist aiodns} Requires: %{py3_dist aiohttp} Requires: %{py3_dist trio} %py_provides python3-%{srcname} %description -n python3-%{srcname} %{_description} %package doc Summary: Documentation for %{name} %if 0%{?fedora} <= 33 Requires: fontawesome-fonts Requires: google-roboto-slab-fonts Requires: lato-fonts %endif %description doc This package provides documentation for %{name}. %prep %autosetup -p1 -n %{srcname}-for-python-%{version} # Remove bundled egg-info rm -rf *.egg-info %build %py3_build pushd doc/ sphinx-build-%{python3_version} -b html -d _build/doctrees/ . _build/html/ rm _build/html/.buildinfo # Drop bundled web fonts in HTML documentation %if 0%{?fedora} <= 33 pushd _build/html/_static/fonts/ for f in fontawesome-webfont.*; do rm "$f" [[ "${f##*.}" = "ttf" ]] && ln -s "%{_fontbasedir}/fontawesome/$f" . done pushd Lato/ rm * for i in Bold BoldItalic Italic Regular; do ln -s "%{_fontbasedir}/lato/Lato-$i.ttf" "lato-${i,,}.ttf" done popd pushd RobotoSlab/ rm * for i in Bold Regular; do ln -s "%{_fontbasedir}/google-roboto-slab-fonts/RobotoSlab-$i.ttf" "roboto-slab-v7-${i,,}.ttf" done popd %endif popd %install %py3_install %check # Test requiring an Internet connection are disabled %pytest \ --deselect=tests/asynctests/test_pipeline.py::test_basic_aiohttp \ --deselect=tests/asynctests/test_pipeline.py::test_basic_async_requests \ --deselect=tests/asynctests/test_pipeline.py::test_conf_async_requests \ --deselect=tests/asynctests/test_pipeline.py::test_conf_async_trio_requests \ --deselect=tests/asynctests/test_universal_http.py::test_basic_aiohttp \ --deselect=tests/asynctests/test_universal_http.py::test_basic_async_requests \ --deselect=tests/asynctests/test_universal_http.py::test_conf_async_requests \ --deselect=tests/asynctests/test_universal_http.py::test_conf_async_trio_requests %files -n python3-%{srcname} %doc README.rst %license LICENSE.md %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-*.egg-info/ %files doc %doc doc/_build/html/ %license LICENSE.md %changelog * Fri Jan 21 2022 Fedora Release Engineering - 0.6.21-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jul 06 2021 Major Hayden - 0.6.21-3 - Fixing lato font requirement. * Fri Jun 04 2021 Python Maint - 0.6.21-2 - Rebuilt for Python 3.10 * Fri Feb 12 2021 Mohamed El Morabity - 0.6.21-1 - Update to 0.6.21 * Wed Jan 27 2021 Fedora Release Engineering - 0.6.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Sep 09 2020 Mohamed El Morabity - 0.6.19-1 - Update to 0.6.19 * Wed Jul 29 2020 Mohamed El Morabity - 0.6.18-1 - Update to 0.6.18 - Drop bundled fonts in documentation subpackage * Wed Jul 29 2020 Fedora Release Engineering - 0.6.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 26 2020 Mohamed El Morabity - 0.6.17-1 - Update to 0.6.17 * Tue May 26 2020 Miro Hrončok - 0.6.13-2 - Rebuilt for Python 3.9 * Fri Apr 17 2020 Mohamed El Morabity - 0.6.13-1 - Update to 0.6.13 * Fri Jan 31 2020 Mohamed El Morabity - 0.6.11-1 - Update to 0.6.11 * Thu Jan 30 2020 Fedora Release Engineering - 0.6.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Sep 06 2019 Mohamed El Morabity - 0.6.10-1 - Update to 0.6.10 - Spec cleanup - Fix tests - Add explicit dependency on trio (for async support) * Mon Aug 19 2019 Miro Hrončok - 0.6.9-2 - Rebuilt for Python 3.8 * Fri Aug 09 2019 Mohamed El Morabity - 0.6.9-1 - Update to 0.6.9 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Apr 08 2019 Mohamed El Morabity - 0.6.6-1 - Update to 0.6.6 - Spec cleanup * Mon Feb 04 2019 Mohamed El Morabity - 0.6.4-1 - Update to 0.6.4 * Sat Feb 02 2019 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 21 2018 Mohamed El Morabity - 0.6.2-1 - Update to 0.6.2 * Tue Nov 13 2018 Mohamed El Morabity - 0.6.1-6 - Fix typo in Requires for python-isodate * Sun Nov 11 2018 Mohamed El Morabity - 0.6.1-5 - Fix Requires for Fedora <= 27 * Sun Nov 11 2018 Mohamed El Morabity - 0.6.1-4 - Fix comments * Sat Nov 10 2018 Mohamed El Morabity - 0.6.1-3 - Build documentation - Fix BuildRequires for Fedora <= 27 * Sat Nov 10 2018 Mohamed El Morabity - 0.6.1-2 - Enable dependency on python3-trio for Fedora >= 29 only * Sat Nov 10 2018 Mohamed El Morabity - 0.6.1-1 - Update to 0.6.1