|
|
0bdca26 |
%global srcname subliminal
|
|
|
0bdca26 |
|
|
|
0bdca26 |
Name: python-%{srcname}
|
|
|
b742543 |
Version: 2.1.0
|
|
|
c550a63 |
Release: 15%{?dist}
|
|
|
0bdca26 |
Summary: Python library to search and download subtitles
|
|
|
0bdca26 |
License: MIT
|
|
|
0bdca26 |
URL: https://github.com/Diaoul/subliminal
|
|
|
0bdca26 |
Source: https://github.com/Diaoul/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
11f6426 |
# Don't download sphinx interlink inventory files, instead use local ones (for those which are packaged)
|
|
|
11f6426 |
Patch0: python-subliminal_doc-inventories.patch
|
|
|
0bdca26 |
BuildArch: noarch
|
|
|
4e5d384 |
BuildRequires: make
|
|
|
54c7b94 |
BuildRequires: python3-devel
|
|
|
8ec60b0 |
BuildRequires: python3-setuptools
|
|
|
11f6426 |
# Doc building
|
|
|
0486dd3 |
BuildRequires: python3-appdirs
|
|
|
0486dd3 |
BuildRequires: python3-docs
|
|
|
0486dd3 |
BuildRequires: python3-sphinx
|
|
|
19ca70b |
BuildRequires: python3-sphinx_rtd_theme
|
|
|
0486dd3 |
BuildRequires: python3-babelfish
|
|
|
0486dd3 |
BuildRequires: python3-guessit
|
|
|
0486dd3 |
BuildRequires: python3-sphinxcontrib-programoutput
|
|
|
0486dd3 |
BuildRequires: python3-beautifulsoup4
|
|
|
0486dd3 |
BuildRequires: python3-click
|
|
|
11f6426 |
BuildRequires: python-guessit-doc
|
|
|
0486dd3 |
BuildRequires: python3-rarfile
|
|
|
0486dd3 |
BuildRequires: python3-stevedore
|
|
|
0486dd3 |
BuildRequires: python3-enzyme
|
|
|
0486dd3 |
BuildRequires: python3-pysrt
|
|
|
0486dd3 |
BuildRequires: python3-dogpile-cache
|
|
|
8d2b5f8 |
BuildRequires: python3-rebulk
|
|
|
0bdca26 |
# Tests disabled
|
|
|
0bdca26 |
#BuildRequires: python3-pytest-runner
|
|
|
0bdca26 |
#BuildRequires: python3-pytz
|
|
|
0bdca26 |
#BuildRequires: python3-rarfile
|
|
|
0bdca26 |
#BuildRequires: python3-appdirs
|
|
|
0bdca26 |
#BuildRequires: python3-six
|
|
|
0bdca26 |
#BuildRequires: python3-pysrt
|
|
|
0bdca26 |
#BuildRequires: python3-pbr
|
|
|
0bdca26 |
#BuildRequires: python3-enzyme
|
|
|
0bdca26 |
#BuildRequires: python3-stevedore
|
|
|
0bdca26 |
#BuildRequires: python3-dogpile-cache
|
|
|
0bdca26 |
#BuildRequires: python3-sympy
|
|
|
0bdca26 |
#BuildRequires: python3-vcrpy
|
|
|
0bdca26 |
#BuildRequires: python3-pytest-pep8
|
|
|
0bdca26 |
#BuildRequires: python3-pytest-flakes
|
|
|
0bdca26 |
#BuildRequires: python3-pytest-cov
|
|
|
11f6426 |
#BuildRequires: python3-guessit
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%global _description\
|
|
|
0bdca26 |
Subliminal is a Python library to search and download subtitles.\
|
|
|
0bdca26 |
It comes with an easy to use yet powerful CLI suitable for direct use or\
|
|
|
0bdca26 |
cron jobs.\
|
|
|
0bdca26 |
\
|
|
|
0bdca26 |
Subliminal uses multiple providers to give users a vast choice and have\
|
|
|
0bdca26 |
a better chance to find the best matching subtitles. Current supported\
|
|
|
0bdca26 |
providers are:\
|
|
|
0bdca26 |
\
|
|
|
0bdca26 |
- Addic7ed\
|
|
|
0bdca26 |
- LegendasTV\
|
|
|
0bdca26 |
- NapiProjekt\
|
|
|
0bdca26 |
- OpenSubtitles\
|
|
|
0bdca26 |
- Podnapisi\
|
|
|
0bdca26 |
- Shooter\
|
|
|
0bdca26 |
- TheSubDB\
|
|
|
0bdca26 |
- TvSubtitles
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%description %_description
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%package -n python3-%{srcname}
|
|
|
0bdca26 |
Summary: %summary
|
|
|
0bdca26 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
0bdca26 |
Suggests: %{name}-doc
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%description -n python3-%{srcname} %_description
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%package doc
|
|
|
0bdca26 |
Summary: %summary
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%description doc %_description
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%prep
|
|
|
11f6426 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%build
|
|
|
0bdca26 |
%py3_build
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%install
|
|
|
0bdca26 |
%py3_install
|
|
|
0bdca26 |
|
|
|
11f6426 |
pushd docs
|
|
|
11f6426 |
# Add folder containing subliminal script to PATH
|
|
|
0486dd3 |
export SPHINXBUILD=sphinx-build-3
|
|
|
11f6426 |
PYTHONPATH=%{buildroot}%{python3_sitelib} PATH=$PATH:%{buildroot}%{_bindir} %make_build html
|
|
|
11f6426 |
PYTHONPATH=%{buildroot}%{python3_sitelib} PATH=$PATH:%{buildroot}%{_bindir} %make_build text
|
|
|
11f6426 |
PYTHONPATH=%{buildroot}%{python3_sitelib} PATH=$PATH:%{buildroot}%{_bindir} %make_build man
|
|
|
11f6426 |
find . -name .buildinfo -type f -delete
|
|
|
11f6426 |
popd
|
|
|
11f6426 |
install -D -m 0644 docs/_build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
|
|
|
11f6426 |
|
|
|
0bdca26 |
%check
|
|
|
0bdca26 |
# Tests disabled because they connect to online services
|
|
|
0bdca26 |
#%%{__python3} setup.py test
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%files -n python3-%{srcname}
|
|
|
0bdca26 |
%license LICENSE
|
|
|
0bdca26 |
%{_bindir}/subliminal
|
|
|
0bdca26 |
%{python3_sitelib}/%{srcname}
|
|
|
0bdca26 |
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%files doc
|
|
|
11f6426 |
%doc README.rst docs/_build/html docs/_build/text
|
|
|
0bdca26 |
%license LICENSE
|
|
|
11f6426 |
%{_mandir}/man1/%{srcname}.1*
|
|
|
0bdca26 |
|
|
|
0bdca26 |
%changelog
|
|
|
c550a63 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-15
|
|
|
c550a63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
c550a63 |
|
|
|
267b41f |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-14
|
|
|
267b41f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
267b41f |
|
|
|
86095ba |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-13
|
|
|
86095ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
86095ba |
|
|
|
5229a9f |
* Mon Jul 10 2023 Python Maint <python-maint@redhat.com> - 2.1.0-12
|
|
|
5229a9f |
- Rebuilt for Python 3.12
|
|
|
5229a9f |
|
|
|
2353ead |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-11
|
|
|
2353ead |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
2353ead |
|
|
|
380f24a |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
|
|
|
380f24a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
380f24a |
|
|
|
574c655 |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.1.0-9
|
|
|
574c655 |
- Rebuilt for Python 3.11
|
|
|
574c655 |
|
|
|
a96b046 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
|
|
|
a96b046 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
a96b046 |
|
|
|
5acfb43 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
|
|
|
5acfb43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
5acfb43 |
|
|
|
7f933ef |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.0-6
|
|
|
7f933ef |
- Rebuilt for Python 3.10
|
|
|
7f933ef |
|
|
|
ff1e327 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
ff1e327 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
ff1e327 |
|
|
|
8ec60b0 |
* Thu Oct 08 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.1.0-4
|
|
|
8ec60b0 |
- BR: python3-setuptools
|
|
|
8ec60b0 |
|
|
|
d83fe42 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
d83fe42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d83fe42 |
|
|
|
acf1e01 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
|
|
|
acf1e01 |
- Rebuilt for Python 3.9
|
|
|
acf1e01 |
|
|
|
b742543 |
* Sun May 17 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.1.0-1
|
|
|
b742543 |
- Version 2.1.0
|
|
|
b742543 |
|
|
|
8d2b5f8 |
* Fri Jan 31 2020 Juan Orti Alcaine <jortialc@redhat.com> - 2.0.5-15
|
|
|
8d2b5f8 |
- BR: python3-rebulk
|
|
|
8d2b5f8 |
- Not needed to enable python dependency generator explicitly
|
|
|
8d2b5f8 |
|
|
|
fee4409 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-14
|
|
|
fee4409 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
fee4409 |
|
|
|
94c5fea |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.5-13
|
|
|
94c5fea |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
94c5fea |
|
|
|
a2f807d |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.5-12
|
|
|
a2f807d |
- Rebuilt for Python 3.8
|
|
|
a2f807d |
|
|
|
731c170 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-11
|
|
|
731c170 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
731c170 |
|
|
|
cf90b48 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-10
|
|
|
cf90b48 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
cf90b48 |
|
|
|
95fb167 |
* Fri Dec 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.5-9
|
|
|
95fb167 |
- Enable python dependency generator
|
|
|
95fb167 |
|
|
|
0486dd3 |
* Fri Dec 28 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.5-8
|
|
|
0486dd3 |
- Subpackage python2-subliminal has been removed
|
|
|
0486dd3 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
0486dd3 |
|
|
|
3d89b25 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-7
|
|
|
3d89b25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
3d89b25 |
|
|
|
a3b2137 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.5-6
|
|
|
a3b2137 |
- Rebuilt for Python 3.7
|
|
|
a3b2137 |
|
|
|
2c20b31 |
* Sun Jun 10 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.0.5-5
|
|
|
2c20b31 |
- Add rarfile dependency
|
|
|
2c20b31 |
|
|
|
278b449 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.5-4
|
|
|
278b449 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
278b449 |
|
|
|
11f6426 |
* Tue Sep 05 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.0.5-3
|
|
|
11f6426 |
- Build docs
|
|
|
11f6426 |
|
|
|
0bdca26 |
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.0.5-2
|
|
|
0bdca26 |
- Change Source URL
|
|
|
0bdca26 |
- Escape macros in comments
|
|
|
0bdca26 |
- Improve description
|
|
|
0bdca26 |
|
|
|
0bdca26 |
* Tue Aug 29 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 2.0.5-1
|
|
|
0bdca26 |
- Initial RPM release
|