|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-bowler
|
|
|
|
# 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
|
|
|
|
# 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-bowler
|
|
|
|
Name: python-bowler
|
|
|
|
Version: 0.9.0
|
|
|
|
Version: 0.9.0
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
@@ -31,18 +30,19 @@ BuildRequires: %{python_module base >= 3.6}
|
|
|
|
BuildRequires: %{python_module click}
|
|
|
|
BuildRequires: %{python_module click}
|
|
|
|
BuildRequires: %{python_module fissix}
|
|
|
|
BuildRequires: %{python_module fissix}
|
|
|
|
BuildRequires: %{python_module moreorless}
|
|
|
|
BuildRequires: %{python_module moreorless}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools >= 38.6.0}
|
|
|
|
BuildRequires: %{python_module setuptools >= 38.6.0}
|
|
|
|
BuildRequires: %{python_module volatile}
|
|
|
|
BuildRequires: %{python_module volatile}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
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-fissix
|
|
|
|
Requires: python-fissix
|
|
|
|
Requires: python-moreorless
|
|
|
|
Requires: python-moreorless
|
|
|
|
Requires: python-setuptools
|
|
|
|
|
|
|
|
Requires: python-volatile
|
|
|
|
Requires: python-volatile
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%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.
|
|
|
|
[Query Reference](https://pybowler.io/docs/api-query) for more details.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n bowler-%{version}
|
|
|
|
%autosetup -p1 -n bowler-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bowler
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bowler
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%python_exec -m bowler.tests
|
|
|
|
%python_exec -m bowler.tests
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%pre
|
|
|
|
%python_install_alternative bowler
|
|
|
|
# If libalternatives is used: Removing old update-alternatives entries.
|
|
|
|
|
|
|
|
%python_libalternatives_reset_alternative bowler
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
# post and postun macro call is not needed with only libalternatives
|
|
|
|
%python_uninstall_alternative bowler
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{python_sitelib}/bowler
|
|
|
|
|
|
|
|
%{python_sitelib}/bowler-%{version}*-info
|
|
|
|
%python_alternative %{_bindir}/bowler
|
|
|
|
%python_alternative %{_bindir}/bowler
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|