forked from pool/python-labels
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| a3d77d4ec3 | |||
| 08fcca9c21 | |||
| b2963be33a | |||
| 1a7ad37442 |
@@ -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>
|
Thu Sep 29 14:41:43 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-labels
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,8 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-labels
|
Name: python-labels
|
||||||
Version: 20.1.0
|
Version: 20.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,15 +25,17 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/hackebrot/labels
|
URL: https://github.com/hackebrot/labels
|
||||||
Source: https://github.com/hackebrot/labels/archive/%{version}.tar.gz#/labels-%{version}.tar.gz
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-attrs
|
Requires: python-attrs
|
||||||
Requires: python-click
|
Requires: python-click
|
||||||
Requires: python-pytoml
|
Requires: python-pytoml
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
Requires(post): update-alternatives
|
BuildRequires: alts
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module attrs}
|
BuildRequires: %{python_module attrs}
|
||||||
@@ -54,10 +55,10 @@ CLI app for managing GitHub labels.
|
|||||||
%setup -q -n labels-%{version}
|
%setup -q -n labels-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/labels
|
%python_clone -a %{buildroot}%{_bindir}/labels
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -65,16 +66,15 @@ CLI app for managing GitHub labels.
|
|||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative labels
|
# removing old update-alternatives entries
|
||||||
|
%python_libalternatives_reset_alternative labels
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative labels
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/labels
|
%python_alternative %{_bindir}/labels
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/labels
|
||||||
|
%{python_sitelib}/labels-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user