From b1361f851270e93ac59e6009dd73d6a1e13cbc22 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 28 May 2024 09:49:29 +0200 Subject: [PATCH] package created using the webbuild interface [release 0.2.0-1mamba;Mon May 27 2024] --- README.md | 2 ++ python-mkdocs_get_deps.spec | 54 +++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 python-mkdocs_get_deps.spec diff --git a/README.md b/README.md index bba2654..d844888 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-mkdocs_get_deps +MkDocs extension that lists all dependencies according to a mkdocs.yml file. + diff --git a/python-mkdocs_get_deps.spec b/python-mkdocs_get_deps.spec new file mode 100644 index 0000000..639ef6a --- /dev/null +++ b/python-mkdocs_get_deps.spec @@ -0,0 +1,54 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-mkdocs_get_deps +Version: 0.2.0 +Release: 1mamba +Summary: MkDocs extension that lists all dependencies according to a mkdocs.yml file +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/mkdocs/get-deps +Source: https://pypi.debian.net/mkdocs-get-deps/mkdocs_get_deps-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(mergedeep) +BuildRequires: python3.11dist(platformdirs) +BuildRequires: python3.11dist(pyyaml) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n mkdocs_get_deps-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%{_bindir}/mkdocs-get-deps +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* + +%changelog +* Mon May 27 2024 Silvan Calarco 0.2.0-1mamba +- package created using the webbuild interface