From 01a0a0db40c38436bce680edbee2783e22f2b4f8 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:51:17 +0000 Subject: [PATCH] import UBI python-appdirs-1.4.4-15.el10 --- .gitignore | 2 +- .python-appdirs.metadata | 1 - ...python-appdirs.spec => python-appdirs.spec | 106 +++++++++++------- sources | 1 + 4 files changed, 68 insertions(+), 42 deletions(-) delete mode 100644 .python-appdirs.metadata rename SPECS/python-appdirs.spec => python-appdirs.spec (62%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 9bd898c..9bb9b18 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/appdirs-1.4.4.tar.gz +appdirs-1.4.4.tar.gz diff --git a/.python-appdirs.metadata b/.python-appdirs.metadata deleted file mode 100644 index df92ccb..0000000 --- a/.python-appdirs.metadata +++ /dev/null @@ -1 +0,0 @@ -1fa04e44b1084338cb7b21e9cf44fce5efb81840 SOURCES/appdirs-1.4.4.tar.gz diff --git a/SPECS/python-appdirs.spec b/python-appdirs.spec similarity index 62% rename from SPECS/python-appdirs.spec rename to python-appdirs.spec index 1ff50ff..7a5b0d8 100644 --- a/SPECS/python-appdirs.spec +++ b/python-appdirs.spec @@ -1,72 +1,98 @@ -%global srcname appdirs -%bcond_without wheel -%global wheelname %{srcname}-%{version}-py2.py3-none-any.whl - -Name: python-%{srcname} +Name: python-appdirs Version: 1.4.4 -Release: 4%{?dist} +Release: 15%{?dist} Summary: Python module for determining platform-specific directories +# https://spdx.org/licenses/MIT.html License: MIT URL: https://github.com/ActiveState/appdirs -Source0: %{pypi_source} +Source: %{pypi_source appdirs} BuildArch: noarch +BuildRequires: python3-devel + %description A small Python module for determining appropriate " + " platform-specific directories, e.g. a "user data dir". -%package -n python3-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%if %{with wheel} -BuildRequires: python3-pip -BuildRequires: python3-wheel -%endif -%description -n python3-%{srcname} +%package -n python3-appdirs +Summary: %{summary} + +%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} +sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py + + +%generate_buildrequires +%pyproject_buildrequires + %build -%if %{with wheel} - %py3_build_wheel -%else - %py3_build -%endif +%pyproject_wheel + %install -%if %{with wheel} - %py3_install_wheel %{wheelname} -%else - %py3_install -%endif +%pyproject_install +%pyproject_save_files appdirs -sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}.py %check -%{__python3} setup.py test +# upstream's tox.ini just wraps this command with no extra deps +# we don't use %%tox here to avoid a dependency loop: tox->platformdirs->appdirs +%{python3} setup.py test -%files -n python3-%{srcname} -%license LICENSE.txt + +%files -n python3-appdirs -f %{pyproject_files} %doc README.rst CHANGES.rst -%{python3_sitelib}/%{srcname}* -%{python3_sitelib}/__pycache__/%{srcname}.* + %changelog -* Tue Aug 10 2021 Mohan Boddu - 1.4.4-4 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Tue Oct 29 2024 Troy Dawson - 1.4.4-15 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 -* Fri Apr 16 2021 Mohan Boddu - 1.4.4-3 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Mon Jun 24 2024 Troy Dawson - 1.4.4-14 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.4.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.4.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jul 07 2023 Parag Nemade - 1.4.4-10 +- Help msuchy to count this package as already using SPDX license expression + +* Tue Jun 13 2023 Python Maint - 1.4.4-9 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.4.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.4.4-6 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 02 2021 Python Maint - 1.4.4-3 +- Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..d3a5da6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (appdirs-1.4.4.tar.gz) = 8b0cdd9fd471d45b186aa47607691cf378dabd3edc7b7026a57bd6d6f57698e86f440818a5e23ba4288b35d6bb8cb6eb0106eae8aab09d8863ee15025d300883