Compare commits

7 Commits

Author SHA256 Message Date
38ca61d370 Accepting request 1282807 from devel:languages:python
- fix usage of libalternatives

OBS-URL: https://build.opensuse.org/request/show/1282807
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bowler?expand=0&rev=5
2025-06-04 18:30:06 +00:00
0fc4f993e1 - fix usage of libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=13
2025-06-04 14:54:57 +00:00
eaf2f8b5ec Accepting request 1277830 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bowler?expand=0&rev=4
2025-05-20 07:32:48 +00:00
f58267f3e6 Accepting request 1277726 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277726
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=11
2025-05-15 15:19:11 +00:00
a2a49b6e34 Run spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=10
2021-01-18 23:35:49 +00:00
baaa4e0c82 Accepting request 864175 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/864175
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=9
2021-01-18 23:33:51 +00:00
1c56b4f7dc - Add BuildRequires for python-dataclasses
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=8
2021-01-18 23:31:54 +00:00
2 changed files with 25 additions and 14 deletions

View File

@@ -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>

View File

@@ -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