## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 20; 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 requests_download Name: python-requests-download Version: 0.1.2 Release: %autorelease Summary: Download files using requests and save them to a target path License: MIT URL: https://www.github.com/takluyver/requests_download Source0: %{pypi_source} # Switch build-backend to flit_core , proposed upstream Patch: https://github.com/takluyver/requests_download/pull/3.patch#/switch-build-backend-to-flit_core.patch BuildArch: noarch BuildRequires: pyproject-rpm-macros %global _description %{expand: A convenient function to download to a file using requests. Basic usage: url = "https://github.com/takluyver/requests_download/archive/master.zip" download(url, "requests_download.zip") An optional headers= parameter is passed through to requests.} %description %_description %package -n python3-requests-download Summary: %{summary} %{?python_provide:%python_provide python3-requests-download} %description -n python3-requests-download %_description %prep %autosetup -n %{pypi_name}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %check # as of 0.1.2, upstream has no tests :( export PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -c 'import sys; sys.path.remove(""); import requests_download' %files -n python3-requests-download %license LICENSE %doc README.rst %pycached %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.1.2-19 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.1.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.1.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.1.2-13 - Rebuilt for Python 3.12 * Mon May 15 2023 Miro Hrončok - 0.1.2-12 - Use flit-core to build this package, instead of flit * Fri Jan 20 2023 Fedora Release Engineering - 0.1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.1.2-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1.2-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun May 24 2020 Miro Hrončok - 0.1.2-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 15 2019 Miro Hrončok - 0.1.2-1 - Initial package ## END: Generated by rpmautospec