%global pypi_name litecli
Name: %{pypi_name}
Version: 1.9.0
Release: 4%{?dist}
Summary: CLI for SQLite databases
License: BSD
URL: https://github.com/dbcli/litecli
Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(cli-helpers)
BuildRequires: python3dist(click)
BuildRequires: python3dist(configobj)
BuildRequires: python3dist(prompt-toolkit)
BuildRequires: python3dist(pygments)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(sqlparse)
BuildRequires: python3dist(mock)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pytest-cov)
Requires: python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description
litecli is a command-line client for SQLite databases that has auto-completion
and syntax highlighting.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
litecli is a command-line client for SQLite databases that has auto-completion
and syntax highlighting.
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%check
%pytest -v tests
%files
%{_bindir}/litecli
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.9.0-3
- Rebuilt for Python 3.12
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Aug 19 2022 Fabian Affolter <mail@fabian-affolter.ch> - 1.9.0-1
- Update to latest upstream release 1.9.0 (closes #2094169, closes #2098742)
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.8.0-2
- Rebuilt for Python 3.11
* Wed Apr 06 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.8.0-1
- Update to 1.8.0
Fixes: rhbz#2039405
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Aug 25 2021 Fabian Affolter <mail@fabian-affolter.ch> - 1.6.0-1%{?dist}
- Update to latest upstream release 1.6.0 (rhbz#1939254)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.0-3
- Rebuilt for Python 3.10
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Dec 12 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.5.0-1
- Update to latest upstream release 1.5.0 (#1906967)
* Sun Oct 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.4.1-2
- Update check section
* Sun Oct 11 2020 José Lemos Neto <LemosJoseX@protonmail.com> - 1.4.1-1
- Update to version 1.4.1
* Tue Jul 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.2-1
- Initial package for Fedora