diff --git a/pyporter-v1.2.tar.gz b/pyporter-v1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a1eca136e20b621fdff11a6a9641d34f1a0f23e0 Binary files /dev/null and b/pyporter-v1.2.tar.gz differ diff --git a/pyporter.spec b/pyporter.spec index 4719758c6f72480f3c99eb2e1104a07b1cfb528d..7a46d9216efb7c0d9c3a8606702739f445739f91 100644 --- a/pyporter.spec +++ b/pyporter.spec @@ -1,34 +1,35 @@ Name: pyporter -Version: 1.0 -Release: 2 +Version: 1.2 +Release: 1 Summary: A rpm packager bot for python modules from pypi.org License: Mulan PSL v2 URL: https://gitee.com/openeuler/pyporter -Source0: https://gitee.com/openeuler/pyporter/repository/archive/v%{version}.tar.gz +Source0: https://gitee.com/openeuler/pyporter/repository/archive/pyporter-v%{version}.tar.gz BuildArch: noarch %description pyporter is a tool to create spec file and create rpm for python modules For more details, please use pyporter -h. -BuildRequires: gcc libstdc++-devel python3-cffi -Requires: gcc gdb libstdc++-devel python3-cffi - - %package -n python3-pyporter Summary: A rpm packager bot for python modules from pypi.org +BuildRequires: python3-hatchling python3-hatch-vcs python3-pip python3-setuptools python3-wheel +Requires: wget python3-pip python3-retry2 openEuler-rpm-config >= 30-39 rpm-build + %description -n python3-pyporter pyporter is a tool to create spec file and create rpm for python modules. %prep -%autosetup -n pyporter -p1 +%autosetup -n pyporter-v%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} pushd %{buildroot} + +touch filelist.lst if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi @@ -45,12 +46,14 @@ popd mv %{buildroot}/filelist.lst . %files -n python3-pyporter -f filelist.lst +%{python3_sitelib}/* %license LICENSE %doc README.md -%dir %{python3_sitelib}/* - %changelog +* Wed Sep 27 2023 LukeLIN-web <1263810658@qq.com> - 1.2-1 +- DESC: support packing pyproject.toml + * Wed Aug 04 2021 chenyanpanHW - 1.0-2 - DESC: delete BuildRequires gdb diff --git a/v1.0.tar.gz b/v1.0.tar.gz deleted file mode 100644 index 3f85fd8289e8957787edea7140f5ec9e44979c0b..0000000000000000000000000000000000000000 Binary files a/v1.0.tar.gz and /dev/null differ