%bcond_without tests %global srcname guessit Name: python-%{srcname} Version: 3.8.0 Release: 6%{?dist} Summary: Library to extract as much information as possible from a video filename # Automatically converted from old format: LGPLv3 - review is highly recommended. License: LGPL-3.0-only URL: https://guessit.readthedocs.org/ Source: https://github.com/guessit-io/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz # Disable some tests: https://github.com/guessit-io/guessit/issues/724 BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-pytest BuildRequires: python3-pytest-mock BuildRequires: python3-pytest-benchmark BuildRequires: python3-pytest-cov BuildRequires: pylint BuildRequires: python3-PyYAML BuildRequires: python3-dateutil BuildRequires: python3-babelfish >= 0.6.0 BuildRequires: python3-rebulk >= 3.1.0 %endif %global _description\ GuessIt is a python library that extracts as much information as possible from\ a video filename.\ \ It has a very powerful matcher that allows to guess properties from a video\ using its filename only. This matcher works with both movies and TV shows\ episodes. %description %_description %package -n python3-%{srcname} Summary: %summary %py_provides python3-%{srcname} Suggests: %{name}-doc = %{version}-%{release} %description -n python3-%{srcname} %_description %package doc Summary: Documentation for %{srcname} python library %description doc %_description %prep %autosetup -p1 -n %{srcname}-%{version} %build %py3_build %install %py3_install # Remove shebang from Python3 libraries for lib in `find %{buildroot}%{python3_sitelib} -name "*.py"`; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %if %{with tests} %check %pytest %endif %files -n python3-%{srcname} %license LICENSE %{_bindir}/%{srcname} %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %files doc %doc README.md AUTHORS.md CONTRIBUTING.md CHANGELOG.md docs %license LICENSE %changelog * Fri Jul 26 2024 Miroslav Suchý - 3.8.0-6 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 3.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 16 2024 Python Maint - 3.8.0-4 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 13 2024 Juan Orti Alcaine - 3.8.0-1 - Version 3.8.0 (rhbz#2254384) * Fri Jul 21 2023 Fedora Release Engineering - 3.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 10 2023 Python Maint - 3.7.1-2 - Rebuilt for Python 3.12 * Sat Feb 25 2023 Juan Orti Alcaine - 3.7.1-1 - Version 3.7.1 (RHBZ#2171201) * Fri Jan 20 2023 Fedora Release Engineering - 3.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Juan Orti Alcaine - 3.5.0-1 - Version 3.5.0 (RHBZ#2139558) * Fri Jul 22 2022 Fedora Release Engineering - 3.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.4.3-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 18 2022 Juan Orti Alcaine - 3.4.3-1 - Version 3.4.3 (#2020596) * Fri Jul 23 2021 Fedora Release Engineering - 3.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.3.1-3 - Rebuilt for Python 3.10 * Wed Jun 02 2021 Juan Orti Alcaine - 3.3.1-2 - Use py_provides and pytest macros * Wed Feb 10 2021 Juan Orti Alcaine - 3.3.1-1 - Version 3.3.1 (#1925753) * Wed Jan 27 2021 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 09 2021 Juan Orti Alcaine - 3.2.0-2 - Add BR: python3-pylint * Fri Jan 01 2021 Juan Orti Alcaine - 3.2.0-1 - Version 3.2.0 (#1910481) * Thu Oct 08 2020 Juan Orti Alcaine - 3.1.1-4 - BR: python3-setuptools * Wed Jul 29 2020 Fedora Release Engineering - 3.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 3.1.1-2 - Rebuilt for Python 3.9 * Sun May 17 2020 Juan Orti Alcaine - 3.1.1-1 - Version 3.1.1 * Thu Jan 30 2020 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 11 2019 Juan Orti Alcaine - 3.1.0-2 - Use automatic dependencies * Tue Sep 03 2019 Juan Orti Alcaine - 3.1.0-1 - Version 3.1.0 - Enable tests * Sun Sep 01 2019 Juan Orti Alcaine - 3.0.5-1 - Version 3.0.5 * Mon Aug 19 2019 Miro Hrončok - 2.1.4-12 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.1.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 09 2019 Miro Hrončok - 2.1.4-9 - Subpackage python2-guessit has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 2.1.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.1.4-7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Sep 01 2017 Juan Orti Alcaine - 2.1.4-5 - Install license in doc * Thu Aug 31 2017 Juan Orti Alcaine - 2.1.4-4 - Disable the tests - Build HTML docs - Reduce summary lenght - Remove shebangs from libraries * Wed Aug 30 2017 Juan Orti Alcaine - 2.1.4-3 - Add BR needed to run tests - Use an easier Source URL * Tue Aug 29 2017 Juan Orti Alcaine - 2.1.4-2 - Add BR: python2-dateutil * Mon Aug 28 2017 Juan Orti Alcaine - 2.1.4-1 - Initial package