forked from pool/python-drgn
Split off a drgn subpackage
Move /usr/bin/drgn to a separate package. We may need multiple Python packages with the modules, but there should be only one package with the CLI binary. Signed-off-by: Petr Tesarik <ptesarik@suse.com>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 6 13:15:51 UTC 2025 - Petr Tesařík <ptesarik@suse.com>
|
||||
|
||||
- Split off a drgn package with the CLI program.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 4 19:48:45 UTC 2025 - Petr Tesařík <ptesarik@suse.com>
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%if %{undefined primary_python}
|
||||
%define primary_python python3
|
||||
%endif
|
||||
|
||||
Name: python-drgn
|
||||
Version: 0.0.33
|
||||
@@ -45,6 +48,20 @@ drgn (pronounced “dragon”) is a debugger with an emphasis on
|
||||
programmability. drgn exposes the types and variables in a program
|
||||
for easy, expressive scripting in Python.
|
||||
|
||||
This package contains the Python module.
|
||||
|
||||
%package -n drgn
|
||||
Summary: Scriptable debugger CLI
|
||||
Provides: %{python_module drgn:/usr/bin/drgn}
|
||||
Requires: %{primary_python}-drgn
|
||||
|
||||
%description -n drgn
|
||||
drgn (pronounced “dragon”) is a debugger with an emphasis on
|
||||
programmability. drgn exposes the types and variables in a program
|
||||
for easy, expressive scripting in Python.
|
||||
|
||||
This package contains the CLI program.
|
||||
|
||||
%prep
|
||||
%setup -q -n drgn-%{version}
|
||||
|
||||
@@ -54,26 +71,22 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/drgn
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%pyunittest_arch discover -v
|
||||
|
||||
%post
|
||||
%python_install_alternative drgn
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative drgn
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license COPYING
|
||||
%python_alternative %{_bindir}/drgn
|
||||
%{python_sitearch}/drgn
|
||||
%{python_sitearch}/drgn-%{version}*-info
|
||||
%{python_sitearch}/_drgn*.pyi
|
||||
%{python_sitearch}/_drgn*.so
|
||||
%{python_sitearch}/_drgn_util
|
||||
|
||||
%files -n drgn
|
||||
%doc README.rst
|
||||
%license COPYING
|
||||
%{_bindir}/drgn
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user