diff --git a/README.md b/README.md index 92b9200..1f39a15 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-pdm-pep517 +A PEP 517 backend for PDM that supports PEP 621 metadata. + diff --git a/python-pdm-pep517.spec b/python-pdm-pep517.spec new file mode 100644 index 0000000..45d09b3 --- /dev/null +++ b/python-pdm-pep517.spec @@ -0,0 +1,44 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-pdm-pep517 +Version: 1.0.4 +Release: 1mamba +Summary: A PEP 517 backend for PDM that supports PEP 621 metadata +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pdm.fming.dev/ +Source: https://pypi.debian.net/pdm-pep517/pdm-pep517-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n pdm-pep517-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info +%{python_sitearch}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitearch}/pdm/pep517 +%{python_sitearch}/pdm/pep517/* +%doc LICENSE + +%changelog +* Sun Oct 09 2022 Silvan Calarco 1.0.4-1mamba +- package created using the webbuild interface