## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global forgeurl https://github.com/cmacmackin/markdown-include Name: python-markdown-include Version: 0.6.0 %forgemeta Release: %autorelease Summary: Syntax for Python-Markdown to include other Markdown documents License: GPLv3 URL: %{forgeurl} # We use the GitHub tarball because the PyPI archive is missing LICENSE.txt. Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel %global common_description %{expand: This is an extension to Python-Markdown which provides an “include” function, similar to that found in LaTeX (and also the C pre-processor and Fortran). It was originally written for the FORD Fortran auto-documentation generator.} %description %{common_description} %package -n python3-markdown-include Summary: %{summary} %description -n python3-markdown-include %{common_description} %prep %autosetup -n markdown-include-%{version} # Remove shebang line in non-script source sed -r -i '1{/^#!/d}' markdown_include/include.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files markdown_include %check # There are no tests. %pyproject_check_import %files -n python3-markdown-include -f %{pyproject_files} %doc README.* %changelog * ven. oct. 29 2021 Benjamin A. Beasley 0.6.0-10 - Use the new %%pyproject_check_import macro * lun. sept. 13 2021 Benjamin A. Beasley 0.6.0-9 - Let pyproject-rpm-macros handle the license file * dim. sept. 12 2021 Benjamin A. Beasley 0.6.0-8 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * dim. sept. 12 2021 Benjamin A. Beasley 0.6.0-7 - Reduce macro indirection in the spec file * mar. juil. 27 2021 Benjamin A. Beasley 0.6.0-6 - Move %generate_buildrequires after %prep to make the spec file easier to follow * ven. juil. 23 2021 Fedora Release Engineering 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jul 08 2021 Benjamin A. Beasley - 0.6.0-3 - Add import “smoke tests” since there are no upstream tests * Fri Jun 04 2021 Python Maint - 0.6.0-2 - Rebuilt for Python 3.10 * Mon May 17 2021 Benjamin A. Beasley - 0.6.0-1 - Initial package