2019-12-09 09:25:08 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-labels
|
|
|
|
|
#
|
2025-05-30 09:38:15 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-12-09 09:25:08 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-05-25 09:26:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-12-09 09:25:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-labels
|
2022-09-29 19:02:55 +00:00
|
|
|
Version: 20.1.0
|
2019-12-09 09:25:08 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: CLI app for managing GitHub labels
|
2020-05-25 09:26:23 +00:00
|
|
|
License: MIT
|
2019-12-09 09:25:08 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-05-25 09:26:23 +00:00
|
|
|
URL: https://github.com/hackebrot/labels
|
2019-12-09 09:25:08 +00:00
|
|
|
Source: https://github.com/hackebrot/labels/archive/%{version}.tar.gz#/labels-%{version}.tar.gz
|
2025-05-30 09:38:15 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-12-09 09:25:08 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-05-30 09:38:15 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-05-25 09:26:23 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-attrs
|
|
|
|
|
Requires: python-click
|
|
|
|
|
Requires: python-pytoml
|
|
|
|
|
Requires: python-requests
|
2025-05-30 09:38:15 +00:00
|
|
|
Requires(post): alts
|
|
|
|
|
Requires(postun): alts
|
2020-05-25 09:26:23 +00:00
|
|
|
BuildArch: noarch
|
2019-12-09 09:25:08 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module attrs}
|
|
|
|
|
BuildRequires: %{python_module click}
|
|
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2020-05-25 09:26:23 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-12-09 09:25:08 +00:00
|
|
|
BuildRequires: %{python_module pytoml}
|
|
|
|
|
BuildRequires: %{python_module requests}
|
2020-05-25 09:26:23 +00:00
|
|
|
BuildRequires: %{python_module responses}
|
2019-12-09 09:25:08 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
CLI app for managing GitHub labels.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n labels-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2025-05-30 09:38:15 +00:00
|
|
|
%pyproject_wheel
|
2019-12-09 09:25:08 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-05-30 09:38:15 +00:00
|
|
|
%pyproject_install
|
2020-05-25 09:26:23 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/labels
|
2019-12-09 09:25:08 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
|
%pytest
|
|
|
|
|
|
2020-05-25 09:26:23 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative labels
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative labels
|
|
|
|
|
|
2019-12-09 09:25:08 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2020-05-25 09:26:23 +00:00
|
|
|
%python_alternative %{_bindir}/labels
|
2025-05-30 09:38:15 +00:00
|
|
|
%{python_sitelib}/labels
|
|
|
|
|
%{python_sitelib}/labels-%{version}*-info
|
2019-12-09 09:25:08 +00:00
|
|
|
|
|
|
|
|
%changelog
|