15
0
forked from pool/python-gTTS

Accepting request 809271 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809271
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=12
This commit is contained in:
Tomáš Chvátal
2020-05-27 10:05:51 +00:00
committed by Git OBS Bridge
parent abd4d5a471
commit bdec915465
2 changed files with 15 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ Requires: python-gTTS-token >= 1.1.3
Requires: python-requests
Requires: python-setuptools
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -61,16 +63,23 @@ sentences where the speech would naturally pause.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/gtts-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# tests are sadly mostly online
#%%pytest
%post
%python_install_alternative gtts-cli
%postun
%python_uninstall_alternative gtts-cli
%files %{python_files}
%doc CHANGELOG.rst README.md
%license LICENSE
%python3_only %{_bindir}/gtts-cli
%python_alternative %{_bindir}/gtts-cli
%{python_sitelib}/*
%changelog