## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 # Sphinx-generated HTML documentation is not suitable for packaging; see # https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion. # # We can generate PDF documentation as a substitute. %bcond doc_pdf 1 Name: python-flask-socketio Version: 5.4.1 Release: %autorelease Summary: Socket.IO integration for Flask applications # SPDX License: MIT URL: https://github.com/miguelgrinberg/Flask-SocketIO/ Source: %{url}/archive/v%{version}/Flask-SocketIO-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Documentation %if %{with doc_pdf} BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif %global common_description %{expand: Flask-SocketIO gives Flask applications access to low latency bi-directional communications between the clients and the server. The client-side application can use any of the SocketIO official clients libraries in Javascript, C++, Java and Swift, or any compatible client to establish a permanent connection to the server.} %description %{common_description} %package -n python3-flask-socketio Summary: %{summary} %description -n python3-flask-socketio %{common_description} %package doc Summary: Documentation for %{name} %description doc %{common_description} %prep %autosetup -n Flask-SocketIO-%{version} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -r -i \ -e 's/--cov[^[:blank:]]*//g' \ -e '/^[[:blank:]]*(pytest-cov)[[:blank:]]*$/d' \ tox.ini %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %if %{with doc_pdf} PYTHONPATH="${PWD}/src" %make_build -C docs latex \ SPHINXOPTS='-j%{?_smp_build_ncpus}' %make_build -C docs/_build/latex LATEXMKOPTS='-quiet' %endif %install %pyproject_install %pyproject_save_files -l flask_socketio %check # Because of its name, flask_socketio.test_client is mistaken for a test; then, # pytest fails because of an import path mismatch, since that module is # available both here in the build directory and in the buildroot. Simply # ignoring it in test collection is perfectly correct and solves the problem. %pytest --ignore-glob='*/test_client.py' %files -n python3-flask-socketio -f %{pyproject_files} %files doc %license LICENSE %doc CHANGES.md %doc README.md %doc SECURITY.md %if %{with doc_pdf} %doc docs/_build/latex/flask-socketio.pdf %endif %doc example/ %changelog ## START: Generated by rpmautospec * Tue Oct 01 2024 Benjamin A. Beasley - 5.4.1-1 - Update to 5.4.1 (close RHBZ#2315757) * Tue Sep 03 2024 Benjamin A. Beasley - 5.3.7-1 - Update to 5.3.7 (close RHBZ#2309321) * Fri Jul 19 2024 Fedora Release Engineering - 5.3.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 22 2024 Benjamin A. Beasley - 5.3.6-6 - Rebuilt for Python 3.13 (close RHBZ#2291705) * Fri Jan 26 2024 Fedora Release Engineering - 5.3.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 5.3.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Dec 17 2023 Benjamin A. Beasley - 5.3.6-2 - Assert that %%pyproject_files contains a license file * Tue Sep 05 2023 Benjamin A. Beasley - 5.3.6-1 - Update to 5.3.6 (close RHBZ#2237401) * Wed Jul 26 2023 Benjamin A. Beasley - 5.3.5-1 - Update to 5.3.5 (close RHBZ#2226876) * Fri Jul 21 2023 Fedora Release Engineering - 5.3.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Benjamin A. Beasley - 5.3.4-4 - Use trailing slashes for directories in files lists * Tue Jun 20 2023 Benjamin A. Beasley - 5.3.4-3 - Use new (rpm 4.17.1+) bcond style * Wed May 03 2023 Benjamin A. Beasley - 5.3.4-1 - Update to 5.3.4 (close RHBZ#2192855) * Sun Mar 19 2023 Benjamin A. Beasley - 5.3.3-1 - Update to 5.3.3 (close RHBZ#2179336) * Sat Mar 18 2023 Benjamin A. Beasley - 5.3.2-3 - Don’t assume %%_smp_mflags is -j%%_smp_build_ncpus * Fri Jan 20 2023 Fedora Release Engineering - 5.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Nov 20 2022 Benjamin A. Beasley - 5.3.2-1 - Update to 5.3.2 (close RHBZ#2144276) * Tue Sep 13 2022 Sandro Mani - 5.3.1-1 - Update to 5.3.1 * Wed Aug 24 2022 Benjamin A. Beasley - 5.3.0-1 - Update to 5.3.0 (close RHBZ#2120862) * Wed Aug 24 2022 Benjamin A. Beasley - 5.2.0-4 - Confirm License is SPDX MIT * Fri Jul 22 2022 Fedora Release Engineering - 5.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun May 22 2022 Benjamin A. Beasley - 5.2.0-2 - Patch out pytest-cov * Sun May 22 2022 Benjamin A. Beasley - 5.2.0-1 - Update to 5.2.0 (close RHBZ#2089038) * Sun Apr 24 2022 Benjamin A. Beasley - 5.1.2-1 - Update to 5.1.2 (close RHBZ#2078202) * Fri Jan 21 2022 Fedora Release Engineering - 5.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 26 2021 Benjamin A. Beasley - 5.1.1-8 - Reduce LaTeX PDF build verbosity * Thu Sep 30 2021 Benjamin A. Beasley - 5.1.1-7 - Fix Rawhide EVR lagging F35 (oops) * Thu Sep 30 2021 Benjamin A. Beasley - 5.1.1-6 - Fix PYTHONPATH when building docs * Thu Sep 30 2021 Benjamin A. Beasley - 5.1.1-5 - Generate PDF instead of HTML Sphinx documentation. * Mon Sep 13 2021 Benjamin A. Beasley - 5.1.1-4 - Let pyproject-rpm-macros handle the license file * Sun Sep 12 2021 Benjamin A. Beasley - 5.1.1-3 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Sun Sep 12 2021 Benjamin A. Beasley - 5.1.1-2 - Reduce macro indirection in the spec file * Mon Aug 02 2021 Benjamin A. Beasley - 5.1.1-1 - Update to 5.1.1 (fixes RHBZ#1988874) * Tue Jul 27 2021 Benjamin A. Beasley - 5.1.0-2 - Move %%generate_buildrequires after %%prep to make the spec file easier to follow * Wed Jul 21 2021 Benjamin A. Beasley - 5.1.0-1 - Update to 5.1.0 (closes RHBZ#1979423) * Mon Jul 05 2021 Benjamin A. Beasley - 4.3.2-1 - Update to 4.3.2 - Near-total spec file rewrite - Remove obsolete practices like python_provide macro and manual Requires - Add documentation subpackage - Use pytest as test runner - Fix spurious executable permissions (upstream PR#748) * Fri Jun 04 2021 Python Maint - 4.2.1-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 4.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 4.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 4.2.1-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 4.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 31 2019 Mukundan Ragavan - 4.2.1-2 - Use expand macro for description * Sun Dec 22 2019 Mukundan Ragavan - 4.2.1-1 - Initial package. ## END: Generated by rpmautospec