[packages/python-tinydb-smartcache] new (version 1.0.2)

atler atler at pld-linux.org
Thu Jun 22 04:06:32 CEST 2023


commit c5354f336c07afb129fcca0f55279cc3f9db2fbf
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jun 22 02:18:24 2023 +0200

    new (version 1.0.2)
    
    last setuptools based version and last with python 2 support

 python-tinydb-smartcache.spec | 93 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)
---
diff --git a/python-tinydb-smartcache.spec b/python-tinydb-smartcache.spec
new file mode 100644
index 0000000..3836a41
--- /dev/null
+++ b/python-tinydb-smartcache.spec
@@ -0,0 +1,93 @@
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define		module		tinydb_smartcache
+%define		pypi_name	tinydb-smartcache
+
+Summary:	A smarter query cache for TinyDB
+Name:		python-tinydb-smartcache
+Version:	1.0.2
+Release:	1
+License:	MIT
+Group:		Development/Languages/Python
+Source0:	https://files.pythonhosted.org/packages/source/t/tinydb-smartcache/%{pypi_name}-%{version}.zip
+# Source0-md5:	beb8deb7404dadf01154daee0476016d
+URL:		https://pypi.python.org/project/tinydb-smartcache
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	unzip
+%if %{with python2}
+BuildRequires:	python >= 1:2.6
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3 >= 1:3.3
+BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tinydb-smartcache provides a smart query cache for TinyDB. It updates
+the query cache when inserting/removing/updating elements so the cache
+doesn’t get invalidated. It’s useful if you perform lots of queries
+while the data changes only little.
+
+%package -n python3-tinydb-smartcache
+Summary:	A smarter query cache for TinyDB
+Group:		Development/Languages/Python
+Requires:	python3-modules >= 1:3.3
+
+%description -n python3-tinydb-smartcache
+tinydb-smartcache provides a smart query cache for TinyDB. It updates
+the query cache when inserting/removing/updating elements so the cache
+doesn’t get invalidated. It’s useful if you perform lots of queries
+while the data changes only little.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-tinydb-smartcache
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-tinydb-smartcache.git/commitdiff/c5354f336c07afb129fcca0f55279cc3f9db2fbf



More information about the pld-cvs-commit mailing list