forked from pool/python-bowler
Accepting request 809799 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809799 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bowler?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 27 09:36:30 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 16 07:12:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bowler
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -39,6 +39,8 @@ Requires: python-click
|
||||
Requires: python-fissix
|
||||
Requires: python-setuptools
|
||||
Requires: python-sh
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -62,15 +64,22 @@ modifiers as needed to build more complex or custom refactorings. See the
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/bowler
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec -m bowler.tests
|
||||
|
||||
%post
|
||||
%python_install_alternative bowler
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bowler
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/bowler
|
||||
%python_alternative %{_bindir}/bowler
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user