File python-srt.spec of Package python-srt
#
# spec file for package python-srt
#
# Copyright (c) 2021 John Gerritse (tyrannis.hawk (a) gmail (dot) com)
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://build.opensuse.org/project/show/home:tyrannishawk
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-srt
Version: 3.4.1
Release: 0
Summary: A tiny Python library for SRT files
Group: Development/Libraries/Python
License: MIT
URL: https://github.com/cdown/srt
Source: https://files.pythonhosted.org/packages/source/s/srt/srt-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
A tiny but featureful Python library for parsing, modifying, and composing SRT files
%prep
%setup -q -n srt-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.rst
%{python_sitelib}/*
%{_bindir}/srt
%{_bindir}/srt-*
%changelog