## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 %bcond_without tests Name: python-daphne Version: 4.0.0 Release: %autorelease Summary: Django ASGI (HTTP/WebSocket) server License: BSD-3-Clause URL: https://github.com/django/daphne # PyPI tarball doesn't have tests Source: %{url}/archive/%{version}/daphne-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels. It supports automatic negotiation of protocols; there is no need for URL prefixing to determine WebSocket endpoints versus HTTP endpoints.} %description %{common_description} %package -n python3-daphne Summary: %{summary} %description -n python3-daphne %{common_description} %prep %autosetup -n daphne-%{version} sed -e '/setup_requires/d' -i setup.py %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x tests} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files daphne twisted %check %if %{with tests} %pytest %else %pyproject_check_import %endif %files -n python3-daphne -f %{pyproject_files} %doc README.rst CHANGELOG.txt %{_bindir}/daphne %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 4.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 4.0.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 4.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 05 2023 Carl George - 4.0.0-1 - Update to version 4.0.0 rhbz#2121380 - Switch to SPDX license identifier * Fri Jul 21 2023 Fedora Release Engineering - 3.0.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 3.0.2-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 29 2022 Python Maint - 3.0.2-2 - Rebuilt for Python 3.11 * Wed Apr 20 2022 Carl George - 3.0.2-1 - Latest upstream (resolves: rhbz#1947130) - Convert to pyproject macros * Fri Jan 21 2022 Fedora Release Engineering - 3.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 3.0.1-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.0.1-2 - Rebuilt for Python 3.10 * Fri Mar 19 2021 Charalampos Stratakis - 3.0.1-1 - Update to 3.0.1 (rhbz#1892469) * Wed Jan 27 2021 Fedora Release Engineering - 2.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 05 2020 Carl George - 2.5.0-1 - Initial package ## END: Generated by rpmautospec