File python-ffmpeg-progress-yield.spec of Package python-ffmpeg-progress-yield
#
# spec file for package python-ffmpeg-progress-yield
#
# Copyright (c) 2023 SUSE LLC
#
# 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://bugs.opensuse.org/
#
Name: python-ffmpeg-progress-yield
Version: 0.7.8
Release: 0
Summary: Run an ffmpeg command with progress
License: MIT
URL: https://github.com/slhck/ffmpeg-progress-yield
Source: https://files.pythonhosted.org/packages/source/f/ffmpeg-progress-yield/ffmpeg-progress-yield-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
Run an ffmpeg command with progress
%prep
%autosetup -p1 -n ffmpeg-progress-yield-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/ffmpeg-progress-yield
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
#%%pytest
#%%pyunittest -v
# OR CUSTOM
%post
%python_install_alternative ffmpeg-progress-yield
%postun
%python_uninstall_alternative ffmpeg-progress-yield
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/ffmpeg-progress-yield
%{python_sitelib}/ffmpeg_progress_yield
%{python_sitelib}/ffmpeg_progress_yield-%{version}.dist-info
%changelog