forked from pool/python-semver
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 606299b6ac | |||
| bf638b7452 | |||
| 42ebf6c4cc | |||
| 61cd2814c4 |
@@ -1,8 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Aug 25 11:39:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives on SLE-16-based and newer systems
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jan 25 08:44:46 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
|
Sat Jan 25 08:44:46 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-semver
|
# spec file for package python-semver
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# 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
|
||||||
@@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
%if 0%{?suse_version} > 1500
|
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-semver
|
Name: python-semver
|
||||||
Version: 3.0.4
|
Version: 3.0.4
|
||||||
@@ -37,19 +32,14 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed
|
|
||||||
Conflicts: python-node-semver
|
|
||||||
BuildArch: noarch
|
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTIOn
|
# /SECTIOn
|
||||||
%if %{with libalternatives}
|
|
||||||
BuildRequires: alts
|
|
||||||
Requires: alts
|
|
||||||
%else
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%endif
|
# See https://github.com/k-bx/python-semver/issues/67 for why conflicts is needed
|
||||||
|
Conflicts: python-node-semver
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -78,9 +68,6 @@ sed -i 's/--[^ ]*cov[^ ]*//g' .pytest.ini
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative pysemver
|
%python_uninstall_alternative pysemver
|
||||||
|
|
||||||
%pre
|
|
||||||
%python_libalternatives_reset_alternative pysemver
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/semver*
|
%{python_sitelib}/semver*
|
||||||
|
|||||||
Reference in New Issue
Block a user