## 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 # Tests depend on specific versions of the underlying dependencies %bcond tests 0 Name: python-mkdocs-minify-plugin Version: 0.8.0 Release: %autorelease Summary: MkDocs plugin to minify HTML, JS or CSS files License: MIT URL: https://github.com/byrnereese/mkdocs-minify-plugin # PyPI tarball doesn't include tests Source: %{url}/archive/%{version}/mkdocs-minify-plugin-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3-pytest %endif %global _description %{expand: This package provides an MkDocs plugin to minify HTML, JS or CSS files prior to being written to disk. HTML minification is done using htmlmin2. JS minification is done using jsmin. CSS minification is done using csscompressor.} %description %_description %package -n python3-mkdocs-minify-plugin Summary: %{summary} %description -n python3-mkdocs-minify-plugin %_description %prep %autosetup -p1 -n mkdocs-minify-plugin-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l mkdocs_minify_plugin %check %if %{with tests} %pytest -v %else %pyproject_check_import %endif %files -n python3-mkdocs-minify-plugin -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Sat Dec 21 2024 Davide Cavalca - 0.8.0-1 - Initial import; Fixes: RHBZ#2332973 ## END: Generated by rpmautospec