Upgrade package to 3.12.0 version

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-04-27 14:27:19 +08:00
parent 07e197e178
commit 77ac823dc3
3 changed files with 16 additions and 17 deletions

BIN
filelock-3.12.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,16 @@
Name: python-filelock
Version: 3.0.12
Release: 3
Version: 3.12.0
Release: 1
Summary: A platform independent file lock
License: Unlicense
URL: https://github.com/benediktschmitt/py-filelock
Source0: https://github.com/benediktschmitt/py-filelock/archive/v%{version}/py-filelock-%{version}.tar.gz
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.
@ -32,40 +35,36 @@ independent file locking mechanism for Python.
%package_help
%prep
%autosetup -p1 -n py-filelock-%{version}
%autosetup -p1 -n filelock-%{version}
%build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%make_build -C docs html man SPHINXBUILD=sphinx-build-%{python3_version}
rm docs/build/html/.buildinfo
%pyproject_build
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
install -p -m0644 -D docs/build/man/py-filelock.1 \
%{buildroot}%{_mandir}/man1/py-filelock.1
%pyproject_install filelock==%{version}
%check
%{__python3} test.py
export PYTHONPATH=%{buildroot}%{python3_sitelib}/
pytest
%files doc
%defattr(-,root,root)
%license LICENSE
%doc docs/build/html
%files -n python3-filelock
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/filelock.py
%_prefix/lib/python%{python3_version}/site-packages/filelock-%{version}-py3.*.egg-info
%_prefix/lib/python%{python3_version}/site-packages/__pycache__/filelock*.py[co]
%{python3_sitelib}/filelock*
%files help
%defattr(-,root,root)
%doc README.md
%{_mandir}/man1/py-filelock.1.gz
%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