From fabfdc4596c6dc0dab1fff577306e85d6dd4e89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 31 Aug 2022 13:13:39 +0200 Subject: [PATCH] Expand %{srcname} for better readability --- python-appdirs.spec | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/python-appdirs.spec b/python-appdirs.spec index 4c1729a..c715d6b 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -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 - 1.4.4-7