|
|
6352054 |
%global srcname pysrt
|
|
|
6352054 |
|
|
|
1705bbb |
Name: python-%{srcname}
|
|
|
1705bbb |
Version: 1.1.2
|
|
|
b021f6d |
Release: 17%{?dist}
|
|
|
1705bbb |
Summary: Library used to edit or create SubRip files
|
|
|
1705bbb |
License: GPLv3
|
|
|
1705bbb |
URL: https://github.com/byroot/pysrt
|
|
|
1705bbb |
Source: https://github.com/byroot/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
|
65844da |
# https://github.com/byroot/pysrt/issues/92
|
|
|
65844da |
Patch0: %{name}-1.1.2-use_assertEqual.patch
|
|
|
1705bbb |
BuildArch: noarch
|
|
|
1705bbb |
BuildRequires: python3-devel
|
|
|
1705bbb |
BuildRequires: python3-setuptools
|
|
|
1705bbb |
# Tests:
|
|
|
1705bbb |
BuildRequires: python3-chardet
|
|
|
6352054 |
|
|
|
6352054 |
%global _description\
|
|
|
6352054 |
pysrt is a Python library used to edit or create SubRip files.
|
|
|
6352054 |
|
|
|
6352054 |
%description %_description
|
|
|
6352054 |
|
|
|
6352054 |
%package -n python3-%{srcname}
|
|
|
1705bbb |
Summary: %summary
|
|
|
6352054 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
6352054 |
|
|
|
6352054 |
%description -n python3-%{srcname} %_description
|
|
|
6352054 |
|
|
|
6352054 |
%prep
|
|
|
65844da |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
6352054 |
|
|
|
6352054 |
%build
|
|
|
6352054 |
%py3_build
|
|
|
6352054 |
|
|
|
6352054 |
%install
|
|
|
6352054 |
%py3_install
|
|
|
6352054 |
# Remove shebang from Python3 libraries
|
|
|
6352054 |
for lib in `find %{buildroot}%{python3_sitelib} -name "*.py"`; do
|
|
|
6352054 |
sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
|
|
|
6352054 |
touch -r $lib $lib.new &&
|
|
|
6352054 |
mv $lib.new $lib
|
|
|
6352054 |
done
|
|
|
6352054 |
|
|
|
6352054 |
%check
|
|
|
6352054 |
%{__python3} setup.py test
|
|
|
6352054 |
|
|
|
6352054 |
%files -n python3-%{srcname}
|
|
|
6352054 |
%doc README.rst
|
|
|
6352054 |
%license LICENCE.txt
|
|
|
6352054 |
%{_bindir}/srt
|
|
|
6352054 |
%{python3_sitelib}/%{srcname}
|
|
|
6352054 |
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
|
|
6352054 |
|
|
|
6352054 |
%changelog
|
|
|
b021f6d |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-17
|
|
|
b021f6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
b021f6d |
|
|
|
d660ba7 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-16
|
|
|
d660ba7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
d660ba7 |
|
|
|
079ad71 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-15
|
|
|
079ad71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
079ad71 |
|
|
|
d817da7 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.1.2-14
|
|
|
d817da7 |
- Rebuilt for Python 3.12
|
|
|
d817da7 |
|
|
|
ef44ea5 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-13
|
|
|
ef44ea5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
ef44ea5 |
|
|
|
65844da |
* Wed Jan 11 2023 Juan Orti Alcaine <jortialc@redhat.com> - 1.1.2-12
|
|
|
65844da |
- Add patch to fix unittests
|
|
|
65844da |
|
|
|
61b37d8 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-11
|
|
|
61b37d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
61b37d8 |
|
|
|
f67a998 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.2-10
|
|
|
f67a998 |
- Rebuilt for Python 3.11
|
|
|
f67a998 |
|
|
|
5e0d147 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-9
|
|
|
5e0d147 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
5e0d147 |
|
|
|
18da43a |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
|
|
|
18da43a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
18da43a |
|
|
|
06680f6 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.2-7
|
|
|
06680f6 |
- Rebuilt for Python 3.10
|
|
|
06680f6 |
|
|
|
3664bd5 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-6
|
|
|
3664bd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
3664bd5 |
|
|
|
fa0d6a7 |
* Thu Oct 08 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.1.2-5
|
|
|
fa0d6a7 |
- BR: python3-setuptools
|
|
|
fa0d6a7 |
|
|
|
069cf1e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
|
|
|
069cf1e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
069cf1e |
|
|
|
2f5054b |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-3
|
|
|
2f5054b |
- Rebuilt for Python 3.9
|
|
|
2f5054b |
|
|
|
47519bb |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
|
|
|
47519bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
47519bb |
|
|
|
590b00f |
* Wed Jan 22 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.1.2-1
|
|
|
590b00f |
- Version 1.1.2
|
|
|
590b00f |
|
|
|
326c714 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-11
|
|
|
326c714 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
326c714 |
|
|
|
231b973 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-10
|
|
|
231b973 |
- Rebuilt for Python 3.8
|
|
|
231b973 |
|
|
|
ed53127 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
|
|
|
ed53127 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ed53127 |
|
|
|
1ec5d8e |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
|
|
|
1ec5d8e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
1ec5d8e |
|
|
|
8901c2b |
* Wed Jan 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-7
|
|
|
8901c2b |
- Subpackage python2-pysrt has been removed
|
|
|
8901c2b |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
8901c2b |
|
|
|
cf4d523 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
|
|
|
cf4d523 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
cf4d523 |
|
|
|
cff8984 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
|
|
|
cff8984 |
- Rebuilt for Python 3.7
|
|
|
cff8984 |
|
|
|
38075fb |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
|
|
|
38075fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
38075fb |
|
|
|
63049de |
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.1-3
|
|
|
63049de |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
63049de |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
63049de |
|
|
|
6352054 |
* Thu Aug 31 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-2
|
|
|
6352054 |
- Update Source URL
|
|
|
6352054 |
- Remove shebang from libraries
|
|
|
6352054 |
|
|
|
6352054 |
* Mon Aug 28 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-1
|
|
|
6352054 |
- Initial RPM release
|