%global _empty_manifest_terminate_build 0 %global module ruyi Name: python-%{module} Version: 0.17.0 Release: 1 Summary: RuyiSDK Package Manager License: Apache-2.0 URL: https://github.com/ruyisdk/ruyi Source0: https://github.com/ruyisdk/ruyi/archive/refs/tags/%{version}.tar.gz BuildArch: noarch %description RuyiSDK Package Manager %package -n python3-%{module} Summary: RuyiSDK Package Manager Provides: python-%{module} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-poetry-core Requires: bzip2 Requires: ca-certificates Requires: coreutils Requires: gzip Requires: openssl Requires: sudo Requires: tar Requires: unzip Requires: xz Requires: zstd Requires: (curl or wget) Requires: python3-packaging %description -n python3-%{module} RuyiSDK Package Manager %prep %autosetup -p1 -n %{module}-%{version} %build %pyproject_build %install %pyproject_install %post -n python3-%{module} if [ $1 = 1 ] && [ ! -e %{_bindir}/ruyi ]; then %{__ln_s} -v %{python3_sitelib}/ruyi/__main__.py %{_bindir}/ruyi fi %preun -n python3-%{module} if [ $1 = 0 ] && [ -e %{_bindir}/ruyi ]; then %{__rm} -vf %{_bindir}/ruyi fi %files -n python3-%{module} %license LICENSE-Apache.txt %doc README.md %{python3_sitelib}/ruyi-*.dist-info/ %{python3_sitelib}/ruyi/ %changelog * Wed Sep 04 2024 weilinfox - 0.17.0-1 - Upgrade ruyi to version 0.17.0 * Sun Aug 18 2024 weilinfox - 0.16.0-1 - Upgrade ruyi to version 0.16.0 * Thu Mar 28 2024 weilinfox - 0.7.1-1 - Upgrade ruyi to version 0.7.1 * Thu Mar 28 2024 weilinfox - 0.7.0-1 - Upgrade ruyi to version 0.7.0 * Thu Mar 14 2024 weilinfox - 0.6.0-1 - Upgrade ruyi to version 0.6.0 * Fri Mar 01 2024 weilinfox - 0.5.0-1 - Upgrade ruyi to version 0.5.0 * Wed Feb 07 2024 weilinfox - 0.4.0-2 - Fix missing python3-packaging dependency * Tue Feb 06 2024 weilinfox - 0.4.0-1 - Package python-ruyi 0.4.0