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