## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## 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-engineio Version: 4.8.1 Release: %autorelease Summary: Python Engine.IO server and client # SPDX License: MIT URL: https://github.com/miguelgrinberg/python-engineio/ # The PyPY sdist now contains documentation and tests, but it still lacks # examples and the CHANGES.md file, so we continue to use a GitHub archive. Source: %{url}/archive/v%{version}/python-engineio-%{version}.tar.gz # Downstream-only: patch out test coverage analysis # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters Patch: 0001-Downstream-only-patch-out-test-coverage-analysis.patch BuildArch: noarch BuildRequires: python3-devel # Documentation %if %{with doc_pdf} BuildRequires: make BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif %global common_description %{expand: Engine.IO is a lightweight transport protocol that enables real-time bidirectional event-based communication between clients (typically, though not always, web browsers) and a server. The official implementations of the client and server components are written in JavaScript. This package provides Python implementations of both, each with standard and asyncio variants.} %description %{common_description} %package -n python3-engineio Summary: %{summary} %description -n python3-engineio %{common_description} %pyproject_extras_subpkg -n python3-engineio client asyncio_client %package doc Summary: Documentation for python-engineio %description doc %{common_description} %prep %autosetup -p1 # Remove pre-compiled/pre-minified browser build of # https://github.com/socketio/engine.io from the examples. This makes them less # useful, but satisfies # https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/ and # https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling. It # doesn’t seem worth it to package the JavaScript implementation of Engine.IO # just for the sake of these examples. # # Don’t ship package-lock.json files with the examples, to keep from having # automated bugs filed for irrelevant CVE’s in NPM packages that are mentioned # there. See RHBZ#2127005. find examples -type f \( -name 'engine.io.js' -o -name 'package-lock.json' \) \ -print -delete %generate_buildrequires %pyproject_buildrequires -x client,asyncio_client%{?doc_pdf:,docs} -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 engineio %check %pytest %files -n python3-engineio -f %{pyproject_files} %files doc %license LICENSE %doc CHANGES.md %doc README.md %doc SECURITY.md %if %{with doc_pdf} %doc docs/_build/latex/python-engineio.pdf %endif # Bundled pre-compiled engine.io.js has been removed: %doc examples/ %changelog * Mon Jan 01 2024 Benjamin A. Beasley - 4.8.1-1 - Update to 4.8.1 (close RHBZ#2256247) * Sun Dec 17 2023 Benjamin A. Beasley - 4.8.0-2 - Assert that %%pyproject_files contains a license file * Sat Oct 28 2023 Benjamin A. Beasley - 4.8.0-1 - Update to 4.8.0 (close RHBZ#2238547) * Tue Oct 17 2023 Benjamin A. Beasley - 4.7.1-1 - Update to 4.7.1 * Tue Sep 05 2023 Benjamin A. Beasley - 4.7.0-1 - Update to 4.7.0 (close RHBZ#2237330) * Wed Aug 23 2023 Benjamin A. Beasley - 4.6.1-1 - Update to 4.6.1 (close RHBZ#2233085) * Fri Jul 21 2023 Fedora Release Engineering - 4.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 06 2023 Benjamin A. Beasley - 4.5.1-1 - Update to 4.5.1 (close RHBZ#2220825) * Thu Jun 29 2023 Python Maint - 4.4.1-5 - Rebuilt for Python 3.12 * Tue Jun 20 2023 Benjamin A. Beasley - 4.4.1-4 - Use new (rpm 4.17.1+) bcond style * Thu Apr 20 2023 Benjamin A. Beasley - 4.4.1-1 - Update to 4.4.1 (close RHBZ#2188426) * Sun Mar 19 2023 Benjamin A. Beasley - 4.4.0-2 - Patch out test coverage analysis * Sun Mar 19 2023 Benjamin A. Beasley - 4.4.0-1 - Update to 4.4.0 (close RHBZ#2179209) * Sun Mar 19 2023 Benjamin A. Beasley - 4.3.4-6 - Don’t assume %%_smp_mflags is -j%%_smp_build_ncpus * Fri Jan 20 2023 Fedora Release Engineering - 4.3.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Oct 27 2022 Benjamin A. Beasley - 4.3.4-4 - Add missing patch file * Thu Oct 27 2022 Benjamin A. Beasley - 4.3.4-3 - Apply upstream patch for Python 3.11 test failures * Thu Sep 15 2022 Benjamin A. Beasley - 4.3.4-2 - Don’t ship package-lock.json files with the examples - This keeps from having automated bugs filed for irrelevant CVE’s in NPM packages that are mentioned there. See RHBZ#2127005. * Thu Aug 04 2022 Benjamin A. Beasley - 4.3.4-1 - Update to 4.3.4 (close RHBZ#2115112) * Thu Aug 04 2022 Benjamin A. Beasley - 4.3.3-4 - Confirm that License is SPDX MIT (no License field change) * Tue Jul 26 2022 Benjamin A. Beasley - 4.3.3-3 - Skip the tests that fail on Python 3.11 (close RHBZ#2094381) * Fri Jul 22 2022 Fedora Release Engineering - 4.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jul 07 2022 Benjamin A. Beasley - 4.3.3-1 - Update to 4.3.3 (close RHBZ#2103967) * Thu Jun 16 2022 Python Maint - 4.3.2-3 - Rebuilt for Python 3.11 * Wed Jun 08 2022 Benjamin A. Beasley - 4.3.2-2 - Partial fix for Python 3.11 FTBFS * Sun May 01 2022 Benjamin A. Beasley - 4.3.2-1 - Update to 4.3.2 (close RHBZ#2078473) * Sun May 01 2022 Benjamin A. Beasley - 4.3.1-3 - Drop eventlet workaround * Fri Jan 21 2022 Fedora Release Engineering - 4.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Benjamin A. Beasley - 4.3.1-1 - Update to 4.3.1 (close RHBZ#2039760) * Sat Nov 27 2021 Benjamin A. Beasley - 4.3.0-2 - Reduce LaTeX PDF build verbosity * Sat Nov 06 2021 Benjamin A. Beasley - 4.3.0-1 - Update to 4.3.0 (close RHBZ#2017728) * Sat Nov 06 2021 Benjamin A. Beasley - 4.2.1-6 - Work around RHBZ#2017933 * Fri Oct 01 2021 Benjamin A. Beasley - 4.2.1-5 - Generate PDF instead of HTML Sphinx documentation. * Mon Sep 13 2021 Benjamin A. Beasley - 4.2.1-4 - Let pyproject-rpm-macros handle the license file * Sun Sep 12 2021 Benjamin A. Beasley - 4.2.1-3 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Sun Sep 12 2021 Benjamin A. Beasley - 4.2.1-2 - Reduce spec file macro indirection * Mon Aug 02 2021 Benjamin A. Beasley - 4.2.1-1 - Update to 4.2.1 (fixes RHBZ#1989114) * Tue Jul 27 2021 Benjamin A. Beasley - 4.2.0-3 - Move %%generate_buildrequires after %%prep to make the spec file easier to follow * Wed Jul 21 2021 Benjamin A. Beasley - 4.2.0-2 - No longer skip any tests * Wed Jul 21 2021 Benjamin A. Beasley - 4.2.0-1 - Update to 4.2.0 (closes RHBZ#1978267) * Sun Jul 04 2021 Benjamin A. Beasley - 3.14.2-2 - Fix typos in script to remove executable permissions from files without shebangs * Sun Jul 04 2021 Benjamin A. Beasley - 3.13.1-1 - Update to 3.14.2 (last 3.x release) - Drop python-engineio-3.13.1-all-tasks.patch, now upstream - Fix spurious executable permissions (upstream PR#240) - Remove .buildinfo file from HTML documentation * Thu Jul 01 2021 Benjamin A. Beasley - 3.13.1-5 - Near-total spec file rewrite - Removed obsolete practices like python_provide macro and manual Requires - Added documentation and tests * Fri Jun 04 2021 Python Maint - 3.13.1-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.13.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Aug 09 2020 Mukundan Ragavan - 3.13.2-1 - Disable tests temporarily (fixes FTBFS) * Tue Aug 04 2020 Mukundan Ragavan - 3.13.1-1 - Update to 3.13.1 * Sat Aug 01 2020 Fedora Release Engineering - 3.11.1-6 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.11.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 3.11.1-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 3.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 30 2019 Mukundan Ragavan - 3.11.1-2 - Use expand macro for description * Sun Dec 22 2019 Mukundan Ragavan - 3.11.1-1 - Initial package.