File python-prefixed.spec of Package python-prefixed
#
# spec file for package python-prefixed
#
# 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-prefixed
Version: 0.3.2+11~git20221011.4072615
Release: 0
Summary: Alternative numeric library
License: MPL-2.0
Url: https://python-enlighten.readthedocs.io
Source: prefixed-%{version}.tar.xz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: fdupes
BuildRequires: xz
Provides: python3-prefixed = %{version}
BuildArch: noarch
%description
Prefixed provides an alternative implementation of the built-in float which supports formatted output with SI (decimal) and IEC (binary) prefixes.
%prep
%autosetup -n prefixed-%{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