forked from pool/python-ptpython
Accepting request 1284625 from devel:languages:python
- Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1284625 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ptpython?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 11 05:51:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 31 12:08:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sat Aug 31 12:08:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ptpython
|
# spec file for package python-ptpython
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 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
|
||||||
@@ -27,7 +27,9 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/jonathanslenders/ptpython
|
URL: https://github.com/jonathanslenders/ptpython
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/ptpython/ptpython-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/ptpython/ptpython-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Pygments
|
Requires: python-Pygments
|
||||||
@@ -47,7 +49,7 @@ Recommends: python-ptpython-ptipython
|
|||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ptpython is an advanced Python REPL.
|
Ptpython is an advanced Python REPL, built using prompt_toolkit.
|
||||||
|
|
||||||
%package ptipython
|
%package ptipython
|
||||||
Summary: Python REPL build on top of prompt_toolkit - IPython support
|
Summary: Python REPL build on top of prompt_toolkit - IPython support
|
||||||
@@ -65,10 +67,10 @@ This package provides IPython support to Ptpython.
|
|||||||
sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py
|
sed -i -e '/^#!\//, 1d' ptpython/entry_points/run_*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
rm %{buildroot}%{_bindir}/pt{,i}python?*
|
rm %{buildroot}%{_bindir}/pt{,i}python?*
|
||||||
%python_clone -a %{buildroot}%{_bindir}/ptpython
|
%python_clone -a %{buildroot}%{_bindir}/ptpython
|
||||||
@@ -92,7 +94,8 @@ rm %{buildroot}%{_bindir}/pt{,i}python?*
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG README.rst
|
%doc CHANGELOG README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/ptpython
|
||||||
|
%{python_sitelib}/ptpython-%{version}.dist-info
|
||||||
%python_alternative %{_bindir}/ptpython
|
%python_alternative %{_bindir}/ptpython
|
||||||
|
|
||||||
%files %{python_files ptipython}
|
%files %{python_files ptipython}
|
||||||
|
|||||||
Reference in New Issue
Block a user