!17 Modified the build and install phases to adapt to the compilation and installation modes of Python 3.10
From: @starlet-dx Reviewed-by: @myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
ad3ac13958
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
name: python-%{srcname}
|
name: python-%{srcname}
|
||||||
Version: 1.4.4
|
Version: 1.4.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A Python module for determining platform-specific directories
|
Summary: A Python module for determining platform-specific directories
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -19,7 +19,7 @@ e.g. a "user data dir".
|
|||||||
%package -n python3-appdirs
|
%package -n python3-appdirs
|
||||||
Summary: A python3 module for determining platform-specific directories
|
Summary: A python3 module for determining platform-specific directories
|
||||||
%python_provide python3-appdirs
|
%python_provide python3-appdirs
|
||||||
BuildRequires: python3-devel python3-setuptools python3-pip python3-wheel
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
|
|
||||||
%description -n python3-appdirs
|
%description -n python3-appdirs
|
||||||
@ -31,10 +31,10 @@ e.g. a "user data dir".
|
|||||||
rm -vrf appdirs.egg-info
|
rm -vrf appdirs.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build_wheel
|
%py3_build
|
||||||
|
|
||||||
%install
|
%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
|
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.*
|
%{python3_sitelib}/__pycache__/appdirs.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 30 2021 shixuantong <shixuantong@huawei.com> - 1.4.4-2
|
||||||
- fix name error in spec file
|
- fix name error in spec file
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user