%global srcname pysrt Name: python-%{srcname} Version: 1.1.2 Release: 13%{?dist} Summary: Library used to edit or create SubRip files License: GPLv3 URL: https://github.com/byroot/pysrt Source: https://github.com/byroot/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz # https://github.com/byroot/pysrt/issues/92 Patch0: %{name}-1.1.2-use_assertEqual.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools # Tests: BuildRequires: python3-chardet %global _description\ pysrt is a Python library used to edit or create SubRip files. %description %_description %package -n python3-%{srcname} Summary: %summary %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_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 %check %{__python3} setup.py test %files -n python3-%{srcname} %doc README.rst %license LICENCE.txt %{_bindir}/srt %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.1.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Juan Orti Alcaine - 1.1.2-12 - Add patch to fix unittests * Fri Jul 22 2022 Fedora Release Engineering - 1.1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.2-10 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.2-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 08 2020 Juan Orti Alcaine - 1.1.2-5 - BR: python3-setuptools * Wed Jul 29 2020 Fedora Release Engineering - 1.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.1.2-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 22 2020 Juan Orti Alcaine - 1.1.2-1 - Version 1.1.2 * Thu Oct 03 2019 Miro Hrončok - 1.1.1-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.1.1-10 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 09 2019 Miro Hrončok - 1.1.1-7 - Subpackage python2-pysrt has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.1.1-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 27 2018 Iryna Shcherbina - 1.1.1-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Aug 31 2017 Juan Orti Alcaine - 1.1.1-2 - Update Source URL - Remove shebang from libraries * Mon Aug 28 2017 Juan Orti Alcaine - 1.1.1-1 - Initial RPM release