## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 commit 5acbe50717a4f53a411310f03eb5f6ad13b3d1ea Name: python-sphinxcontrib-globalsubs Version: 0.1.1 Release: %autorelease Summary: Global substitutions defined in conf.py License: BSD-2-Clause URL: https://github.com/missinglinkelectronics/sphinxcontrib-globalsubs %global forgeurl %{url} %forgemeta Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %global _description %{expand: This extension adds support for global substitutions to conf.py. One of the main use cases are central abbreviation lists, but any valid reST markup can be substituted. } %description %_description %package -n python3-sphinxcontrib-globalsubs Summary: %{summary} %description -n python3-sphinxcontrib-globalsubs %_description %prep %autosetup -p1 -n sphinxcontrib-globalsubs-%{commit} %build %py3_build %install %py3_install # %%check # upstream has no testsuite %files -n python3-sphinxcontrib-globalsubs %license LICENSE.txt %doc README.rst %{python3_sitelib}/sphinxcontrib/* %{python3_sitelib}/sphinxcontrib_globalsubs-%{version}-py%{python3_version}.egg-info/ %exclude %{python3_sitelib}/sphinxcontrib_globalsubs-*.pth %changelog ## START: Generated by rpmautospec * Tue Sep 10 2024 Zbigniew Jędrzejewski-Szmek - 0.1.1-1 - Initial packaging ## END: Generated by rpmautospec