From b64364994b9fd34d62e760ba4cbb225a8af01942 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Wed, 30 Mar 2022 15:59:49 +0800 Subject: [PATCH] Modified the build and install phases to adapt to the compilation and installation modes of Python 3.10 --- python-appdirs.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-appdirs.spec b/python-appdirs.spec index 4527231..53cfb0c 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -3,7 +3,7 @@ name: python-%{srcname} Version: 1.4.4 -Release: 2 +Release: 3 Summary: A Python module for determining platform-specific directories License: MIT @@ -19,7 +19,7 @@ e.g. a "user data dir". %package -n python3-appdirs Summary: A python3 module for determining platform-specific directories %python_provide python3-appdirs -BuildRequires: python3-devel python3-setuptools python3-pip python3-wheel +BuildRequires: python3-devel python3-setuptools %description -n python3-appdirs @@ -31,10 +31,10 @@ e.g. a "user data dir". rm -vrf appdirs.egg-info %build -%py3_build_wheel +%py3_build %install -%py3_install_wheel appdirs-%{version}-py2.py3-none-any.whl +%py3_install sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py @@ -49,6 +49,9 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs %{python3_sitelib}/__pycache__/appdirs.* %changelog +* Wed Mar 30 2022 yaoxin - 1.4.4-3 +- Modified the build and install phases to adapt to the compilation and installation modes of Python 3.10 + * Thu Sep 30 2021 shixuantong - 1.4.4-2 - fix name error in spec file