|
|
aaf6e3f |
%global pypi_name pgcli
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
Name: %{pypi_name}
|
|
|
aaf6e3f |
Version: 3.0.0
|
|
|
bff6d13 |
Release: 4%{?dist}
|
|
|
aaf6e3f |
Summary: CLI for Postgres Database. With auto-completion and syntax highlighting
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
License: BSD
|
|
|
aaf6e3f |
URL: http://pgcli.com
|
|
|
aaf6e3f |
Source0: %{pypi_source}
|
|
|
aaf6e3f |
BuildArch: noarch
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
BuildRequires: python3-devel
|
|
|
aaf6e3f |
BuildRequires: python3dist(cli-helpers) >= 1.2
|
|
|
aaf6e3f |
BuildRequires: python3dist(click) >= 4.1
|
|
|
aaf6e3f |
BuildRequires: python3dist(configobj) >= 5.0.6
|
|
|
aaf6e3f |
BuildRequires: python3dist(humanize) >= 0.5.1
|
|
|
aaf6e3f |
#BuildRequires: python3dist(keyring) >= 12.2
|
|
|
aaf6e3f |
BuildRequires: python3dist(prompt-toolkit)
|
|
|
aaf6e3f |
BuildRequires: python3dist(psycopg2) >= 2.8
|
|
|
aaf6e3f |
BuildRequires: python3dist(pygments) >= 2
|
|
|
aaf6e3f |
BuildRequires: python3dist(setproctitle) >= 1.1.9
|
|
|
aaf6e3f |
BuildRequires: python3dist(setuptools)
|
|
|
aaf6e3f |
BuildRequires: python3dist(sqlparse)
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
Requires: python3dist(cli-helpers) >= 1.2
|
|
|
aaf6e3f |
Requires: python3dist(click) >= 4.1
|
|
|
aaf6e3f |
Requires: python3dist(configobj) >= 5.0.6
|
|
|
aaf6e3f |
Requires: python3dist(humanize) >= 0.5.1
|
|
|
aaf6e3f |
#Requires: python3dist(keyring) >= 12.2
|
|
|
aaf6e3f |
Requires: python3dist(prompt-toolkit)
|
|
|
aaf6e3f |
Requires: python3dist(psycopg2) >= 2.8
|
|
|
aaf6e3f |
Requires: python3dist(pygments) >= 2
|
|
|
aaf6e3f |
Requires: python3dist(setproctitle) >= 1.1.9
|
|
|
aaf6e3f |
Requires: python3dist(sqlparse)
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
aaf6e3f |
|
|
|
1ae1878 |
#BuildRequires for tests
|
|
|
1ae1878 |
BuildRequires: python3dist(pytest) >= 2.7.0
|
|
|
1ae1878 |
BuildRequires: python3dist(pgspecial) >= 1.11.8
|
|
|
1ae1878 |
BuildRequires: python3dist(click) >= 4.1
|
|
|
1ae1878 |
BuildRequires: python3dist(pygments) >= 2.0
|
|
|
1ae1878 |
BuildRequires: python3dist(prompt-toolkit)
|
|
|
1ae1878 |
BuildRequires: python3dist(psycopg2) >= 2.8
|
|
|
1ae1878 |
BuildRequires: python3dist(sqlparse) >= 0.3.0
|
|
|
1ae1878 |
BuildRequires: python3dist(configobj) >= 5.0.6
|
|
|
1ae1878 |
BuildRequires: python3dist(humanize) => 0.5.1
|
|
|
1ae1878 |
BuildRequires: python3dist(cli-helpers) >= 1.2.0
|
|
|
1ae1878 |
|
|
|
1ae1878 |
BuildRequires: python3dist(setproctitle) >= 1.1.9
|
|
|
1ae1878 |
BuildRequires: python3dist(mock) >= 1.0.1
|
|
|
1ae1878 |
BuildRequires: python3dist(behave) >= 1.2.4
|
|
|
1ae1878 |
BuildRequires: python3dist(pexpect) >= 3.3
|
|
|
1ae1878 |
BuildRequires: python3dist(keyring) >= 11.0.0
|
|
|
1ae1878 |
|
|
|
aaf6e3f |
%description
|
|
|
aaf6e3f |
CLI for Postgres Database. With auto-completion and syntax highlighting
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
%prep
|
|
|
aaf6e3f |
%autosetup
|
|
|
aaf6e3f |
# Remove bundled egg-info
|
|
|
aaf6e3f |
rm -rf %{pypi_name}.egg-info
|
|
|
bff6d13 |
sed -i 's#"prompt_toolkit>=.*"#"prompt_toolkit >= 2.0.6"#' setup.py
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
%build
|
|
|
aaf6e3f |
%py3_build
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
%install
|
|
|
aaf6e3f |
%py3_install
|
|
|
aaf6e3f |
|
|
|
1ae1878 |
%check
|
|
|
1ae1878 |
PYTHONPATH=build/lib/ py.test-3
|
|
|
1ae1878 |
|
|
|
aaf6e3f |
%files
|
|
|
aaf6e3f |
%license LICENSE.txt
|
|
|
aaf6e3f |
%doc README.rst changelog.rst
|
|
|
aaf6e3f |
%{_bindir}/%{pypi_name}
|
|
|
aaf6e3f |
%{python3_sitelib}/%{pypi_name}
|
|
|
aaf6e3f |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
aaf6e3f |
|
|
|
aaf6e3f |
%changelog
|
|
|
bff6d13 |
* Tue Jul 07 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.0-4
|
|
|
bff6d13 |
- lower requirements to prompt_toolkit 2.0.6 +
|
|
|
bff6d13 |
|
|
|
1ae1878 |
* Tue Jun 2 2020 Dick Marinus <dick@mrns.nl> - 3.0.0-3
|
|
|
1ae1878 |
- Add tests
|
|
|
1ae1878 |
|
|
|
1652b43 |
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 3.0.0-2
|
|
|
1652b43 |
- Rebuilt for Python 3.9
|
|
|
1652b43 |
|
|
|
aaf6e3f |
* Mon May 04 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.0-1
|
|
|
aaf6e3f |
- Initial package.
|
|
|
1ae1878 |
- fix autosetup macro usage
|