## 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 %global desc %{expand: \ SimpleHTTPServer with support for Range requests.} Name: python-rangehttpserver Version: 1.4.0 Release: %autorelease Summary: SimpleHTTPServer with support for Range requests License: Apache-2.0 URL: https://github.com/danvk/RangeHTTPServer Source0: %{url}/archive/%{version}/RangeHTTPServer-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(requests) %description %{desc} %package -n python3-rangehttpserver Summary: %{summary} Requires: python3dist(requests) %description -n python3-rangehttpserver %{desc} %prep %autosetup -n RangeHTTPServer-%{version} find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} ';' chmod 0644 RangeHTTPServer/__init__.py RangeHTTPServer/__main__.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l RangeHTTPServer %check %{pytest} %files -n python3-rangehttpserver -f %{pyproject_files} %doc README %changelog ## START: Generated by rpmautospec * Wed Aug 28 2024 Benjamin A. Beasley - 1.4.0-1 - Update to 1.4.0 (close RHBZ#2308262) - Re-enable the server_test, which now works properly offline * Wed Aug 28 2024 Benjamin A. Beasley - 1.3.3-11 - Assert that the .dist-info directory contains a license file - Do not package a duplicate license file * Fri Jul 19 2024 Fedora Release Engineering - 1.3.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.3.3-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.3.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.3.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.3.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.3.3-5 - Rebuilt for Python 3.12 * Wed Mar 08 2023 Luis Bazan - 1.3.3-1 - New upstream version. * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.2.0-16 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.0-13 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.0-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.2.0-8 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.2.0-7 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 15 2019 Luis Bazan - 1.2.0-5 - Fix comment #15 in BZ 1665563. * Mon Jan 21 2019 Luis Bazan - 1.2.0-4 - Fix comment #6 in BZ 1665563. * Mon Jan 14 2019 Luis Bazan - 1.2.0-3 - Fix comment #1 in BZ 1665563. * Fri Jan 11 2019 Luis Bazan - 1.2.0-2 - Initial package. * Sat Oct 15 2016 Mathieu Bridon - 1.2.0-1 - Initial package for Fedora. ## END: Generated by rpmautospec