python-fs/python-fs.spec

115 lines
3.7 KiB
RPMSpec
Raw Normal View History

2020-03-31 13:01:59 +00:00
%global srcname fs
# RHEL does not include the test dependencies
%bcond tests %{undefined rhel}
2020-03-31 13:01:59 +00:00
Name: python-%{srcname}
2023-03-16 08:08:51 +00:00
Version: 2.4.16
Release: 2%{?dist}
2020-03-31 13:01:59 +00:00
Summary: Python's Filesystem abstraction layer
License: MIT
URL: https://pypi.org/project/fs/
Source0: https://github.com/PyFilesystem/pyfilesystem2/archive/v%{version}/%{srcname}-%{version}.tar.gz
# Replace TestCase method aliases removed in Python 3.12
# https://github.com/PyFilesystem/pyfilesystem2/pull/570
# changelog fragment removed to avoid conflict
Patch: 570.patch
2020-03-31 13:01:59 +00:00
BuildArch: noarch
BuildRequires: python3-devel
2020-06-24 05:21:31 +00:00
BuildRequires: python3-setuptools
2020-03-31 13:01:59 +00:00
BuildRequires: python3dist(appdirs)
BuildRequires: python3dist(six)
%if %{with tests}
2020-03-31 13:01:59 +00:00
# Required for running tests
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-randomly)
2023-03-16 08:08:51 +00:00
BuildRequires: python3dist(parameterized)
%endif
2020-03-31 13:01:59 +00:00
%global _description %{expand:
Think of PyFilesystem's FS objects as the next logical step to Python's file
objects. In the same way that file objects abstract a single file, FS objects
abstract an entire filesystem.}
%description %_description
%package -n python3-%{srcname}
Summary: %{summary}
%description -n python3-%{srcname} %_description
%prep
%autosetup -n pyfilesystem2-%{version} -p1
2020-03-31 13:01:59 +00:00
%build
%py3_build
%install
%py3_install
%if %{with tests}
2020-03-31 13:01:59 +00:00
%check
# tests/test_ftpfs.py needs pyftpdlib (not packaged yet)
# test_seek_current and test_seek_end are skipped due to regression in Python 3.12
# upstream issue: https://github.com/python/cpython/issues/102956
%{python3} -m pytest --ignore tests/test_ftpfs.py -k "not test_seek_current and not test_seek_end"
%endif
2020-03-31 13:01:59 +00:00
%files -n python3-%{srcname}
%license LICENSE
2023-03-16 08:08:51 +00:00
%doc README.md examples
2020-03-31 13:01:59 +00:00
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%changelog
* Thu May 25 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 2.4.16-2
- Disable tests in RHEL builds
2023-03-16 08:08:51 +00:00
* Thu Mar 16 2023 Parag Nemade <pnemade AT redhat DOT com> - 2.4.16-1
- Update to 2.4.16 version
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-14 14:44:36 +00:00
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.4.11-11
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-9
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-04 18:34:35 +00:00
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.4.11-8
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-06-24 05:21:31 +00:00
* Wed Jun 24 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.4.11-5
- Add missing BR: python3-setuptools
* Mon Jun 01 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.4.11-4
- Disable few tests temporary for now (rhbz#1820916, rhbz#1841708)
2020-05-26 01:16:39 +00:00
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.11-3
- Rebuilt for Python 3.9
2020-03-31 13:01:59 +00:00
* Mon Mar 30 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.4.11-2
- enable tests and use upstream source tarball
* Mon Mar 30 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.4.11-1
- Initial packaging