|
|
a2d11d |
%bcond_without tests
|
|
|
a2d11d |
|
|
|
a2d11d |
Name: python-platformdirs
|
|
|
a2d11d |
Version: 4.2.2
|
|
rdobuilder |
a7a016 |
Release: 2%{?dist}
|
|
|
a2d11d |
Summary: A small Python package for determining appropriate platform-specific dirs
|
|
|
a2d11d |
License: MIT
|
|
|
a2d11d |
URL: https://github.com/platformdirs/platformdirs
|
|
|
a2d11d |
Source: %{pypi_source platformdirs}
|
|
|
a2d11d |
BuildArch: noarch
|
|
|
a2d11d |
|
|
|
a2d11d |
%global common_description %{expand:
|
|
|
a2d11d |
When writing desktop application, finding the right location to store user data
|
|
|
a2d11d |
and configuration varies per platform. Even for single-platform apps, there
|
|
|
a2d11d |
may by plenty of nuances in figuring out the right location. This kind of
|
|
|
a2d11d |
thing is what the platformdirs package is for.}
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%description %{common_description}
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%package -n python3-platformdirs
|
|
|
a2d11d |
Summary: %{summary}
|
|
|
a2d11d |
BuildRequires: python3-devel
|
|
|
a2d11d |
# RHBZ#1712140, RHBZ#2076994
|
|
|
a2d11d |
BuildRequires: pyproject-rpm-macros >= 1.2.0
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%description -n python3-platformdirs %{common_description}
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%prep
|
|
|
a2d11d |
%autosetup -n platformdirs-%{version}
|
|
|
a2d11d |
|
|
|
a2d11d |
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
|
|
a2d11d |
sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml
|
|
|
a2d11d |
sed -r -i '/^[[:blank:]]*"covdefaults\b/d' pyproject.toml
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%generate_buildrequires
|
|
|
a2d11d |
%pyproject_buildrequires -w %{?with_tests:-x test}
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%build
|
|
|
a2d11d |
%pyproject_wheel
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%install
|
|
|
a2d11d |
%pyproject_install
|
|
|
a2d11d |
%pyproject_save_files -l platformdirs
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%check
|
|
|
a2d11d |
%if %{with tests}
|
|
|
a2d11d |
# Upstream uses tox, but we don’t use it, to avoid a build dependency loop
|
|
|
a2d11d |
# platformdirs <- virtualenv <- tox
|
|
|
a2d11d |
%pytest
|
|
|
a2d11d |
%else
|
|
|
a2d11d |
%pyproject_check_import
|
|
|
a2d11d |
%endif
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%files -n python3-platformdirs -f %{pyproject_files}
|
|
|
a2d11d |
%doc README.rst
|
|
|
a2d11d |
|
|
|
a2d11d |
|
|
|
a2d11d |
%changelog
|
|
rdobuilder |
a7a016 |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Tue Jul 09 2024 Carl George <carlwgeorge@fedoraproject.org> - 4.2.2-1
|
|
rdobuilder |
a7a016 |
- Update to version 4.2.2 rhbz#2227426
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.11.0-4
|
|
rdobuilder |
a7a016 |
- Rebuilt for Python 3.13
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.0-3
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.0-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Sat Dec 02 2023 Orion Poplawski <orion@nwra.com> - 3.11.0-1
|
|
rdobuilder |
a7a016 |
- Update to 3.11.0
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.1-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Mon Jul 17 2023 Lumír Balhar <lbalhar@redhat.com> - 3.9.1-1
|
|
rdobuilder |
a7a016 |
- Update to 3.9.1 (rhbz#2156775)
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jun 30 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.5.1-1
|
|
rdobuilder |
a7a016 |
- Update to 3.5.1
|
|
rdobuilder |
a7a016 |
- Fixes: rhbz#2156775
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.6.0-3
|
|
rdobuilder |
a7a016 |
- Rebuilt for Python 3.12
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Thu Dec 08 2022 Lumír Balhar <lbalhar@redhat.com> - 2.6.0-1
|
|
rdobuilder |
a7a016 |
- Update to 2.6.0 (rhbz#2151438)
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-3
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.5.2-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for Python 3.11
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Thu Apr 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.2-1
|
|
rdobuilder |
a7a016 |
- Update to 2.5.2; accommodate upstream’s switch to hatchling build backend
|
|
rdobuilder |
a7a016 |
- Add a build conditional for the tests
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Tue Mar 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.1-1
|
|
rdobuilder |
a7a016 |
- Update to 2.5.1 (close RHBZ#2007878)
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Sat Dec 04 2021 Carl George <carl@george.computer> - 2.3.0-3
|
|
rdobuilder |
a7a016 |
- Use "test" extra to generate buildrequires
|
|
rdobuilder |
a7a016 |
- Run tests with %%pytest
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Tue Oct 26 2021 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-2
|
|
rdobuilder |
a7a016 |
- Don't use tox during the build to avoid a build dependency loop
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Mon Aug 30 2021 Carl George <carl@george.computer> - 2.3.0-1
|
|
rdobuilder |
a7a016 |
- Latest upstream
|
|
rdobuilder |
a7a016 |
- Resolves: rhbz#1999337
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Sun Aug 01 2021 Carl George <carl@george.computer> - 2.2.0-1
|
|
rdobuilder |
a7a016 |
- Latest upstream
|
|
rdobuilder |
a7a016 |
- Resolves: rhbz#1985567
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jul 23 2021 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-3
|
|
rdobuilder |
a7a016 |
- Let %%pyproject_buildrequires know we need appdirs
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
rdobuilder |
a7a016 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
a7a016 |
|
|
rdobuilder |
a7a016 |
* Mon Jul 12 2021 Carl George <carl@george.computer> - 2.0.0-1
|
|
rdobuilder |
a7a016 |
- Initial package rhbz#1981607
|