2012-11-16 17:15:29 +01:00
|
|
|
#
|
|
|
|
# spec file for package libeppic
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-02-14 10:42:02 +01:00
|
|
|
%define git_date 20121207
|
|
|
|
%define git_commit fdf153d
|
2012-11-16 17:15:29 +01:00
|
|
|
|
|
|
|
Name: eppic
|
|
|
|
Version: 0
|
|
|
|
Release: 0.<CI_CNT>.%{git_date}git%{git_commit}.<B_CNT>
|
|
|
|
Summary: Embeddable Pre-Processor and Interpreter for C
|
|
|
|
Group: System/Libraries
|
|
|
|
License: GPL-2.0+
|
|
|
|
Source: %{name}-0.git%{git_commit}.tar.bz2
|
|
|
|
Patch1: %{name}-fix-install.patch
|
|
|
|
Patch2: %{name}-no-return.patch
|
|
|
|
BuildRequires: bison flex ncurses-devel
|
|
|
|
Url: http://code.google.com/p/eppic/
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Luc Chouinard <lucchouina@gmail.com>
|
|
|
|
|
|
|
|
%package -n libeppic-devel
|
|
|
|
Summary: EPPIC include files and libraries
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
License: GPL-2.0+
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{name}-%{version}.git%{git_commit}
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd libeppic
|
2013-02-14 10:42:02 +01:00
|
|
|
%{__make} CFLAGS="%{optflags} -fPIC" %{?_smp_mflags}
|
2012-11-16 17:15:29 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd libeppic
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
make ROOT="%{buildroot}" LIBDIR=%{_libdir} install
|
|
|
|
|
|
|
|
%files -n libeppic-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc libeppic/README
|
|
|
|
%{_includedir}/eppic.h
|
|
|
|
%{_includedir}/eppic_api.h
|
|
|
|
%attr(644,root,root) %{_libdir}/libeppic.a
|
|
|
|
|
|
|
|
%changelog
|