forked from pool/python-bowler
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 08366f29ca | |||
| 55ad44de27 | |||
| 2580bddaa8 | |||
| dbf14ebaf0 | |||
| b8160f5d1d | |||
| 3653d1f5bd | |||
| 53c3fd9328 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 14:54:26 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- fix usage of libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 15 12:11:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 11 07:34:01 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bowler
|
||||
#
|
||||
# Copyright (c) 2020 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-bowler
|
||||
Version: 0.9.0
|
||||
Release: 0
|
||||
@@ -31,18 +30,19 @@ BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module click}
|
||||
BuildRequires: %{python_module fissix}
|
||||
BuildRequires: %{python_module moreorless}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 38.6.0}
|
||||
BuildRequires: %{python_module volatile}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-attrs
|
||||
Requires: python-click
|
||||
Requires: python-fissix
|
||||
Requires: python-moreorless
|
||||
Requires: python-setuptools
|
||||
Requires: python-volatile
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -59,29 +59,30 @@ modifiers as needed to build more complex or custom refactorings. See the
|
||||
[Query Reference](https://pybowler.io/docs/api-query) for more details.
|
||||
|
||||
%prep
|
||||
%setup -q -n bowler-%{version}
|
||||
%autosetup -p1 -n bowler-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/bowler
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec -m bowler.tests
|
||||
|
||||
%post
|
||||
%python_install_alternative bowler
|
||||
%pre
|
||||
# If libalternatives is used: Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative bowler
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bowler
|
||||
# post and postun macro call is not needed with only libalternatives
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/bowler
|
||||
%{python_sitelib}/bowler-%{version}*-info
|
||||
%python_alternative %{_bindir}/bowler
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user