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