From fa5b5e96c765797b36c4a7204b88dbbe7c5a39573664c9c776a31ae9f12c8da0 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Tue, 22 Apr 2025 14:53:27 +0200 Subject: [PATCH] Use _service to clone git repo, as tests are not available in PyPI --- .gitignore | 1 + _service | 23 +++++++++++++++++++++++ _servicedata | 4 ++++ libdebug-0.8.0.post2.obscpio | 3 +++ libdebug-0.8.0.post2.tar.gz | 3 --- libdebug.obsinfo | 4 ++++ python-libdebug.changes | 12 ++++++++++++ python-libdebug.spec | 30 ++++++++++++++++++++---------- 8 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 _service create mode 100644 _servicedata create mode 100644 libdebug-0.8.0.post2.obscpio delete mode 100644 libdebug-0.8.0.post2.tar.gz create mode 100644 libdebug.obsinfo diff --git a/.gitignore b/.gitignore index 57affb6..7c44e09 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .osc +libdebug/ diff --git a/_service b/_service new file mode 100644 index 0000000..950388f --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + + libdebug + https://github.com/libdebug/libdebug.git + git + 0.8.0-2 + 0.8.0.post2 + enable + + + + + + + yes + + + gz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..aff506e --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/libdebug/libdebug.git + cfbcc3e502b747ea95e155cb2f3df85c82e89695 \ No newline at end of file diff --git a/libdebug-0.8.0.post2.obscpio b/libdebug-0.8.0.post2.obscpio new file mode 100644 index 0000000..9a169f3 --- /dev/null +++ b/libdebug-0.8.0.post2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16d6caa26f9584708d4c96922cc74ad7c151de121cf71cf4e316798fdcd1d0df +size 123919374 diff --git a/libdebug-0.8.0.post2.tar.gz b/libdebug-0.8.0.post2.tar.gz deleted file mode 100644 index 163c3b6..0000000 --- a/libdebug-0.8.0.post2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7c3d58800c103bd57c87efa5ec093fb36ee8eebb3ba0903ceb992c6d705b138 -size 126400 diff --git a/libdebug.obsinfo b/libdebug.obsinfo new file mode 100644 index 0000000..f7b7ceb --- /dev/null +++ b/libdebug.obsinfo @@ -0,0 +1,4 @@ +name: libdebug +version: 0.8.0.post2 +mtime: 1743065435 +commit: cfbcc3e502b747ea95e155cb2f3df85c82e89695 diff --git a/python-libdebug.changes b/python-libdebug.changes index cb7ee40..5693757 100644 --- a/python-libdebug.changes +++ b/python-libdebug.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 22 12:45:15 UTC 2025 - Eyad Issa + +- Update to version 0.8.0-2: + * docs: fixes from 0.8.0 mistakes + * build: added needed dependency and removed useless folders + * fix: handle all possible errors during memory operations in process_memory_manager + * fix: handle all possible errors during memory operations in ptrace_interface + * test: validate mem r/w operations raise ValueError on both locally and globally invalid addresses + * build: updated pyproject and dependencies + * doc: updated README dscription + ------------------------------------------------------------------- Wed Apr 16 17:19:02 UTC 2025 - Eyad Issa diff --git a/python-libdebug.spec b/python-libdebug.spec index 74367f1..a189c3f 100644 --- a/python-libdebug.spec +++ b/python-libdebug.spec @@ -22,27 +22,33 @@ Release: 0 Summary: A Python library for the debugging of binary executables License: MIT URL: https://libdebug.org -Source: https://files.pythonhosted.org/packages/source/l/libdebug/libdebug-%{version}.tar.gz +Source: libdebug-%{version}.tar.gz Patch1: cmakelist-fixes.patch -BuildRequires: python-rpm-macros -BuildRequires: gcc-c++ -BuildRequires: ninja -BuildRequires: binutils-devel -BuildRequires: libelf-devel -BuildRequires: libdwarf-devel BuildRequires: %{python_module devel} BuildRequires: %{python_module nanobind >= 1.3.2} BuildRequires: %{python_module nanobind-devel >= 1.3.2} BuildRequires: %{python_module pip} BuildRequires: %{python_module scikit-build-core >= 0.4.3} BuildRequires: %{python_module typing_extensions} +BuildRequires: binutils-devel +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: libdwarf-devel +BuildRequires: ninja +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libelf) # SECTION test requirements +BuildRequires: %{python_module objgraph} BuildRequires: %{python_module prompt-toolkit} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pyelftools} +BuildRequires: %{python_module pwntools} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} # /SECTION -BuildRequires: fdupes %python_subpackages @@ -52,7 +58,7 @@ libdebug provides a comprehensive set of building blocks designed to facilitate debugging tools for different purposes, including reverse engineering and exploitation. %package devel -Summary: Development files for libdebug +Summary: Development files for libdebug Requires: libdwarf0 Requires: python-prompt-toolkit Requires: python-psutil @@ -74,7 +80,11 @@ export CMAKE_GENERATOR=Ninja %install %pyproject_install -%python_expand %fdupes %{buildroot}%{python_sitearch} +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +cd test +%pyunittest_arch %files %{python_files devel} %doc README.md