File python-bloom.spec of Package python-bloom

#
# spec file for package python-bloom
#
# Copyright (c) 2025 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/
#
# Enable libalternatives by default
%bcond_without libalternatives


Name:           python-bloom
Version:        0.13.0
Release:        0
Summary:        Bloom is a release automation tool
License:        BSD (FIXME:No SPDX)
URL:            http://www.ros.org/wiki/bloom
Source:         https://files.pythonhosted.org/packages/source/b/bloom/bloom-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module catkin-pkg >= 0.4.3}
BuildRequires:  %{python_module empy3}
BuildRequires:  %{python_module packaging}
BuildRequires:  %{python_module python-dateutil}
BuildRequires:  %{python_module PyYAML}
BuildRequires:  %{python_module rosdep >= 0.15.0}
BuildRequires:  %{python_module rosdistro >= 0.8.0}
BuildRequires:  %{python_module vcstools >= 0.1.22}
# /SECTION
BuildRequires:  fdupes
BuildRequires:  alts
Requires:       alts
Requires:       python-catkin-pkg >= 0.4.3
Requires:       python-empy3
Requires:       python-packaging
Requires:       python-python-dateutil
Requires:       python-PyYAML
Requires:       python-rosdep >= 0.15.0
Requires:       python-rosdistro >= 0.8.0
Requires:       python-setuptools
Requires:       python-vcstools >= 0.1.22
BuildArch:      noarch
%python_subpackages

%description
Bloom is a release automation tool.

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

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/git-bloom-generate
%python_clone -a %{buildroot}%{_bindir}/git-bloom-import-upstream
%python_clone -a %{buildroot}%{_bindir}/bloom-release
%python_clone -a %{buildroot}%{_bindir}/git-bloom-branch
%python_clone -a %{buildroot}%{_bindir}/git-bloom-patch
%python_clone -a %{buildroot}%{_bindir}/git-bloom-release
%python_clone -a %{buildroot}%{_bindir}/bloom-export-upstream
%python_clone -a %{buildroot}%{_bindir}/bloom-generate
%python_clone -a %{buildroot}%{_bindir}/bloom-update
%python_clone -a %{buildroot}%{_bindir}/git-bloom-config
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check


%files %{python_files}
%doc README.rst
%python_alternative %{_bindir}/git-bloom-generate
%python_alternative %{_bindir}/git-bloom-import-upstream
%python_alternative %{_bindir}/bloom-release
%python_alternative %{_bindir}/git-bloom-branch
%python_alternative %{_bindir}/git-bloom-patch
%python_alternative %{_bindir}/git-bloom-release
%python_alternative %{_bindir}/bloom-export-upstream
%python_alternative %{_bindir}/bloom-generate
%python_alternative %{_bindir}/bloom-update
%python_alternative %{_bindir}/git-bloom-config
%{python_sitelib}/bloom
%{python_sitelib}/bloom-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by