forked from pool/python-bpython
- Remove unused BuildRequires: update-desktop-files.
- Explicitly add desktop-file-utils to BuildRequires. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=43
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
||||||
3
bpython-0.25.tar.gz
Normal file
3
bpython-0.25.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c246fc909ef6dcc26e9d8cb4615b0e6b1613f3543d12269b19ffd0782166c65b
|
||||||
|
size 207610
|
||||||
3
bpython-0.26.tar.gz
Normal file
3
bpython-0.26.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f79083e1e3723be9b49c9994ad1dd3a19ccb4d0d4f9a6f5b3a73bef8bc327433
|
||||||
|
size 207564
|
||||||
272
python-bpython.changes
Normal file
272
python-bpython.changes
Normal file
@@ -0,0 +1,272 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 24 13:29:59 UTC 2025 - Stanislav Brabec <sbrabec@suse.com>
|
||||||
|
|
||||||
|
- Remove unused BuildRequires: update-desktop-files.
|
||||||
|
- Explicitly add desktop-file-utils to BuildRequires.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 3 00:00:40 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.26:
|
||||||
|
* Handle unspecified config paths
|
||||||
|
* Align simple_eval with Python 3.10+
|
||||||
|
* Make -q hide the welcome message
|
||||||
|
* Convert sys.ps1 to a string to work-around non-str sys.ps1 from vscode
|
||||||
|
* Support for Python 3.14 has been added. Support for Python 3.9 has been
|
||||||
|
dropped.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 17 09:03:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 21 12:13:55 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.25
|
||||||
|
* The `bpython-cli` rendering backend has been removed
|
||||||
|
following deprecation in version 0.19.
|
||||||
|
* This release is focused on Python 3.13 support.
|
||||||
|
* Fix __signature__ support
|
||||||
|
* #995: Fix handling of `SystemExit`
|
||||||
|
* #996: Improve order of completion results
|
||||||
|
* Fix build of documentation and manpages with Sphinx >= 7
|
||||||
|
* #1001: Do not fail if modules don't have __version__
|
||||||
|
* Remove use of distutils
|
||||||
|
* Support for Python 3.12 and 3.13 has been added.
|
||||||
|
Support for Python 3.7 and 3.8 has been dropped.
|
||||||
|
- Drop bpython-curses binary which was removed upstream
|
||||||
|
- Drop fix-python313-tests.patch, merged upstream
|
||||||
|
- Remove workaround for installing manpages from %install section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 2 16:18:30 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- Add fix-python313-tests.patch to fix tests under Python 3.13
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 26 06:58:24 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Drop sphinx doctrees for reproducible builds
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 23 08:55:21 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Stop calling setup.py build_sphinx, switch to sphinx-build, and also
|
||||||
|
build manual pages.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 23 14:39:42 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.24
|
||||||
|
* Support for Python 3.11 has been added.
|
||||||
|
* wheel is no required as part of pyproject.toml's build dependencies
|
||||||
|
* Improve inspection of builtin functions.
|
||||||
|
* Add more keywords to trigger auto-deindent.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 3 12:15:02 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove python-six not needed dependency
|
||||||
|
- Remove python_module macro definition
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 10 15:32:53 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* skip python 3.6
|
||||||
|
* update requirement for curtsies
|
||||||
|
* removed patch syntaxerror_failing_test.patch and typing_extensions.patch: included upstream
|
||||||
|
|
||||||
|
- update to version 0.23:
|
||||||
|
* General information:
|
||||||
|
+ More and more type annotations have been added to the bpython
|
||||||
|
code base.
|
||||||
|
+ Some work has been performed to stop relying on blessings.
|
||||||
|
* New features:
|
||||||
|
+ #905: Auto-closing brackets option added. To enable, add
|
||||||
|
brackets_completion = True in the bpython config Thanks to
|
||||||
|
samuelgregorovic
|
||||||
|
* Fixes:
|
||||||
|
+ Improve handling of SyntaxErrors
|
||||||
|
+ #948: Fix crash on Ctrl-Z
|
||||||
|
+ #952: Fix tests for Python 3.10.1 and newer
|
||||||
|
+ #955: Handle optional readline parameters in stdin emulation
|
||||||
|
Thanks to thevibingcat
|
||||||
|
+ #959: Fix handling of __name__
|
||||||
|
+ #966: Fix function signature completion for classmethod
|
||||||
|
* Changes to dependencies:
|
||||||
|
+ curtsies 0.4 or newer is now required
|
||||||
|
* Support for Python 3.6 has been dropped.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 5 21:57:02 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- This version actually installs manpages on its own.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 2 20:04:24 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Fix failing tests:
|
||||||
|
- typing_extensions.patch (post Python 3.8 we don't need
|
||||||
|
typing_extensions package at all)
|
||||||
|
- syntaxerror_failing_test.patch (from
|
||||||
|
https://github.com/bpython/bpython/compare/fdd4ad9..4d33cc6).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 23 17:31:17 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
* update path for xml and desktop file
|
||||||
|
|
||||||
|
- update to version 0.22.1:
|
||||||
|
* Fixes:
|
||||||
|
+ #938: Fix missing dependency on typing_extensions. Thanks to
|
||||||
|
Dustin Rodrigues
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 5 01:02:36 UTC 2021 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
* AUTHORS and CHANGELOG are now .rst files
|
||||||
|
|
||||||
|
- update to version 0.21:
|
||||||
|
* General information:
|
||||||
|
+ Support for Python 2 has been dropped.
|
||||||
|
* New features:
|
||||||
|
+ #643: Provide bpython._version if built from Github tarballs
|
||||||
|
+ #849: Make import completion skip list configurable
|
||||||
|
+ #876: Check spelling with codespell Thanks to Christian Clauss
|
||||||
|
* Fixes:
|
||||||
|
+ #847: Fix import completion of modules
|
||||||
|
+ #857: Replace remaining use of deprecated imp with importlib
|
||||||
|
+ #862: Upgrade curtsies version requirements Thanks to Kelsey
|
||||||
|
Blair
|
||||||
|
+ #863: State correct default config file directory Thanks to
|
||||||
|
niloct
|
||||||
|
+ #866: Add more directories to the default import completion skip
|
||||||
|
list
|
||||||
|
+ #873: Handle 'd' when mapping colors
|
||||||
|
+ #874: Avoid breakage with six's importer
|
||||||
|
* Changes to dependencies:
|
||||||
|
+ curtsies >= 0.3.5 is now required
|
||||||
|
+ pyxdg is now required
|
||||||
|
+ wcwidth has been replaced with cwcwidth
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 30 22:26:06 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- update to version 0.20:
|
||||||
|
* General information:
|
||||||
|
+ The next release of bpython (0.20) will drop support for Python
|
||||||
|
2.
|
||||||
|
+ Support for Python 3.9 has been added. Support for Python 3.5
|
||||||
|
has been dropped.
|
||||||
|
* New features:
|
||||||
|
+ #802: Provide redo. Thanks to Evan.
|
||||||
|
+ #835: Add support for importing namespace packages. Thanks to
|
||||||
|
Thomas Babej.
|
||||||
|
* Fixes:
|
||||||
|
+ #622: Provide encoding attribute for FakeOutput.
|
||||||
|
+ #806: Prevent symbolic link loops in import completion. Thanks
|
||||||
|
to Etienne Richart.
|
||||||
|
+ #807: Support packages using importlib.metadata API. Thanks to
|
||||||
|
uriariel.
|
||||||
|
+ #809: Fix support for Python 3.9's ast module.
|
||||||
|
+ #817: Fix cursor position with full-width characters. Thanks to
|
||||||
|
Jack Rybarczyk.
|
||||||
|
+ #853: Fix invalid escape sequences.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 4 17:46:05 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
|
||||||
|
- update to version 0.19:
|
||||||
|
* General information:
|
||||||
|
+ The bpython-cli and bpython-urwid rendering backends have been
|
||||||
|
deprecated and will show a warning that they'll be removed in a
|
||||||
|
future release when started.
|
||||||
|
+ Usage in combination with Python 2 has been deprecated. This
|
||||||
|
does not mean that support is dropped instantly but rather that
|
||||||
|
at some point in the future we will stop running our testcases
|
||||||
|
against Python 2.
|
||||||
|
+ The new pinnwand API is used for the pastebin functionality. We
|
||||||
|
have dropped two configuration options: `pastebin_show_url` and
|
||||||
|
`pastebin_removal_url`. If you have your bpython configured to
|
||||||
|
run against an old version of `pinnwand` please update it.
|
||||||
|
* Fixes:
|
||||||
|
+ #765: Display correct signature for decorated functions. Thanks
|
||||||
|
to Benedikt Rascher-Friesenhausen.
|
||||||
|
+ #776: Protect get_args from user code exceptions
|
||||||
|
+ Improve lock file handling on Windows
|
||||||
|
+ #791: Use importlib instead of deprecated imp when running under
|
||||||
|
Python 3
|
||||||
|
* Support for Python 3.8 has been added. Support for Python 3.4 has
|
||||||
|
been dropped.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 5 09:01:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Format with spec-cleaner
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 10 15:39:43 UTC 2019 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* be more specific in %files section
|
||||||
|
* changes appdata to appinfo directory for bpython.appdata.xml
|
||||||
|
* for appdata and desktop add org.bpython-interpreter. to file name
|
||||||
|
* added files for bpdb
|
||||||
|
|
||||||
|
- update to version 0.18:
|
||||||
|
* New features:
|
||||||
|
+ #713 expose globals in bpdb debugging. Thanks to toejough.
|
||||||
|
* Fixes:
|
||||||
|
+ Fix file locking on Windows.
|
||||||
|
+ Exit gracefully if config file fails to be loaded due to
|
||||||
|
encoding errors.
|
||||||
|
+ #744: Fix newline handling. Thanks to Attila Szöllősi.
|
||||||
|
+ #731: Fix exit code. Thanks to benkrig.
|
||||||
|
+ #767: Fix crash when matching certain lines in history.
|
||||||
|
* Support for Python 3.3 has been dropped.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 4 12:46:18 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Remove superfluous devel dependency for noarch package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 6 19:38:52 UTC 2018 - arun@gmx.de
|
||||||
|
|
||||||
|
- update to version 0.17.1:
|
||||||
|
* Fixes:
|
||||||
|
+ Reverted #670 temporarily due to performance impact on large
|
||||||
|
strings being output.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 26 13:58:01 UTC 2018 - badshah400@gmail.com
|
||||||
|
|
||||||
|
- Update to version 0.17:
|
||||||
|
* New features:
|
||||||
|
- gh#bpython/bpython#641: Implement Ctrl+O.
|
||||||
|
- Add default_autoreload config option.
|
||||||
|
* Fixes:
|
||||||
|
- Fix deprecation warnings.
|
||||||
|
- Do not call signal outside of main thread.
|
||||||
|
- Fix option-backspace behavior.
|
||||||
|
- gh#bpython/bpython#648: Fix paste helper.
|
||||||
|
- gh#bpython/bpython#653: Handle docstrings more carefully.
|
||||||
|
- gh#bpython/bpython#654: Do not modify history file during
|
||||||
|
tests.
|
||||||
|
- gh#bpython/bpython#658: Fix newline handling.
|
||||||
|
- gh#bpython/bpython#670: Fix handlign of ANSI escape codes.
|
||||||
|
- gh#bpython/bpython#687: Fix encoding of jedi completions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 7 22:41:01 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- initial version
|
||||||
168
python-bpython.spec
Normal file
168
python-bpython.spec
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-bpython
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without test
|
||||||
|
%bcond_without libalternatives
|
||||||
|
Name: python-bpython
|
||||||
|
Version: 0.26
|
||||||
|
Release: 0
|
||||||
|
Summary: Fancy Interface to the Python Interpreter
|
||||||
|
License: MIT
|
||||||
|
URL: https://www.bpython-interpreter.org/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/b/bpython/bpython-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module Babel}
|
||||||
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
BuildRequires: %{python_module base >= 3.10}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: hicolor-icon-theme
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: %{name}-common = %{version}
|
||||||
|
Requires: alts
|
||||||
|
Requires: python-curtsies >= 0.4
|
||||||
|
Requires: python-greenlet
|
||||||
|
Requires: python-pygments
|
||||||
|
Requires: python-pyxdg
|
||||||
|
Requires: python-requests
|
||||||
|
Recommends: python-cwcwidth
|
||||||
|
Recommends: python-jedi
|
||||||
|
Recommends: python-ndg-httpsclient
|
||||||
|
Recommends: python-pyOpenSSL
|
||||||
|
Recommends: python-pyasn1
|
||||||
|
Recommends: python-urwid
|
||||||
|
Recommends: python-watchdog
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module curtsies >= 0.4}
|
||||||
|
BuildRequires: %{python_module greenlet}
|
||||||
|
BuildRequires: %{python_module pygments}
|
||||||
|
BuildRequires: %{python_module pyxdg}
|
||||||
|
BuildRequires: %{python_module requests}
|
||||||
|
BuildRequires: %{python_module wcwidth}
|
||||||
|
%endif
|
||||||
|
%ifpython2
|
||||||
|
Provides: bpython = %{version}
|
||||||
|
Obsoletes: bpython <= %{version}
|
||||||
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Bpython is an enhanced Python interactive interpreter that uses curses
|
||||||
|
and provides the following main features: in-line syntax highlighting;
|
||||||
|
readline-like autocompletion with suggestions displayed as you type; expected
|
||||||
|
argument specification for functions; a handy pastebin function to quickly
|
||||||
|
submit your code and return a URL. Its goal is to bring together a few handy
|
||||||
|
ideas to enhance the standard interpreter without getting carried away.
|
||||||
|
|
||||||
|
%package -n %{name}-common
|
||||||
|
Summary: Fancy Interface to the Python Interpreter - common files
|
||||||
|
Provides: %{python_module bpython-common = %{version}}
|
||||||
|
|
||||||
|
%description -n %{name}-common
|
||||||
|
This package contains files shared between the various versions of
|
||||||
|
Bpython. You don't need to install this directly, packages that
|
||||||
|
require it will pull it in automatically.
|
||||||
|
|
||||||
|
%package -n %{name}-doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Provides: %{python_module bpython-doc = %{version}}
|
||||||
|
|
||||||
|
%description -n %{name}-doc
|
||||||
|
Documentation and help files for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n bpython-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
# Build HTML documentation
|
||||||
|
sphinx-build doc/sphinx/source build/sphinx/html && rm -r build/sphinx/html/.{buildinfo,doctrees}
|
||||||
|
# .. and the manual pages
|
||||||
|
sphinx-build -b man doc/sphinx/source build/sphinx/man
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/bpython
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/bpython-urwid
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/bpdb
|
||||||
|
%python_clone -a %{buildroot}%{_mandir}/man1/bpython.1
|
||||||
|
%python_clone -a %{buildroot}%{_mandir}/man5/bpython-config.5
|
||||||
|
|
||||||
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
cp %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython.metainfo.xml %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{$python_bin_suffix}.metainfo.xml
|
||||||
|
cp %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython-%{$python_bin_suffix}.desktop
|
||||||
|
|
||||||
|
sed -i 's|bpython.desktop|bpython-%{$python_bin_suffix}.desktop|' %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{$python_bin_suffix}.metainfo.xml
|
||||||
|
sed -i 's|bpython interpreter|bpython %{$python_prefix} interpreter|' %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{$python_bin_suffix}.metainfo.xml
|
||||||
|
sed -i 's|Python interpreter|A %{$python_prefix} interpreter|' %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{$python_bin_suffix}.metainfo.xml
|
||||||
|
desktop-file-edit --set-name=bpython-%{$python_bin_suffix} \
|
||||||
|
--copy-name-to-generic-name \
|
||||||
|
--remove-key=Categories \
|
||||||
|
--add-category=System --add-category=TerminalEmulator \
|
||||||
|
--set-comment="A fancy interface to the %{$python_prefix} interpreter" \
|
||||||
|
--set-key=Exec --set-value="%{_bindir}/bpython-%{$python_bin_suffix}" \
|
||||||
|
%{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython-%{$python_bin_suffix}.desktop
|
||||||
|
}
|
||||||
|
|
||||||
|
rm %{buildroot}%{_datadir}/metainfo/org.bpython-interpreter.bpython.metainfo.xml
|
||||||
|
rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
%pyunittest discover -v
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative bpython
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
|
%{python_sitelib}/bpython
|
||||||
|
%{python_sitelib}/bpdb
|
||||||
|
%{python_sitelib}/bpython-%{version}.dist-info
|
||||||
|
%python_alternative %{_bindir}/bpython
|
||||||
|
%python_alternative %{_bindir}/bpython-urwid
|
||||||
|
%python_alternative %{_bindir}/bpdb
|
||||||
|
%python_alternative %{_mandir}/man1/bpython.1%{ext_man}
|
||||||
|
%python_alternative %{_mandir}/man5/bpython-config.5%{ext_man}
|
||||||
|
# Needed because bpython-config doesn't have a binary, it's just a man page file.
|
||||||
|
%if %{with libalternatives}
|
||||||
|
%dir %{_datadir}/libalternatives/bpython-config
|
||||||
|
%{_datadir}/libalternatives/bpython-config/*%{python_version_nodots}.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%dir %{_datadir}/metainfo/
|
||||||
|
%{_datadir}/metainfo/org.bpython-interpreter.bpython-%{python_bin_suffix}.metainfo.xml
|
||||||
|
%dir %{_datadir}/applications/
|
||||||
|
%{_datadir}/applications/org.bpython-interpreter.bpython-%{python_bin_suffix}.desktop
|
||||||
|
|
||||||
|
%files -n %{name}-common
|
||||||
|
%license LICENSE
|
||||||
|
%{_datadir}/pixmaps/bpython.png
|
||||||
|
|
||||||
|
%files -n %{name}-doc
|
||||||
|
%doc build/sphinx/html
|
||||||
|
|
||||||
|
%changelog
|
||||||
Reference in New Issue
Block a user