%global srcname guessit Name: python-%{srcname} Version: 3.3.1 Release: 4%{?dist} Summary: Library to extract as much information as possible from a video filename License: LGPLv3 URL: https://guessit.readthedocs.org/ Source: https://github.com/guessit-io/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest-runner # Tests BuildRequires: python3-pytest >= 3.3 BuildRequires: python3-pytest-benchmark BuildRequires: python3-PyYAML BuildRequires: python3-dateutil BuildRequires: python3-babelfish BuildRequires: python3-rebulk >= 3 BuildRequires: python3-pylint BuildRequires: mailcap %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 -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 %check %pytest %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 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