Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2005294e06
!27 make the test check
From: @caodongxia 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-03-30 10:33:26 +00:00
caodongxia
5dcad1a48f sync 22.03-SP3 info to 24.03-LTS 2024-03-30 16:34:26 +08:00
openeuler-ci-bot
ad3ac13958
!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
2022-03-30 09:24:05 +00:00
starlet-dx
b64364994b Modified the build and install phases to adapt to the compilation and installation modes of Python 3.10 2022-03-30 16:37:26 +08:00
openeuler-ci-bot
5f9367e177 !15 fix name error in spec file
From: @tong_1001
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-09-30 04:17:15 +00:00
shixuantong
218baf8f4e fix name error in spec file 2021-09-30 10:25:16 +08:00
openeuler-ci-bot
99b93aa3b7 !13 update version to 1.4.4 and update Source0
From: @tong_1001
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-07-25 08:49:11 +00:00
shixuantong
3acb6a5b20 update version to 1.4.4 and update Source0 2021-07-24 17:22:26 +08:00
openeuler-ci-bot
8f80264915 !2 remove the python2-appdirs
From: @yaokai13
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-31 09:47:33 +08:00
yaokai13
b643faa068 remove the python2-appdirs 2020-10-30 17:12:41 +08:00
3 changed files with 28 additions and 26 deletions

Binary file not shown.

BIN
appdirs-1.4.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,14 @@
%global with_tests 0%{?_with_tests:1}
%global with_tests 1%{?_with_tests:0}
%global srcname appdirs
name: python-appdirs
Version: 1.4.3
Release: 8
name: python-%{srcname}
Version: 1.4.4
Release: 4
Summary: A Python module for determining platform-specific directories
License: MIT
URL: https://github.com/ActiveState/appdirs
Source0: https://github.com/ActiveState/appdirs/archive/%{version}.tar.gz
Source0: %{pypi_source}
BuildArch: noarch
@ -15,20 +16,10 @@ BuildArch: noarch
A small Python module for determining appropriate " + " platform-specific directories,
e.g. a "user data dir".
%package -n python2-appdirs
Summary: A python2 module for determining platform-specific directories
%python_provide python2-appdirs
BuildRequires: python2-devel python2-setuptools
BuildRequires: python2-pip python2-wheel
%description -n python2-appdirs
A small Python 2 module for determining appropriate " + " platform-specific directories,
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
@ -40,30 +31,41 @@ e.g. a "user data dir".
rm -vrf appdirs.egg-info
%build
%py2_build_wheel
%py3_build_wheel
%py3_build
%install
%py2_install_wheel appdirs-%{version}-py2.py3-none-any.whl
%py3_install_wheel appdirs-%{version}-py2.py3-none-any.whl
%py3_install
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}{%{python2_sitelib},%{python3_sitelib}}/appdirs.py
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py
%check
%if %{with_tests}
%{__python2} setup.py test
%{__python3} setup.py test
%endif
%files -n python2-appdirs
%doc README.rst CHANGES.rst LICENSE.txt
%{python2_sitelib}/appdirs*
%files -n python3-appdirs
%doc README.rst CHANGES.rst LICENSE.txt
%{python3_sitelib}/appdirs*
%{python3_sitelib}/__pycache__/appdirs.*
%changelog
* Tue Dec 13 2022 zhuofeng <zhuofeng2@huawei.com> - 1.4.4-4
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:make the test check
* 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
* Sat Jul 24 2021 shixuantong <shixuantong@huawei.com> - 1.4.4-1
- update version to 1.4.4 and update Source0
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.4.3-9
- Remove subpackage python2-appdirs
* Thu Feb 27 2020 chenli <chenli147@huawei.com> - 1.4.3-8
- Init Package