diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-27 08:53:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-27 08:53:42 +0000 |
commit | 0cf0d61c343c76f991b26f022c8e7814609351ff (patch) | |
tree | 73e66d4db8af31aca6f85afd8fe5d0bdd4360dc1 | |
parent | a6ec31aec0fb3e21bd3c74418e753d2923d1e86c (diff) |
automatic import of pyporter
-rw-r--r-- | pyporter.spec | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pyporter.spec b/pyporter.spec index 63928b9..c907bd1 100644 --- a/pyporter.spec +++ b/pyporter.spec @@ -12,8 +12,8 @@ pyporter is a tool to create spec file and create rpm for python modules For mor %package -n python3-pyporter Summary: A rpm packager bot for python modules from pypi.org -BuildRequires: python3-hatchling python3-hatch-vcs python3-pip openEuler-rpm-config >= 30-39 python3-setuptools python3-wheel -Requires: python3-retry2 +BuildRequires: python3-hatchling python3-hatch-vcs python3-pip python3-setuptools python3-wheel +Requires: python3-retry2 openEuler-rpm-config >= 30-39 %description -n python3-pyporter pyporter is a tool to create spec file and create rpm for python modules. @@ -28,9 +28,8 @@ pyporter is a tool to create spec file and create rpm for python modules. %pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi + +touch filelist.lst if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi @@ -46,8 +45,8 @@ mv %{buildroot}/filelist.lst . %files -n python3-pyporter -f filelist.lst %license LICENSE %doc README.md -%dir %{python3_sitelib}/* +%{python3_sitelib}/* %changelog * Wed Sept 27 2023 LukeLIN-web <1263810658@qq.com> - 1.2-1 |