Remove custom patch, force CMake args in spec
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index db10f6c..d5a875a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -198,7 +198,7 @@ nanobind_add_stub(
|
||||
)
|
||||
|
||||
# Check if in the libdwarf include path we find the substring libwarf-0
|
||||
-if (DWARF_HEADER MATCHES "libdwarf-0")
|
||||
+if (true)
|
||||
# Add the libdebug_debug_sym_parser module, using the new libdwarf-0
|
||||
nanobind_add_module(
|
||||
libdebug_debug_sym_parser
|
||||
@@ -245,7 +245,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "i386"
|
||||
# Define the custom command that runs the generator and writes the output
|
||||
add_custom_command(
|
||||
OUTPUT ${XSAVE_LAYOUT_OUTPUT}
|
||||
- COMMAND autogenerate_xsave_layout > ${XSAVE_LAYOUT_OUTPUT}
|
||||
+ COMMAND mkdir -p ${CMAKE_BINARY_DIR}/generated && ./autogenerate_xsave_layout > ${XSAVE_LAYOUT_OUTPUT}
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Generating fpregs_xsave_layout.h using autogenerate_xsave_layout"
|
||||
VERBATIM
|
||||
@@ -253,6 +253,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "i386"
|
||||
|
||||
# Create a custom target to generate the xsave layout header
|
||||
add_custom_target(generate_xsave_layout ALL DEPENDS ${XSAVE_LAYOUT_OUTPUT})
|
||||
+ add_dependencies(generate_xsave_layout autogenerate_xsave_layout)
|
||||
|
||||
# Make sure your main target depends on the generated file
|
||||
add_dependencies(libdebug_ptrace_binding generate_xsave_layout)
|
5
python-libdebug.rpmlintrc
Normal file
5
python-libdebug.rpmlintrc
Normal file
@@ -0,0 +1,5 @@
|
||||
# This line is mandatory to access the configuration functions
|
||||
from Config import *
|
||||
|
||||
# we need devel files for the package to work
|
||||
addFilter("python.*-libdebug.* devel-file-in-non-devel-package")
|
@@ -23,13 +23,13 @@ Summary: A Python library for the debugging of binary executables
|
||||
License: MIT
|
||||
URL: https://libdebug.org
|
||||
Source: libdebug-%{version}.tar.gz
|
||||
Patch1: cmakelist-fixes.patch
|
||||
Requires: libdwarf0
|
||||
Requires: python-prompt-toolkit
|
||||
Requires: python-psutil
|
||||
Requires: python-pyelftools
|
||||
Requires: python-requests
|
||||
Suggests: python-rich
|
||||
Recommends: glibc-debuginfo
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nanobind >= 1.3.2}
|
||||
BuildRequires: %{python_module nanobind-devel >= 1.3.2}
|
||||
@@ -64,16 +64,12 @@ libdebug is an open source Python library for programmatic debugging of userland
|
||||
libdebug provides a comprehensive set of building blocks designed to facilitate the development of
|
||||
debugging tools for different purposes, including reverse engineering and exploitation.
|
||||
|
||||
%description devel
|
||||
libdebug is an open source Python library for programmatic debugging of userland binary executables.
|
||||
libdebug provides a comprehensive set of building blocks designed to facilitate the development of
|
||||
debugging tools for different purposes, including reverse engineering and exploitation.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n libdebug-%{version}
|
||||
|
||||
%build
|
||||
export CMAKE_GENERATOR=Ninja
|
||||
export CMAKE_ARGS="-DDWARF_HEADER=/usr/include/libdwarf-0/"
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user