python-appdirs/python-appdirs.spec

60 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-03-04 10:14:19 +08:00
%global with_tests 0%{?_with_tests:1}
%global srcname appdirs
2020-03-04 10:14:19 +08:00
name: pythono-%{srcname}
Version: 1.4.4
Release: 1
2020-03-04 10:14:19 +08:00
Summary: A Python module for determining platform-specific directories
License: MIT
URL: https://github.com/ActiveState/appdirs
Source0: %{pypi_source}
2020-03-04 10:14:19 +08:00
BuildArch: noarch
%description
A small Python 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
%description -n python3-appdirs
A small Python 3 module for determining appropriate " + " platform-specific directories,
e.g. a "user data dir".
%prep
%autosetup -n appdirs-%{version} -p1
rm -vrf appdirs.egg-info
%build
%py3_build_wheel
%install
%py3_install_wheel appdirs-%{version}-py2.py3-none-any.whl
2020-10-30 17:12:41 +08:00
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py
2020-03-04 10:14:19 +08:00
%check
%if %{with_tests}
%{__python3} setup.py test
%endif
%files -n python3-appdirs
%doc README.rst CHANGES.rst LICENSE.txt
%{python3_sitelib}/appdirs*
%{python3_sitelib}/__pycache__/appdirs.*
%changelog
* Sat Jul 24 2021 shixuantong <shixuantong@huawei.com> - 1.4.4-1
- update version to 1.4.4 and update Source0
2020-10-30 17:12:41 +08:00
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.4.3-9
- Remove subpackage python2-appdirs
2020-03-04 10:14:19 +08:00
* Thu Feb 27 2020 chenli <chenli147@huawei.com> - 1.4.3-8
- Init Package