forked from pool/python-srcinfo
Accepting request 1285422 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1285422 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-srcinfo?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 13 10:13:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 8 16:06:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Dec 8 16:06:46 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-srcinfo
|
# spec file for package python-srcinfo
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 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,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-srcinfo
|
Name: python-srcinfo
|
||||||
Version: 0.1.2
|
Version: 0.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,11 +26,11 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/kyrias/python-srcinfo
|
URL: https://github.com/kyrias/python-srcinfo
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-parse >= 1.19.0
|
Requires: python-parse >= 1.19.0
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module parse >= 1.19.0}
|
BuildRequires: %{python_module parse >= 1.19.0}
|
||||||
@@ -55,11 +56,8 @@ mv test/__init__.py test_srcinfo.py
|
|||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative parse_srcinfo
|
%python_libalternatives_reset_alternative parse_srcinfo
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative parse_srcinfo
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Reference in New Issue
Block a user