Compare commits

4 Commits

2 changed files with 23 additions and 13 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Jun 5 09:25:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri May 30 09:38:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Sep 29 14:41:43 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-labels
#
# Copyright (c) 2022 SUSE LLC
# 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
@@ -16,8 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%bcond_without libalternatives
Name: python-labels
Version: 20.1.0
Release: 0
@@ -26,15 +25,17 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/hackebrot/labels
Source: https://github.com/hackebrot/labels/archive/%{version}.tar.gz#/labels-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-attrs
Requires: python-click
Requires: python-pytoml
Requires: python-requests
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildRequires: alts
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module attrs}
@@ -54,10 +55,10 @@ CLI app for managing GitHub labels.
%setup -q -n labels-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/labels
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -65,16 +66,15 @@ CLI app for managing GitHub labels.
export LANG=en_US.UTF-8
%pytest
%post
%python_install_alternative labels
%postun
%python_uninstall_alternative labels
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative labels
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/labels
%{python_sitelib}/*
%{python_sitelib}/labels
%{python_sitelib}/labels-%{version}*-info
%changelog