2017-11-13 09:45:32 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-subgrab
|
|
|
|
#
|
2025-06-13 12:13:20 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2017-11-13 09:45:32 +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.
|
|
|
|
|
2018-12-04 14:08:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-11-13 09:45:32 +00:00
|
|
|
#
|
|
|
|
|
2018-12-04 14:08:03 +00:00
|
|
|
|
2025-06-13 12:13:20 +00:00
|
|
|
%bcond_without libalternatives
|
2017-11-13 09:45:32 +00:00
|
|
|
Name: python-subgrab
|
2020-06-11 04:11:55 +00:00
|
|
|
Version: 1.0.4
|
2017-11-13 09:45:32 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Script to download subtitles for media files
|
2018-12-04 14:08:03 +00:00
|
|
|
License: GPL-3.0-only
|
2017-11-13 09:45:32 +00:00
|
|
|
URL: https://github.com/RafayGhafoor/Subscene-Subtitle-Grabber
|
2020-06-11 04:11:55 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/subgrab/subgrab-%{version}.tar.gz
|
2025-06-13 12:13:20 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-11-13 09:45:32 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-13 12:13:20 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: alts
|
2017-11-13 09:45:32 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
2025-06-13 12:13:20 +00:00
|
|
|
Requires: alts
|
2017-11-13 09:45:32 +00:00
|
|
|
Requires: python-beautifulsoup4
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-requests
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A script that allows to download subtitles for TV-Series, Anime and Movies from
|
|
|
|
subscene and other sites.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n subgrab-%{version}
|
|
|
|
rm -rf subgrab.egg-info
|
|
|
|
sed -i 's/bs4/beautifulsoup4/g' setup.py
|
|
|
|
|
|
|
|
%build
|
2025-06-13 12:13:20 +00:00
|
|
|
%pyproject_wheel
|
2017-11-13 09:45:32 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-13 12:13:20 +00:00
|
|
|
%pyproject_install
|
2020-05-19 08:52:54 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/subgrab
|
2019-10-14 14:43:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
2017-11-13 09:45:32 +00:00
|
|
|
|
2025-06-13 12:13:20 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative subgrab
|
2020-05-19 08:52:54 +00:00
|
|
|
|
2017-11-13 09:45:32 +00:00
|
|
|
%files %{python_files}
|
2020-05-19 08:52:54 +00:00
|
|
|
%python_alternative %{_bindir}/subgrab
|
2025-06-13 12:13:20 +00:00
|
|
|
%{python_sitelib}/subgrab
|
|
|
|
%{python_sitelib}/subgrab-%{version}*-info
|
2017-11-13 09:45:32 +00:00
|
|
|
|
|
|
|
%changelog
|