2012-11-16 17:15:29 +01:00
|
|
|
#
|
2013-11-22 10:49:51 +01:00
|
|
|
# spec file for package eppic
|
2012-11-16 17:15:29 +01:00
|
|
|
#
|
2023-04-13 16:25:31 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-11-16 17:15:29 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-07 18:12:31 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-16 17:15:29 +01:00
|
|
|
#
|
|
|
|
|
2013-11-22 10:49:51 +01:00
|
|
|
|
2012-11-16 17:15:29 +01:00
|
|
|
Name: eppic
|
2023-04-24 10:50:21 +02:00
|
|
|
Version: 4.99.git.1682279748.c294e5b
|
2013-04-03 11:14:27 +02:00
|
|
|
Release: 0
|
2012-11-16 17:15:29 +01:00
|
|
|
Summary: Embeddable Pre-Processor and Interpreter for C
|
2019-08-07 18:12:31 +02:00
|
|
|
License: GPL-2.0-or-later
|
2016-08-08 13:13:53 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-04-13 16:25:31 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
Source99: %{name}-rpmlintrc
|
2012-11-16 17:15:29 +01:00
|
|
|
Patch1: %{name}-fix-install.patch
|
2013-11-22 10:49:51 +01:00
|
|
|
BuildRequires: bison
|
2023-04-13 16:25:31 +02:00
|
|
|
BuildRequires: crash-devel
|
2013-11-22 10:49:51 +01:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: ncurses-devel
|
2021-02-02 16:43:37 +01:00
|
|
|
URL: https://github.com/lucchouina/eppic
|
2012-11-16 17:15:29 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
EPPIC is a C interpreter that permits easy access to the symbol and type
|
|
|
|
information stored in a executable image like a coredump or live memory
|
|
|
|
interfaces (e.g. /dev/kmem, /dev/mem). Although it has a strong association
|
|
|
|
with live or postmortem kernel analysis, it is not constraint to it and can be
|
|
|
|
embedded in any tools that is C friendly.
|
|
|
|
|
|
|
|
%package -n libeppic-devel
|
|
|
|
Summary: EPPIC include files and libraries
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
2023-04-13 16:25:31 +02:00
|
|
|
%package -n crash-eppic
|
|
|
|
Summary: The eppic extension for crash
|
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
|
2012-11-16 17:15:29 +01:00
|
|
|
%description -n libeppic-devel
|
|
|
|
EPPIC is a C interpreter that permits easy access to the symbol and type
|
|
|
|
information stored in a executable image like a coredump or live memory
|
|
|
|
interfaces (e.g. /dev/kmem, /dev/mem). Although it has a strong association
|
|
|
|
with live or postmortem kernel analysis, it is not constraint to it and can be
|
|
|
|
embedded in any tools that is C friendly.
|
|
|
|
|
|
|
|
This package provides the include files and libraries needed for development.
|
|
|
|
|
2023-04-13 16:25:31 +02:00
|
|
|
%description -n crash-eppic
|
|
|
|
EPPIC is a C interpreter that permits easy access to the symbol and type
|
|
|
|
information stored in a executable image like a coredump or live memory
|
|
|
|
interfaces (e.g. /dev/kmem, /dev/mem). Although it has a strong association
|
|
|
|
with live or postmortem kernel analysis, it is not constraint to it and can be
|
|
|
|
embedded in any tools that is C friendly.
|
|
|
|
|
|
|
|
This package provides the extension for the crash utility.
|
|
|
|
|
2012-11-16 17:15:29 +01:00
|
|
|
%prep
|
2023-04-13 16:25:31 +02:00
|
|
|
%setup
|
|
|
|
%autopatch -p1
|
2012-11-16 17:15:29 +01:00
|
|
|
|
|
|
|
%build
|
2019-08-07 18:12:31 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2023-04-13 16:25:31 +02:00
|
|
|
make -C libeppic CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
|
|
|
|
|
|
|
|
case `uname -m` in
|
|
|
|
aarch64)
|
|
|
|
TARGET=ARM64
|
|
|
|
TARGET_CFLAGS=
|
|
|
|
;;
|
|
|
|
arm*)
|
|
|
|
TARGET=ARM
|
|
|
|
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
;;
|
|
|
|
i?86)
|
|
|
|
TARGET=X86
|
|
|
|
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
;;
|
|
|
|
ia64)
|
|
|
|
TARGET=IA64
|
|
|
|
TARGET_CFLAGS=
|
|
|
|
;;
|
2023-04-24 17:59:01 +02:00
|
|
|
ppc)
|
2023-04-24 11:18:25 +02:00
|
|
|
TARGET=PPC
|
|
|
|
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
;;
|
2023-04-13 16:25:31 +02:00
|
|
|
ppc64|ppc64le)
|
|
|
|
TARGET=PPC64
|
|
|
|
TARGET_CFLAGS=-m64
|
|
|
|
;;
|
2023-04-24 11:20:25 +02:00
|
|
|
riscv64)
|
|
|
|
TARGET=RISCV64
|
2023-04-13 16:25:31 +02:00
|
|
|
TARGET_CFLAGS=
|
|
|
|
;;
|
|
|
|
s390)
|
|
|
|
TARGET=S390
|
2023-04-24 11:20:25 +02:00
|
|
|
TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
;;
|
|
|
|
s390x)
|
|
|
|
TARGET=S390X
|
2023-04-13 16:25:31 +02:00
|
|
|
TARGET_CFLAGS=
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
TARGET=X86_64
|
|
|
|
TARGET_CFLAGS=
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
export TARGET TARGET_CFLAGS
|
|
|
|
ln -snf ../../libeppic applications/crash/
|
|
|
|
make -C applications/crash -f eppic.mk INCDIR=/usr/include/crash eppic.so
|
2012-11-16 17:15:29 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
2023-04-13 16:25:31 +02:00
|
|
|
make -C libeppic ROOT="%{buildroot}" LIBDIR=%{_libdir} install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/crash/extensions
|
|
|
|
install -m 0644 applications/crash/eppic.so %{buildroot}%{_libdir}/crash/extensions
|
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/eppic
|
|
|
|
cp -r applications/crash/code %{buildroot}%{_datadir}/eppic/crash
|
2012-11-16 17:15:29 +01:00
|
|
|
|
|
|
|
%files -n libeppic-devel
|
|
|
|
%defattr(-,root,root)
|
2023-04-13 16:25:31 +02:00
|
|
|
%doc libeppic/README.md
|
2012-11-16 17:15:29 +01:00
|
|
|
%{_includedir}/eppic.h
|
|
|
|
%{_includedir}/eppic_api.h
|
|
|
|
%attr(644,root,root) %{_libdir}/libeppic.a
|
|
|
|
|
2023-04-13 16:25:31 +02:00
|
|
|
%files -n crash-eppic
|
|
|
|
%doc applications/crash/README.code
|
|
|
|
%{_libdir}/crash/extensions/eppic.so
|
|
|
|
%{_datadir}/eppic
|
|
|
|
|
2012-11-16 17:15:29 +01:00
|
|
|
%changelog
|