Name: python-pdm-build-locked Version: 0.3.5 Release: %autorelease Summary: pdm plugin to add locked packages as additional optional dependency groups to the distribution metadata License: MIT URL: https://pdm-build-locked.readthedocs.io/ VCS: git:https://github.com/pdm-project/pdm-build-locked.git Source: https://github.com/pdm-project/pdm-build-locked/archive/%{version}/pdm-build-locked-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(pkginfo) BuildRequires: python3dist(pytest) # Docs BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-design) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: python3dist(tomli) BuildRequires: texinfo %global _description %{expand: pdm-build-locked is a pdm plugin to add locked packages as additional optional dependency groups to the distribution metadata.} %description %_description %package -n python3-pdm-build-locked Summary: %{summary} %description -n python3-pdm-build-locked %_description %prep %autosetup -p1 -n pdm-build-locked-%{version} # Set version in pyproject.toml file # https://backend.pdm-project.org/metadata/ sed -i '/source = "scm"/a fallback_version = "%{version}"' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel pushd doc sphinx-build src texinfo -b texinfo ls pushd texinfo ls makeinfo --docbook pdm-build-locked.texi ls ls _sphinx_design_static popd popd %install %pyproject_install %pyproject_save_files -L pdm_build_locked install -Dpm 0644 doc/texinfo/pdm-build-locked.xml \ %{buildroot}%{_datadir}/help/en/python-pdm-build-locked/pdm-build-locked.xml %check %pyproject_check_import -t %pytest %files -n python3-pdm-build-locked -f %{pyproject_files} %license LICENSE %doc README.rst %dir %{_datadir}/help/en %lang(en) %{_datadir}/help/en/python-pdm-build-locked/ %changelog %autochangelog