Modified the build and install phases to adapt to the compilation and installation modes of Python 3.10
This commit is contained in:
parent
5f9367e177
commit
b64364994b
@ -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 <yaoxin30@huawei.com> - 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 <shixuantong@huawei.com> - 1.4.4-2
|
||||
- fix name error in spec file
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user