Compare commits
10 Commits
29c9c028a8
...
2005294e06
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2005294e06 | ||
|
|
5dcad1a48f | ||
|
|
ad3ac13958 | ||
|
|
b64364994b | ||
|
|
5f9367e177 | ||
|
|
218baf8f4e | ||
|
|
99b93aa3b7 | ||
|
|
3acb6a5b20 | ||
|
|
8f80264915 | ||
|
|
b643faa068 |
BIN
1.4.3.tar.gz
BIN
1.4.3.tar.gz
Binary file not shown.
BIN
appdirs-1.4.4.tar.gz
Normal file
BIN
appdirs-1.4.4.tar.gz
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user