mirror of
https://abf.rosa.ru/djam/python38-appdirs.git
synced 2025-02-24 01:02:53 +00:00
to py38
This commit is contained in:
parent
5a8157adca
commit
e7b78903be
1 changed files with 11 additions and 69 deletions
|
@ -1,6 +1,9 @@
|
|||
%define module appdirs
|
||||
|
||||
Name: python-%{module}
|
||||
# do not conflict with main system version
|
||||
%global __provides_exclude ^(python3egg|python3dist)
|
||||
|
||||
Name: python38-%{module}
|
||||
Version: 1.4.3
|
||||
Release: 1
|
||||
Summary: A small Python module for determining appropriate platform-specific dirs
|
||||
|
@ -8,8 +11,8 @@ Source0: https://github.com/ActiveState/appdirs/archive/%{version}.tar.gz
|
|||
License: MIT
|
||||
Group: Development/Python
|
||||
Url: http://github.com/ActiveState/appdirs
|
||||
BuildRequires: python38-devel
|
||||
BuildArch: noarch
|
||||
BuildRequires: pythonegg(setuptools)
|
||||
|
||||
%description
|
||||
What directory should your app use for storing user data?
|
||||
|
@ -31,82 +34,21 @@ and also:
|
|||
- is slightly opinionated on the directory names used. Look for "OPINION" in
|
||||
documentation and code for when an opinion is being applied.
|
||||
|
||||
%package -n python2-%{module}
|
||||
|
||||
Summary: A small Python module for determining appropriate platform-specific dirs
|
||||
Group: Development/Python
|
||||
BuildRequires: pythonegg(setuptools)
|
||||
BuildRequires: python2-pkg-resources
|
||||
|
||||
%description -n python2-%{module}
|
||||
What directory should your app use for storing user data?
|
||||
|
||||
%files -n python2-%{module}
|
||||
%files -n python38-%{module}
|
||||
%doc CHANGES.rst
|
||||
%doc LICENSE.txt
|
||||
%doc README.rst
|
||||
%{py2_puresitedir}/appdirs.py*
|
||||
%{py2_puresitedir}/appdirs*.egg-info
|
||||
%{python38_sitelib}/appdirs.py*
|
||||
%{python38_sitelib}/appdirs*.egg-info
|
||||
%{python38_sitelib}/__pycache__/appdirs.*.pyc
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n python3-%{module}
|
||||
|
||||
Summary: A small Python module for determining appropriate platform-specific dirs
|
||||
Group: Development/Python
|
||||
BuildRequires: python3egg(setuptools)
|
||||
|
||||
%description -n python3-%{module}
|
||||
What directory should your app use for storing user data?
|
||||
|
||||
This kind of thing is what the ``appdirs`` module is for.
|
||||
``appdirs`` will help you choose an appropriate:
|
||||
|
||||
- user data dir (``user_data_dir``)
|
||||
- user config dir (``user_config_dir``)
|
||||
- user cache dir (``user_cache_dir``)
|
||||
- site data dir (``site_data_dir``)
|
||||
- site config dir (``site_config_dir``)
|
||||
- user log dir (``user_log_dir``)
|
||||
|
||||
and also:
|
||||
|
||||
- is a single module so other Python packages can include their own
|
||||
private copy
|
||||
- is slightly opinionated on the directory names used. Look for "OPINION" in
|
||||
documentation and code for when an opinion is being applied.
|
||||
|
||||
%files -n python3-%{module}
|
||||
%doc CHANGES.rst
|
||||
%doc LICENSE.txt
|
||||
%doc README.rst
|
||||
%{py3_puresitedir}/appdirs.py*
|
||||
%{py3_puresitedir}/appdirs*.egg-info
|
||||
%{py3_puresitedir}/__pycache__/appdirs.*.pyc
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
%prep
|
||||
%setup -qn %{module}-%{version}
|
||||
|
||||
cp -a . %{py3dir}
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
%py38_build
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --root=%{buildroot}
|
||||
|
||||
pushd %{py3dir}
|
||||
%{__python3} setup.py install --root=%{buildroot}
|
||||
popd
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
|
||||
pushd %{py3dir}
|
||||
%{__python2} setup.py test
|
||||
popd
|
||||
%py38_install
|
||||
|
|
Loading…
Add table
Reference in a new issue