77 lines
1.9 KiB
RPMSpec
77 lines
1.9 KiB
RPMSpec
Name: python-filelock
|
|
Version: 3.12.0
|
|
Release: 1
|
|
Summary: A platform independent file lock
|
|
License: Unlicense
|
|
URL: https://github.com/benediktschmitt/py-filelock
|
|
Source0: https://files.pythonhosted.org/packages/24/85/cf4df939cc0a037ebfe18353005e775916faec24dcdbc7a2f6539ad9d943/filelock-3.12.0.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest
|
|
BuildRequires: python3-pytest-mock
|
|
|
|
%description
|
|
This package contains a single module, which implements a platform
|
|
independent file locking mechanism for Python.
|
|
|
|
%package doc
|
|
Summary: Documentation for filelock, A platform independent file lock
|
|
BuildRequires: python3-sphinx
|
|
|
|
%description doc
|
|
Documentation for filelock, A platform independent file lock
|
|
|
|
%package -n python3-filelock
|
|
Summary: A platform independent file lock
|
|
BuildRequires: python3-devel python3-setuptools
|
|
%{?python_provide:%python_provide python3-filelock}
|
|
Suggests: %{name}-doc
|
|
|
|
%description -n python3-filelock
|
|
This package contains a single module, which implements a platform
|
|
independent file locking mechanism for Python.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -p1 -n filelock-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install filelock==%{version}
|
|
|
|
%check
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}/
|
|
|
|
pytest
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
|
|
%files -n python3-filelock
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%{python3_sitelib}/filelock*
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Thu Apr 27 2023 xu_ping <707078654@qq.com> - 3.12.0-1
|
|
- Upgrade to 3.12.0
|
|
|
|
* Thu Mar 3 2022 zhaoshuang<zhaoshuang@uniontech.com> - 3.0.12-3
|
|
- remove unnecessary buildrequires
|
|
|
|
* Thu Jun 18 2020 hanhui<hanhui15@huawei.com> - 3.0.12-2
|
|
- bugfix
|
|
- fix python can not find file
|
|
|
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 3.0.12-1
|
|
- Package init
|