15
0

thanks for pointing out the issues I missed. I want to have this in Factory, as it's a dependency for actually testing pmbootstrap

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gnureadline?expand=0&rev=1
This commit is contained in:
2025-06-09 08:29:19 +00:00
committed by Git OBS Bridge
commit aee37941ef
5 changed files with 95 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:081f654e18e1381965437549a567609d5fe7702d902dc0043e3c4836e5aab977
size 3160584

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat May 31 18:18:26 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- initial packaging

64
python-gnureadline.spec Normal file
View File

@@ -0,0 +1,64 @@
#
# spec file for package python-gnureadline
#
# 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
# 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/
#
%define _modname gnureadline
Name: python-gnureadline
Version: 8.2.13
Release: 0
Summary: The standard Python readline extension statically linked against the GNU readline library
License: GPL-3.0-or-later
URL: http://github.com/ludwigschwardt/python-gnureadline
# tests on pypi are broken
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(ncurses)
BuildRequires: %{python_module pytest}
%python_subpackages
%description
The standard Python readline extension statically linked against the GNU readline library.
%prep
%autosetup
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch tests/test.py tests/conftest.py
%files %{python_files}
%doc NEWS.rst README.rst
%license LICENSE
%pycache_only %{python_sitearch}/__pycache__
%{python_sitearch}/%{_modname}-%{version}.dist-info
%{python_sitearch}/%{_modname}.cpython*.so
%{python_sitearch}/override_readline.py
%{python_sitearch}/readline.py
%changelog