Expand %{srcname} for better readability
This commit is contained in:
parent
1781a9870f
commit
fabfdc4596
@ -1,15 +1,14 @@
|
|||||||
%global srcname appdirs
|
|
||||||
%bcond_without wheel
|
%bcond_without wheel
|
||||||
%global wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
%global wheelname appdirs-%{version}-py2.py3-none-any.whl
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-appdirs
|
||||||
Version: 1.4.4
|
Version: 1.4.4
|
||||||
Release: 7%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: Python module for determining platform-specific directories
|
Summary: Python module for determining platform-specific directories
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/ActiveState/appdirs
|
URL: https://github.com/ActiveState/appdirs
|
||||||
Source0: %{pypi_source}
|
Source0: %{pypi_source appdirs}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -17,9 +16,9 @@ BuildArch: noarch
|
|||||||
A small Python module for determining appropriate " + " platform-specific
|
A small Python module for determining appropriate " + " platform-specific
|
||||||
directories, e.g. a "user data dir".
|
directories, e.g. a "user data dir".
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-appdirs
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python3-appdirs}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%if %{with wheel}
|
%if %{with wheel}
|
||||||
@ -27,13 +26,13 @@ BuildRequires: python3-pip
|
|||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python3-appdirs
|
||||||
A small Python 3 module for determining appropriate " + " platform-specific
|
A small Python 3 module for determining appropriate " + " platform-specific
|
||||||
directories, e.g. a "user data dir".
|
directories, e.g. a "user data dir".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n appdirs-%{version}
|
||||||
rm -vrf %{srcname}.egg-info
|
rm -vrf appdirs.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with wheel}
|
%if %{with wheel}
|
||||||
@ -49,16 +48,16 @@ rm -vrf %{srcname}.egg-info
|
|||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}.py
|
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-appdirs
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst CHANGES.rst
|
%doc README.rst CHANGES.rst
|
||||||
%{python3_sitelib}/%{srcname}*
|
%{python3_sitelib}/appdirs*
|
||||||
%{python3_sitelib}/__pycache__/%{srcname}.*
|
%{python3_sitelib}/__pycache__/appdirs.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-7
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-7
|
||||||
|
Loading…
Reference in New Issue
Block a user