File python-pmbootstrap.spec of Package python-pmbootstrap

#
# spec file for package python-pmbootstrap
#
# Copyright (c) 2024 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-pmbootstrap
Version:        2.3.1
Release:        0
Summary:        A sophisticated chroot / build / flash tool to develop and install postmarketOS'
License:        GPL-3.0-or-later
URL:            https://www.postmarketos.org
Source:         pmbootstrap-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module wheel}
BuildRequires:  %{python_module setuptools >= 61.0.0}
# SECTION test requirements
BuildRequires:  %{python_module pytest}
# /SECTION
BuildRequires:  fdupes
Suggests:       python-argcomplete
BuildArch:      noarch
%python_subpackages

%description
A sophisticated chroot / build / flash tool to develop and install postmarketOS'

%prep
%autosetup -p1 -n pmbootstrap-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pmbootstrap
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check


%post
%python_install_alternative pmbootstrap

%postun
%python_uninstall_alternative pmbootstrap

%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pmbootstrap
%{python_sitelib}/pmb
%{python_sitelib}/pmbootstrap-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by