diff --git a/python-platformdirs.spec b/python-platformdirs.spec index 0dedfaff88552f868fd7b8b1b98f62d088a7baf7..1903209dcbf5bfdd55da1614a3081c71e27c17fb 100644 --- a/python-platformdirs.spec +++ b/python-platformdirs.spec @@ -1,28 +1,38 @@ %global srcname platformdirs -Summary: Python module for determining appropriate platform-specific dirs Name: python-%{srcname} -Version: 2.5.4 -Release: 4%{?dist} +Version: 3.11.0 +Release: 1%{?dist} +Summary: Python module for determining appropriate platform-specific dirs License: MIT URL: https://github.com/platformdirs/platformdirs Source0: https://files.pythonhosted.org/packages/source/p/platformdirs/%{srcname}-%{version}.tar.gz - BuildArch: noarch -%description -A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". +%global common_description %{expand: +A small Python module for determining appropriate platform-specific dirs, e.g. +a "user data dir".} + + +%description %{common_description} + %package -n python3-%{srcname} -Summary: Python module for determining appropriate platform-specific dir +Summary: %{summary} BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + + +%description -n python3-%{srcname} %{common_description} -%description -n python3-%{srcname} -A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir". %prep %autosetup -n %{srcname}-%{version} +sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml +sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml + + %generate_buildrequires %pyproject_buildrequires -x test @@ -36,11 +46,15 @@ A small Python module for determining appropriate platform-specific dirs, e.g. a %check %pytest + %files -n python3-%{srcname} -f %{pyproject_files} -%license LICENSE -%doc README.rst CHANGES.rst +%doc README.rst + %changelog +* Mon Mar 24 2025 bbrucezhang - 3.11.0-1 +- Update to 3.11.0 for python-virtualenv + * Thu Sep 26 2024 OpenCloudOS Release Engineering - 2.5.4-4 - Rebuilt for clarifying the packages requirement in BaseOS and AppStream diff --git a/sources b/sources index bf2d93157fe6e286ab130495c64660bcdcad6d78..6378c46728bd3782f214b58db6cebe372c1948e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (platformdirs-2.5.4.tar.gz) = 1b7ff79a421bc0b0320a9b1ba8f99dbbecd34a9bea7fa7696b58007f2e05d8a910a3f32e2c03e6e3a8f3d272ab1c045051a682e3155c5bc5285e66e4add59489 +SHA512 (platformdirs-3.11.0.tar.gz) = a273ea8fc5916bdb94da9cc62ccef60a7247b5a019639aae3be9718626ce59d27d8e62c6552c25a3cdd0e7fb7215c32b6c30f2509a3356623f628f771e92bb56