8d79c18
%if 0%{?fedora} > 32
8d79c18
%global prompt_toolkit 3.0.0
8d79c18
%else
8d79c18
%global prompt_toolkit 2.0.6
8d79c18
%endif
8d79c18
07d9430
Summary:        Interactive CLI for MySQL Database with auto-completion and syntax highlighting
07d9430
Name:           mycli
bfb6478
Version:        1.24.1
bfb6478
Release:        1%{?dist}
07d9430
License:        BSD
15ff6e1
URL:            http://mycli.net
1be846c
Source0:        https://files.pythonhosted.org/packages/source/m/mycli/mycli-%{version}.tar.gz
cfad6a4
Patch0:         mycli-1.22.1-paramiko.patch
bfb6478
Patch1:         mycli-1.24.1-reqs.patch
cfad6a4
Patch2:         mycli-1.22.1-prompt-toolkit.patch
07d9430
BuildArch:      noarch
07d9430
BuildRequires:  python3-devel
07d9430
BuildRequires:  python3-setuptools
b5260be
Requires:       python3-cli-helpers >= 1.0.1
15ff6e1
Requires:       python3-click >= 4.1
1ccd5de
Requires:       python3-configobj >= 5.0.5
1ccd5de
Requires:       python3-cryptography => 1.0.0
bfb6478
Requires:       python3-pyaes
9a8c91f
Requires:       python3-pyperclip >= 1.8.0
1ccd5de
Requires:       python3-pygments >= 1.6
2e83854
Requires:       python3-PyMySQL >= 0.9.2
8d79c18
Requires:       python3-prompt-toolkit >= %{prompt_toolkit}
07d9430
Requires:       python3-setuptools
9a8c91f
Requires:       python3-sqlparse >= 0.3.0
3985f64
#BuildRequires for tests
3985f64
BuildRequires:  python3-mock
3985f64
BuildRequires:  python3-pytest
19b2bd7
BuildRequires:  %{py3_dist twine} >= 1.8.1
b5260be
BuildRequires:  python3-cli-helpers >= 1.0.1
3985f64
BuildRequires:  python3-click >= 4.1
3985f64
BuildRequires:  python3-configobj >= 5.0.5
3985f64
BuildRequires:  python3-cryptography => 1.0.0
cfad6a4
BuildRequires:  python3-paramiko
bfb6478
BuildRequires:  python3-pyaes
3985f64
BuildRequires:  python3-pygments >= 1.6
9a8c91f
BuildRequires:  python3-pyperclip >= 1.8.0
2e83854
BuildRequires:  python3-PyMySQL >= 0.9.2
8d79c18
BuildRequires:  python3-prompt-toolkit >= %{prompt_toolkit}
3985f64
BuildRequires:  python3-setuptools
9a8c91f
BuildRequires:  python3-sqlparse >= 0.3.0
07d9430
%description
07d9430
Nice interactive shell for MySQL Database with auto-completion and
07d9430
syntax highlighting.
07d9430
07d9430
%prep
21dfc0b
%setup -q
cfad6a4
%patch0 -p1 -b .paramiko
9a8c91f
%patch1 -p1 -b .reqs
cfad6a4
%if 0%{?fedora} < 33
cfad6a4
%patch2 -p1 -b .prompt
21dfc0b
%endif
15ff6e1
rm -rf mycli.egg-info
07d9430
07d9430
%build
07d9430
%{py3_build}
07d9430
07d9430
%install
07d9430
%{py3_install}
869dd72
rm -rf %{buildroot}%{python3_sitelib}/test
07d9430
3985f64
%check
43198d4
PYTHONPATH=build/lib/ py.test-3
3985f64
07d9430
%files
07d9430
%license LICENSE.txt
15ff6e1
%doc mycli/AUTHORS README.md mycli/SPONSORS
15ff6e1
%{_bindir}/mycli
15ff6e1
%{python3_sitelib}/mycli
12fecaa
%{python3_sitelib}/mycli-%{version}-py%{python3_version}.egg-info
07d9430
07d9430
%changelog
bfb6478
* Sun Mar 14 2021 Terje Rosten <terje.rosten@ntnu.no> - 1.24.1-1
bfb6478
- 1.24.1
bfb6478
91c3c31
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.23.2-2
91c3c31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
91c3c31
e2b1d4e
* Tue Jan 19 2021 Terje Rosten <terje.rosten@ntnu.no> - 1.23.2-1
e2b1d4e
- 1.23.2
e2b1d4e
9a8c91f
* Thu Jan 14 2021 Terje Rosten <terje.rosten@ntnu.no> - 1.23.0-1
9a8c91f
- 1.23.0
9a8c91f
- Adjust reqs to more sensible levels
9a8c91f
8aa70b4
* Sun Oct 11 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.22.2-1
8aa70b4
- 1.22.2
8aa70b4
0f7e7b3
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.1-2
0f7e7b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0f7e7b3
cfad6a4
* Sun Jul 26 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.22.1-1
cfad6a4
- 1.22.1
cfad6a4
21dfc0b
* Fri Jul 24 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.1-6
21dfc0b
- Make srpm to be identical on all branches and fix pymysql 0.10 issue
21dfc0b
24755f4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.21.1-5
24755f4
- Rebuilt for Python 3.9
24755f4
8d79c18
* Thu May 07 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.1-4
8d79c18
- Use prompt toolkit 3.0.0 on f33+
8d79c18
8d79c18
* Tue May 05 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.1-3
8d79c18
- Use sqlparse 0.3.0 on f32+
8d79c18
fd4919d
* Sun May 03 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.1-2
fd4919d
- Add patch to find default socket file
fd4919d
74b9c87
* Sun May 03 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.1-1
74b9c87
- 1.21.1
74b9c87
869dd72
* Sun May 03 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.21.0-1
869dd72
- 1.21.0
869dd72
9a54c19
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.1-3
9a54c19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9a54c19
1c8f6fb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.20.1-2
1c8f6fb
- Rebuilt for Python 3.8.0rc1 (#1748018)
1c8f6fb
85db523
* Sun Aug 25 2019 Terje Rosten <terje.rosten@ntnu.no> - 1.20.1-1
85db523
- 1.20.1
85db523
f3fe57d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.20.0-4
f3fe57d
- Rebuilt for Python 3.8
f3fe57d
43198d4
* Wed Aug 14 2019 Terje Rosten <terje.rosten@ntnu.no> - 1.20.0-3
43198d4
- Don't mask failures
43198d4
7eb3c70
* Wed Aug 14 2019 Terje Rosten <terje.rosten@ntnu.no> - 1.20.0-2
7eb3c70
- Add sqlparse 0.2.4 patch from Dick Marinus, thanks!
7eb3c70
c54aa5f
* Tue Aug 13 2019 Terje Rosten <terje.rosten@ntnu.no> - 1.20.0-1
c54aa5f
- 1.20.0
c54aa5f
a17ae6f
* Fri Aug 09 2019 Terje Rosten <terje.rosten@ntnu.no> - 1.19.0-4
a17ae6f
- Fix build
a17ae6f
d90df1f
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-3
d90df1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d90df1f
402e65f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
402e65f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
402e65f
abcadca
* Mon Nov 19 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.19.0-1
abcadca
- 1.19.0
abcadca
9b85a30
* Mon Nov 12 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.18.2-2
9b85a30
- Fix prompt_toolkit 1 patch, update by Dick
9b85a30
1f8a787
* Wed Nov 07 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.18.2-1
1f8a787
- 1.18.2
1f8a787
- Add patch for compat with prompt_toolkit 1, thanks to Dick Marinus
1f8a787
- Add patch to work with prompt_toolkit > 2.0.6
1f8a787
6273635
* Fri Oct 19 2018 Carl George <carl@george.computer> - 1.18.0-2
6273635
- Add patch0 for prompt_toolkit 2 compatibility
6273635
2e83854
* Sun Sep 30 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.18.0-1
2e83854
- 1.18.0
2e83854
9756155
* Sat Jul 14 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.17.0-4
9756155
- Tests started to fail again
9756155
049edef
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-3
049edef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
049edef
f4bd6c7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.17.0-2
f4bd6c7
- Rebuilt for Python 3.7
f4bd6c7
d743cc1
* Tue Jun 05 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.17.0-1
d743cc1
- 1.17.0
d743cc1
be6abba
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-2
be6abba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be6abba
b5260be
* Thu Jan 04 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.16.0-1
b5260be
- 1.16.0
b5260be
9f4f618
* Sun Oct 01 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.13.1-1
9f4f618
- 1.13.1
9f4f618
c887015
* Sun Sep 24 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.13.0-2
c887015
- Skip tests on older releases
c887015
3985f64
* Sat Sep 23 2017 Dick Marinus <dick@mrns.nl> - 1.13.0-1
3985f64
- 1.13.0
3985f64
9505f2e
* Sat Sep 02 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.12.1-2
9505f2e
- Fix date
9505f2e
- Remove sedding
9505f2e
9505f2e
* Thu Aug 31 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.12.1-1
1ccd5de
- 1.12.1
1ccd5de
- Adjust reqs.
1ccd5de
- Remove all patches
1ccd5de
0fad4ef
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
0fad4ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0fad4ef
607993f
* Sat May 20 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.10.0-2
607993f
- Add patch from Dick Marinus to fix sqlparse issue
607993f
3f331d7
* Sat May 06 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.10.0-1
3f331d7
- 1.10.0
3f331d7
8cacf7d
* Tue Feb 14 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.8.1-4
8cacf7d
- Add patch to work with sqlparse >= 0.2.2 (rhbz#1422211)
8cacf7d
b95a88d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-3
b95a88d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b95a88d
967a98d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-2
967a98d
- Rebuild for Python 3.6
967a98d
7b5a2d5
* Tue Oct 25 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.8.1-1
7b5a2d5
- 1.8.1
7b5a2d5
9cd8775
* Sat Sep 17 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.8.0-2
9cd8775
- Add patch from Dick Marinus to fix issue with newer sqlparse
9cd8775
1be846c
* Tue Aug 09 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.8.0-1
1be846c
- 1.8.0
1be846c
fc3868b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
fc3868b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fc3868b
15ff6e1
* Fri May 13 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.7.0-1
15ff6e1
- 1.7.0
15ff6e1
3001705
* Sun Mar 27 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.6.0-1
3001705
- 1.6.0
3001705
d81ddf8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-5
d81ddf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d81ddf8
07d9430
* Thu Jan 07 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.5.2-4
07d9430
- Add patch to enable prompt_toolkit 0.57 support.
07d9430
07d9430
* Thu Jan 07 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.5.2-3
07d9430
- Remove configobj patch
07d9430
- Use name macro
07d9430
07d9430
* Sun Jan 03 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.5.2-2
07d9430
- remove egginfo
07d9430
- fix deps and summary
07d9430
07d9430
* Sat Jan 02 2016 Terje Rosten <terje.rosten@ntnu.no> - 1.5.2-1
07d9430
- initial package
07d9430