diff --git a/pdm-pep517-1.0.5.tar.gz b/pdm-pep517-1.0.5.tar.gz new file mode 100644 index 0000000..4ff3e27 Binary files /dev/null and b/pdm-pep517-1.0.5.tar.gz differ diff --git a/python-pdm-pep517.spec b/python-pdm-pep517.spec new file mode 100644 index 0000000..830a30c --- /dev/null +++ b/python-pdm-pep517.spec @@ -0,0 +1,66 @@ +Name: python-pdm-pep517 +Version: 1.0.5 +Release: 1 +Summary: Yet another PEP 517 backend +License: MIT AND Apache-2.0 AND Public Domain AND BSD-3-Clause AND ISC +URL: https://pdm.fming.dev +Source0: https://files.pythonhosted.org/packages/2d/59/15ff8715a14fb26fec56a0d66f7a53d27e5d14a550fc12fefd446fc74684/pdm-pep517-1.0.5.tar.gz +BuildArch: noarch +BuildRequires: python3-devel python3-setuptools +BuildRequires: gcc python3-pip git pytest + +%description +This is the backend for PDM projects, while you can also use it alone. It +reads the metadata of PEP 621 format and coverts it to Core metadata. + + +%package -n python3-pdm-pep517 +Summary: %{summary} + +%description -n python3-pdm-pep517 +This is the backend for PDM projects, while you can also use it alone. It +reads the metadata of PEP 621 format and coverts it to Core metadata. + +%prep +%autosetup -p1 -n pdm-pep517-%{version} + +%build +%pyproject_build + +%install +%pyproject_install pdm-pep517==%{version} + +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%check +git config --global user.email "you@example.com" +git config --global user.name "Your Name" + +/usr/bin/pytest + +%files -n python3-pdm-pep517 -f filelist.lst +%dir %{python3_sitelib}/* +%{python3_sitelib}/pdm/pep517 + +%changelog +* Mon Apr 24 2023 liyanan - 1.0.5-1 +- Package init \ No newline at end of file