Initial import (#1818700).

This commit is contained in:
Parag Nemade 2020-03-31 18:31:59 +05:30
parent 1d11d94e1c
commit 1942443ab6
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
3 changed files with 63 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/fs-2.4.11.tar.gz

61
python-fs.spec Normal file
View File

@ -0,0 +1,61 @@
%global srcname fs
Name: python-%{srcname}
Version: 2.4.11
Release: 2%{?dist}
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
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(appdirs)
BuildRequires: python3dist(pytz)
BuildRequires: python3dist(six)
# Required for running tests
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-randomly)
%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}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname} %_description
%prep
%autosetup -n pyfilesystem2-%{version}
%build
%py3_build
%install
%py3_install
%check
# tests/test_ftpfs.py needs pyftpdlib (not packaged yet)
%{python3} -m pytest --ignore tests/test_ftpfs.py
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/
%changelog
* 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (fs-2.4.11.tar.gz) = fe4596bf213f9b1721cd3c665e6af180d6617eea07afbaa9d83847dc3f7dfe64bca16c8ccb337d48bbb49bf0d2fef90903e3c4aecc63f61faac6a2b6f6c59cf6