File python-osc-batch-submit.spec of Package python-osc-batch-submit

#
# spec file for package python-osc-batch-submit
#
# 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/
#

%define pythons python3
Name:           python-osc-batch-submit
Version:        0.1+git3.01c31c2
Release:        0
Summary:        Tool to batch submit requests with osc
License:        GPL-3.0-only
URL:            https://src.opensuse.org/alarrosa/osc-batch-submit
Source:         osc-batch-submit-%{version}.tar.xz
BuildRequires:  python3-base >= 3.8
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-packaging
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-packaging
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch:      noarch
%python_subpackages

%description
Tool to submit requests with osc in batch.

%prep
%autosetup -p1 -n osc-batch-submit-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%fdupes %{buildroot}%{$python3_sitelib}

%files %{python_files}
%license LICENSE
%doc README.md
%{_bindir}/osc-batch-submit
%{_bindir}/list-srs
%{python3_sitelib}/osc_batch_submit
%{python3_sitelib}/osc_batch_submit-*.dist-info

%changelog
openSUSE Build Service is sponsored by