forked from pool/python-minidb
- switch to pytest - Rename 0001-switch-to-pytest.patch to no_ported_eq.patch as the previous patch was upstreamed, and now is just a small cleanup (gh#thp/minidb#15). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-minidb?expand=0&rev=9
69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-minidb
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
%bcond_without test
|
|
Name: python-minidb
|
|
Version: 2.0.4
|
|
Release: 0
|
|
Summary: SQLite3-based store for Python objects
|
|
License: ISC
|
|
Group: Development/Languages/Python
|
|
URL: https://thp.io/2010/minidb/
|
|
Source: https://files.pythonhosted.org/packages/source/m/minidb/minidb-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM no_ported_eq.patch gh#thp/minidb#15 mcepl@suse.com
|
|
# Don't use ported_eq workaround.
|
|
Patch0: no_ported_eq.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{pythons}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: python3-testsuite
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Minidb 2 allows you to store Python objects in a SQLite 3 database.
|
|
|
|
%prep
|
|
%autosetup -p1 -n minidb-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%if %{with test}
|
|
%check
|
|
%pytest test/test_minidb.py
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%doc README
|
|
%{python_sitelib}/minidb.py*
|
|
%{python_sitelib}/minidb-%{version}-py*.egg-info
|
|
%pycache_only %{python_sitelib}/__pycache__/minidb*.py*
|
|
|
|
%changelog
|