[packages/python-tinydb] new (version 3.15.2)
atler
atler at pld-linux.org
Thu Jun 22 03:50:31 CEST 2023
commit da5480fe704e152a31e3ea33982d618f630ebb06
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Jun 22 02:00:05 2023 +0200
new (version 3.15.2)
last setuptools based version and last with python 2 support
python-tinydb.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
---
diff --git a/python-tinydb.spec b/python-tinydb.spec
new file mode 100644
index 0000000..254c69d
--- /dev/null
+++ b/python-tinydb.spec
@@ -0,0 +1,87 @@
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module tinydb
+
+Summary: Lightweight document oriented database
+Name: python-%{module}
+Version: 3.15.2
+Release: 1
+License: MIT
+Group: Development/Languages/Python
+Source0: https://files.pythonhosted.org/packages/source/t/tinydb/%{module}-%{version}.tar.gz
+# Source0-md5: 49fad927d9eb8f3b51e642edc9a1aff4
+URL: https://pypi.python.org/project/tinydb
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python >= 1:2.7
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-pytest-runner
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3 >= 1:3.3
+BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-pytest-runner
+BuildRequires: python3-setuptools
+%endif
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Lightweight document oriented database.
+
+%package -n python3-%{module}
+Summary: Lightweight document oriented database
+Group: Development/Languages/Python
+Requires: python3-modules >= 1:3.3
+
+%description -n python3-%{module}
+Lightweight document oriented database.
+
+%prep
+%setup -q -n %{module}-%{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 LICENSE README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-tinydb.git/commitdiff/da5480fe704e152a31e3ea33982d618f630ebb06
More information about the pld-cvs-commit
mailing list