forked from pool/python-pudb
Accepting request 1108067 from devel:languages:python
- Clean up the SPEC file OBS-URL: https://build.opensuse.org/request/show/1108067 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pudb?expand=0&rev=11
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 30 08:57:06 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up the SPEC file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 9 17:18:38 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Wed Nov 9 17:18:38 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pudb
|
# spec file for package python-pudb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 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
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
%define upstream_name pudb
|
%define upstream_name pudb
|
||||||
%define module_name pudb
|
%define module_name pudb
|
||||||
%define py_maj_ver %(c=%{python})
|
%define py_maj_ver %(c=%{python})
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-pudb
|
Name: python-pudb
|
||||||
Version: 2022.1.3
|
Version: 2022.1.3
|
||||||
@@ -29,13 +28,17 @@ License: MIT
|
|||||||
Group: Development/Tools/Debuggers
|
Group: Development/Tools/Debuggers
|
||||||
URL: https://mathema.tician.de/software/pudb
|
URL: https://mathema.tician.de/software/pudb
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module urwid}
|
BuildRequires: %{python_module urwid}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Pygments
|
Requires: python-Pygments
|
||||||
|
Requires: python-jedi
|
||||||
|
Requires: python-packaging
|
||||||
Requires: python-urwid
|
Requires: python-urwid
|
||||||
|
Requires: python-urwid-readline
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -47,15 +50,15 @@ Control is by keyboard. The UI is reminiscient of the DOS versions
|
|||||||
of Turbo Pascal.
|
of Turbo Pascal.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{upstream_name}-%{version}
|
%autosetup -p1 -n %{upstream_name}-%{version}
|
||||||
|
|
||||||
sed -i '1{\@^#! %{_bindir}/env python@d}' pudb/debugger.py
|
sed -i '1{\@^#! %{_bindir}/env python@d}' pudb/debugger.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
mv -v %{buildroot}%{_bindir}/pudb{*,} || /bin/true
|
mv -v %{buildroot}%{_bindir}/pudb{*,} || /bin/true
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pudb
|
%python_clone -a %{buildroot}%{_bindir}/pudb
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
@@ -81,7 +84,7 @@ export LC_ALL=en_US.utf8
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/%{module_name}
|
%{python_sitelib}/%{module_name}
|
||||||
%{python_sitelib}/%{module_name}*.egg-info
|
%{python_sitelib}/%{module_name}*-info
|
||||||
%python_alternative %{_bindir}/pudb
|
%python_alternative %{_bindir}/pudb
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user