2016-04-26 22:12:17 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-subliminal
|
|
|
|
#
|
2024-06-27 13:58:20 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-04-26 22:12:17 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-14 14:44:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-26 22:12:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-06-27 13:58:20 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2016-04-26 22:12:17 +00:00
|
|
|
Name: python-subliminal
|
2024-06-27 13:58:20 +00:00
|
|
|
Version: 2.2.0
|
2016-04-26 22:12:17 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python library to search and download subtitles
|
|
|
|
License: MIT
|
2019-10-14 14:44:02 +00:00
|
|
|
URL: https://github.com/Diaoul/subliminal
|
2017-07-13 11:43:39 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz
|
2024-06-27 13:58:20 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-07-13 11:43:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools >= 18.0.1}
|
2024-06-27 13:58:20 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-10-14 14:44:02 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-06-27 13:58:20 +00:00
|
|
|
Requires: python-babelfish >= 0.6.1
|
2016-04-26 22:12:17 +00:00
|
|
|
Requires: python-beautifulsoup4 >= 4.4.0
|
2024-06-27 13:58:20 +00:00
|
|
|
Requires: python-chardet >= 5.0
|
|
|
|
Requires: python-click >= 8.0
|
|
|
|
Requires: python-click-option-group >= 0.5.6
|
|
|
|
Requires: python-dogpile.cache >= 1.0
|
|
|
|
Requires: python-enzyme >= 0.5.0
|
2020-05-02 12:20:39 +00:00
|
|
|
Requires: python-guessit >= 3.0.0
|
2024-06-27 13:58:20 +00:00
|
|
|
Requires: python-platformdirs >= 4.2
|
|
|
|
Requires: python-pysubs2 >= 1.7
|
2016-04-26 22:12:17 +00:00
|
|
|
Requires: python-rarfile >= 2.7
|
|
|
|
Requires: python-requests >= 2.7.0
|
2024-06-27 13:58:20 +00:00
|
|
|
Requires: python-srt >= 3.5
|
|
|
|
Requires: python-stevedore >= 3.0
|
|
|
|
Requires: python-tomli >= 2
|
2020-05-19 08:52:53 +00:00
|
|
|
Requires(post): update-alternatives
|
2024-06-27 13:58:20 +00:00
|
|
|
Requires(postun): update-alternatives
|
2016-04-26 22:12:17 +00:00
|
|
|
Recommends: python-colorlog >= 2.6.0
|
2016-04-26 22:13:35 +00:00
|
|
|
Provides: subliminal = %{version}
|
|
|
|
Obsoletes: subliminal < %{version}
|
2020-05-19 08:52:53 +00:00
|
|
|
BuildArch: noarch
|
2017-07-13 11:43:39 +00:00
|
|
|
%python_subpackages
|
2016-04-26 22:12:17 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Subliminal is a python library to search and download subtitles.
|
|
|
|
It comes with an easy to use CLI suitable for direct use or cron jobs.
|
|
|
|
|
|
|
|
%prep
|
2020-05-02 12:20:39 +00:00
|
|
|
%autosetup -n subliminal-%{version}
|
2016-04-26 22:12:17 +00:00
|
|
|
|
|
|
|
%build
|
2024-06-27 13:58:20 +00:00
|
|
|
%pyproject_wheel
|
2016-04-26 22:12:17 +00:00
|
|
|
|
|
|
|
%install
|
2024-06-27 13:58:20 +00:00
|
|
|
%pyproject_install
|
2020-05-19 08:52:53 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/subliminal
|
2019-10-14 14:44:02 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-06-13 21:32:59 +00:00
|
|
|
|
2024-06-27 13:58:20 +00:00
|
|
|
%check
|
|
|
|
|
2020-05-19 08:52:53 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative subliminal
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative subliminal
|
|
|
|
|
2017-07-13 11:43:39 +00:00
|
|
|
%files %{python_files}
|
2019-10-14 14:44:02 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc HISTORY.rst README.rst
|
2020-05-19 08:52:53 +00:00
|
|
|
%python_alternative %{_bindir}/subliminal
|
2017-07-13 11:43:39 +00:00
|
|
|
%{python_sitelib}/subliminal
|
2024-06-27 13:58:20 +00:00
|
|
|
%{python_sitelib}/subliminal-%{version}.dist-info
|
2016-04-26 22:12:17 +00:00
|
|
|
|
|
|
|
%changelog
|