## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name wsgi_intercept %global with_docs 1 %global common_desc \ It installs a WSGI application in place of a real URI for testing. \ Testing a WSGI application normally involves starting a server at \ a local host and port, then pointing your test code to that address. \ Instead,this library lets you intercept calls to any specific host/port \ combination and redirect them into a `WSGI application`_ importable by \ your test program. Name: python-%{pypi_name} Version: 1.13.1 Release: %autorelease Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing License: MIT URL: https://github.com/cdent/wsgi-intercept Source0: %pypi_source Patch0001: 0001-Update-urllib3.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description %{common_desc} %package -n python3-%{pypi_name} Summary: wsgi_intercept installs a WSGI application in place of a real URI for testing %description -n python3-%{pypi_name} %{common_desc} %package -n python-%{pypi_name}-doc Summary: Documentation for the wsgi-intercept module %description -n python-%{pypi_name}-doc Documentation for the wsgi-intercept module %prep %autosetup -n %{pypi_name}-%{version} -p1 sed -i 's/\.\[.*\]//' tox.ini %generate_buildrequires %if 0%{?with_docs} %pyproject_buildrequires -t -x testing -x docs %else %pyproject_buildrequires -t -x testing %endif %build %pyproject_wheel # generate html docs %if 0%{?with_docs} %tox -e docs # remove the sphinx-build leftovers rm -rf build/sphinx/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files wsgi_intercept %check export WSGI_INTERCEPT_SKIP_NETWORK=true %tox %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README %license LICENSE %exclude %{python3_sitelib}/%{pypi_name}/tests %if 0%{?with_docs} %files -n python-%{pypi_name}-doc %license LICENSE %doc build/sphinx %endif %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.12.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.12.0-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 1.12.0-2 - Rebuilt for Python 3.12 * Mon Jul 03 2023 Joel Capitao - 1.12.0-1 - Update to 1.12.0 (#2218071) - Switch to pyproject-rpm-macros * Wed Jun 14 2023 Python Maint - 1.11.0-2 - Rebuilt for Python 3.12 * Tue May 23 2023 Joel Capitao - 1.11.0-1 - Update to 1.11.0 (#2140362) * Fri Jan 20 2023 Fedora Release Engineering - 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Aug 19 2022 Joel Capitao - 1.10.0-1 - Update to 1.10.0 (#2040722) * Fri Jul 22 2022 Fedora Release Engineering - 1.9.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.9.2-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.9.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.9.2-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.9.2-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.9.2-2 - Rebuilt for Python 3.9 * Tue Feb 11 2020 Yatin Karel - 1.9.2-1 - Update to 1.9.2 (Resolves #1429737) * Thu Jan 30 2020 Fedora Release Engineering - 1.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.2.2-15 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.2.2-14 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 2019 Miro Hrončok - 1.2.2-12 - Subpackage python2-wsgi_intercept has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 1.2.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.2.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.2-9 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 1.2.2-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Igor Gnatenko - 1.2.2-7 - Escape macros in %%changelog * Thu Jul 27 2017 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.2.2-4 - Rebuild for Python 3.6 * Wed May 11 2016 Chandan Kumar - 1.2.2-3 - Added missing python3 macro in %%check * Wed May 11 2016 Chandan Kumar - 1.2.2-2 - Applied python3 Alan Pevec patch * Wed May 05 2016 Chandan Kumar - 1.2.2-1 - Bumped to version 1.2.2 * Mon Sep 21 2015 Chandan Kumar - 0.10.3-2 - Fixed import error - Removed test folder * Wed Sep 16 2015 Chandan Kumar - 0.10.3-1 - Initial package. ## END: Generated by rpmautospec