From 93b15d1baad8a1c686722068db06167676f9a3ea Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 14 Mar 2024 20:07:02 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.4.0-1mamba;Thu Mar 14 2024] --- README.md | 2 ++ python-mdit_py_plugins.spec | 52 +++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 python-mdit_py_plugins.spec diff --git a/README.md b/README.md index 727db26..993a566 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-mdit_py_plugins +Collection of plugins for markdown-it-py. + diff --git a/python-mdit_py_plugins.spec b/python-mdit_py_plugins.spec new file mode 100644 index 0000000..61fd7e2 --- /dev/null +++ b/python-mdit_py_plugins.spec @@ -0,0 +1,52 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-mdit_py_plugins +Version: 0.4.0 +Release: 1mamba +Summary: Collection of plugins for markdown-it-py +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/executablebooks/mdit-py-plugins +Source: https://pypi.debian.net/mdit-py-plugins/mdit_py_plugins-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(markdown-it-py) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n mdit_py_plugins-%{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) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Thu Mar 14 2024 Silvan Calarco 0.4.0-1mamba +- package created using the webbuild interface