diff --git a/python-tinydb.spec b/python-tinydb.spec index f35d63e00f7c31f8864baf94cd67046b5dc08c44..15f7eb688f100dd0556ca7378705183edd08877e 100644 --- a/python-tinydb.spec +++ b/python-tinydb.spec @@ -1,11 +1,16 @@ %global _empty_manifest_terminate_build 0 Name: python-tinydb -Version: 4.7.1 +Version: 4.8.0 Release: 1 Summary: TinyDB is a tiny, document oriented database optimized for your happiness License: MIT URL: https://github.com/msiemens/tinydb -Source0: https://files.pythonhosted.org/packages/32/ed/78f24df0fec08f0fb92fc4b4758adcab780660caa8c3f94c2e175eb7e2ba/tinydb-4.7.1.tar.gz +Source0: https://files.pythonhosted.org/packages/30/0b/9e75a8d3333a6a3d9b36de04bf87a37a8d7f100035ea23c9c37bf0a112ab/tinydb-4.8.0.tar.gz +BuildRequires: python%{python3_pkgversion}-pip +BuildRequires: python%{python3_pkgversion}-wheel +BuildRequires: python%{python3_pkgversion}-hatchling +Buildrequires: python%{python3_pkgversion}-hatch-vcs +Buildrequires: python%{python3_pkgversion}-poetry-core BuildArch: noarch %description @@ -27,13 +32,13 @@ Provides: python3-tinydb-doc TinyDB is a lightweight document oriented database optimized for your happiness %prep -%autosetup -n tinydb-%{version} +%autosetup -p1 -n tinydb-%{version} %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install 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 @@ -42,34 +47,18 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{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 . -%files -n python3-tinydb -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python3-tinydb +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Tue Jul 02 2024 zouzhimin - 4.8.0-1 +- Update package to version 4.8.0 +- Feature: Allow retrieve multiple documents by document ID using Table.get(doc_ids=[...]) + * Fri Feb 24 2023 wangjunqi - 4.7.1-1 - Update package to version 4.7.1 diff --git a/tinydb-4.7.1.tar.gz b/tinydb-4.7.1.tar.gz deleted file mode 100644 index 37097a5521474498c585bf8f49013cc131fa911d..0000000000000000000000000000000000000000 Binary files a/tinydb-4.7.1.tar.gz and /dev/null differ diff --git a/tinydb-4.8.0.tar.gz b/tinydb-4.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..91982fdbee9434b2ddeeac906b6d4d053a689f79 Binary files /dev/null and b/tinydb-4.8.0.tar.gz differ