File python-enlighten.spec of Package python-enlighten

#
# spec file for package python-enlighten
#
# Copyright (c) 2022 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Name:           python-enlighten
Version:        1.11.1+0~git20221010.8eda149
Release:        0
Summary:        Progress Bar for Python Console Apps 
License:        MPL-2.0
Url:            https://python-enlighten.readthedocs.io
Source:         enlighten-%{version}.tar.xz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  fdupes
BuildRequires:  xz
Requires:       python3-blessed
Requires:       python3-prefixed
Provides:       python3-enlighten = %{version}
BuildArch:      noarch

%description
Enlighten Progress Bar is a console progress bar library for Python.
The main advantage of Enlighten is it allows writing to stdout and stderr without any redirection or additional code. Just print or log as you normally would.
 
%prep
%autosetup -n enlighten-%{version}

%build
%python3_build

%install
%python3_install
find %{buildroot} -type f -name "*.py" --exec sed -i -e 's:/usr/bin/env python3:/usr/bin/python3:g' "{}" && chmod -v +x "{}" \;
%fdupes %{buildroot}/%{_prefix}

%files
%license LICENSE
%doc README.rst
%{python3_sitelib}/*

%changelog

openSUSE Build Service is sponsored by