1bf7530
%global srcname minidb
1bf7530
1bf7530
Name:           python-%{srcname}
fd0703b
Version:        2.0.7
8d75d92
Release:        %autorelease
1bf7530
Summary:        Simple python object store
1bf7530
1bf7530
License:        ISC
a3e46be
URL:            https://github.com/thp/minidb
a3e46be
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
1bf7530
BuildArch:      noarch
1bf7530
1bf7530
%description
1bf7530
minidb 2 makes it easy to store Python objects in a SQLite 3 database and
1bf7530
work with the data in an easy way with concise syntax.
1bf7530
1bf7530
%package -n python3-%{srcname}
1bf7530
Summary:        %{summary}
a3e46be
a3e46be
BuildRequires:  python3-devel
a3e46be
BuildRequires:  python3-setuptools
1a4e15f
BuildRequires:  python3-pytest
1bf7530
%{?python_provide:%python_provide python3-%{srcname}}
1bf7530
1bf7530
%description -n python3-%{srcname}
1bf7530
minidb 2 makes it easy to store Python objects in a SQLite 3 database and
1bf7530
work with the data in an easy way with concise syntax.
1bf7530
1bf7530
%prep
1bf7530
%autosetup -n %{srcname}-%{version}
1bf7530
1bf7530
%build
1bf7530
%py3_build
1bf7530
1bf7530
%install
1bf7530
%py3_install
1bf7530
1a4e15f
%check
944999a
%pytest -v test
1bf7530
1bf7530
%files -n python3-%{srcname}
944999a
%doc README.md
944999a
%license LICENSE
1bf7530
%{python3_sitelib}/%{srcname}.py*
1bf7530
%{python3_sitelib}/%{srcname}*.egg-info
1bf7530
%{python3_sitelib}/__pycache__/*
1bf7530
1bf7530
%changelog
8d75d92
%autochangelog
2713b14