## 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 Name: python-sphinx-favicon Version: 1.0.1 Release: %autorelease Summary: Sphinx Extension adding support for custom favicons # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: MIT URL: https://github.com/tcmetzger/sphinx-favicon Source: %{url}/archive/v%{version}/sphinx-favicon-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: tree # Fill in the actual package description to submit package to Fedora %global _description %{expand: The Sphinx Favicon extension gives you more flexibility than the standard favicon.ico supported by Sphinx. It provides a quick and easy way to add the most important favicon formats for different browsers and devices.} %description %_description %package -n python3-sphinx-favicon Summary: %{summary} %description -n python3-sphinx-favicon %_description %pyproject_extras_subpkg -n python3-sphinx-favicon doc %prep %autosetup -p1 -n sphinx-favicon-%{version} # Coverage testing is not needed sed -i 's/, "pytest-cov"]/]/g' pyproject.toml # Relax version restriction sed -i 's/sphinx<6/sphinx/g' pyproject.toml %generate_buildrequires %pyproject_buildrequires -x dev,doc,test %build %pyproject_wheel # Build documentation pushd docs sphinx-build source epub -b epub tree epub popd %install %pyproject_install %pyproject_save_files -l sphinx_favicon %check %pyproject_check_import # do not run test that needs internet access %pytest -k "not test_list_of_three_icons_automated_values" %files -n python3-sphinx-favicon -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Wed Mar 26 2025 John Doe - 1.0.1-1 - Uncommitted changes ## END: Generated by rpmautospec