Compare commits

...

No commits in common. 'cs10' and 'c9' have entirely different histories.
cs10 ... c9

@ -1,98 +1,72 @@
Name: python-appdirs
%global srcname appdirs
%bcond_without wheel
%global wheelname %{srcname}-%{version}-py2.py3-none-any.whl
Name: python-%{srcname}
Version: 1.4.4
Release: 15%{?dist}
Release: 4%{?dist}
Summary: Python module for determining platform-specific directories
# https://spdx.org/licenses/MIT.html
License: MIT
URL: https://github.com/ActiveState/appdirs
Source: %{pypi_source appdirs}
Source0: %{pypi_source}
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-appdirs
%package -n python3-%{srcname}
Summary: %{summary}
%description -n python3-appdirs
%{?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}
A small Python 3 module for determining appropriate " + " platform-specific
directories, e.g. a "user data dir".
%prep
%autosetup -n appdirs-%{version}
sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py
%generate_buildrequires
%pyproject_buildrequires
%autosetup -n %{srcname}-%{version}
rm -vrf %{srcname}.egg-info
%build
%pyproject_wheel
%if %{with wheel}
%py3_build_wheel
%else
%py3_build
%endif
%install
%pyproject_install
%pyproject_save_files appdirs
%if %{with wheel}
%py3_install_wheel %{wheelname}
%else
%py3_install
%endif
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}.py
%check
# 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
%{__python3} setup.py test
%files -n python3-appdirs -f %{pyproject_files}
%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.rst CHANGES.rst
%{python3_sitelib}/%{srcname}*
%{python3_sitelib}/__pycache__/%{srcname}.*
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.4.4-15
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.4.4-14
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jul 07 2023 Parag Nemade <pnemade AT redhat DOT com> - 1.4.4-10
- Help msuchy to count this package as already using SPDX license expression
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.4.4-9
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.4.4-6
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.4-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.4.4-3
- Rebuilt for Python 3.10
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save