4 Commits

2 changed files with 26 additions and 3 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 21 15:19:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Sat Jul 19 07:26:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jul 10 05:12:03 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pipreqs
#
# Copyright (c) 2023 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,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-pipreqs
Version: 0.4.13
@@ -32,9 +37,14 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docopt
Requires: python-yarg
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
# SECTION test requirements
BuildRequires: %{python_module docopt}
BuildRequires: %{python_module yarg}
@@ -66,6 +76,9 @@ chmod a-x pipreqs/pipreqs.py
%postun
%python_uninstall_alternative pipreqs
%pre
%python_libalternatives_reset_alternative pipreqs
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE