diff --git a/filelock-3.8.0.tar.gz b/filelock-3.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b51991f0dabd84771783974bd21ad98a4022a5bf Binary files /dev/null and b/filelock-3.8.0.tar.gz differ diff --git a/py-filelock-3.0.12.tar.gz b/py-filelock-3.0.12.tar.gz deleted file mode 100644 index bf2da259d3bec05f248bcc9d2965d229e7a4258a..0000000000000000000000000000000000000000 Binary files a/py-filelock-3.0.12.tar.gz and /dev/null differ diff --git a/python-filelock.spec b/python-filelock.spec index 45042e14e2c994de821820653896d08e1e15f7bc..6b6a5715c0aaaead664fc621e5d3952f6ee981be 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -1,71 +1,93 @@ +%global _empty_manifest_terminate_build 0 Name: python-filelock -Version: 3.0.12 -Release: 3 +Version: 3.8.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 +URL: https://github.com/tox-dev/py-filelock +Source0: https://files.pythonhosted.org/packages/95/55/b897882bffb8213456363e646bf9e9fa704ffda5a7d140edf935a9e02c7b/filelock-3.8.0.tar.gz +BuildArch: noarch -BuildArch: noarch %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 - +Summary: A platform independent file lock +Provides: python-filelock +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-covdefaults +BuildRequires: python3-coverage +BuildRequires: python3-pytest +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-timeout +BuildRequires: python3-furo +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx-autodoc-typehints %description -n python3-filelock This package contains a single module, which implements a platform independent file locking mechanism for Python. -%package_help +%package help +Summary: Development documents and examples for filelock +Provides: python3-filelock-doc +%description help +This package contains a single module, which implements a platform +independent file locking mechanism for Python. %prep -%autosetup -p1 -n py-filelock-%{version} +%autosetup -n filelock-%{version} %build -%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' +%py3_build %make_build -C docs html man SPHINXBUILD=sphinx-build-%{python3_version} rm docs/build/html/.buildinfo %install -%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot - +%py3_install install -p -m0644 -D docs/build/man/py-filelock.1 \ %{buildroot}%{_mandir}/man1/py-filelock.1 +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check %{__python3} test.py -%files doc -%defattr(-,root,root) -%license LICENSE -%doc docs/build/html +%files -n python3-filelock -f filelist.lst +%dir %{python3_sitelib}/* -%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] - -%files help -%defattr(-,root,root) -%doc README.md -%{_mandir}/man1/py-filelock.1.gz +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Oct 12 2022 guozhengxin - 3.8.0-1 +- Upgrade package to version 3.8.0 + * Thu Mar 3 2022 zhaoshuang - 3.0.12-3 - remove unnecessary buildrequires