Package init

This commit is contained in:
lyn1001 2023-04-25 16:41:05 +08:00
parent 6826840598
commit 042089a9f2
2 changed files with 66 additions and 0 deletions

BIN
pdm-pep517-1.0.5.tar.gz Normal file

Binary file not shown.

66
python-pdm-pep517.spec Normal file
View File

@ -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 <thistleslyn@163.com> - 1.0.5-1
- Package init