## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autochangelog ## END: Set by rpmautospec Name: python-pysrt Version: 1.1.2 Release: 21%{?dist} Summary: Library used to edit or create SubRip files # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: https://github.com/byroot/pysrt Source: %{url}/archive/v%{version}/pysrt-%{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-pytest BuildRequires: python3-chardet %global _description %{expand: pysrt is a Python library used to edit or create SubRip files.} %description %_description %package -n python3-pysrt Summary: %{summary} %description -n python3-pysrt %_description %prep %autosetup -p1 -n pysrt-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pysrt # 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-pysrt -f %{pyproject_files} %doc README.rst %license LICENCE.txt %{_bindir}/srt %changelog ## START: Generated by rpmautospec * Thu Sep 05 2024 Juan Orti Alcaine - 1.1.2-22 - Use %%pytest macro and modernize spec file * Mon Jul 29 2024 Miroslav Suchý - 1.1.2-21 - convert GPLv3 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.1.2-19 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.1.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.1.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.1.2-15 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Juan Orti Alcaine - 1.1.2-13 - Add patch to fix unittests * Fri Jul 22 2022 Fedora Release Engineering - 1.1.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.2-11 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 05 2022 Juan Orti Alcaine - 1.1.2-9 - Update spec file format * 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 - Add BuildRequires: 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 * 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 * Fri Sep 01 2017 Juan Orti Alcaine - 1.1.1-2 - Remove trailing spaces * Fri Sep 01 2017 Juan Orti Alcaine - 1.1.1-1 - Initial import (#1486026). ## END: Generated by rpmautospec