New features * peldd: new tool to check library dependencies from PE files. * peres: be able to extract and restore icons from resources. * peres: print both file and product versions. * readpe: exported function now displays Address and Name. * readpe: imported function now displays Hint and Name. Improvements * Added support for OpenSSL 1.1. * peres: New resources directory parser, which has been moved to libpe. * readpe: section output renamed and rearranged according to PE specification. Fixes * output/json: properly escape controle codes. * pehash: multiple security fixes. * fix multiple memory leaks. * plugins: fix readdir bug. * readpe: check if timestamp is valid. * pepack: remove bad packer signatures. * readpe: fixed ordinal to name resolution in print_export. * output/json: fix invalid JSON output. * readpe: non-existent and/or non-mapped characteristic names were causing invalid JSON output. * readpe: fix output of section size. Large values were printed as negative due to the improper format specifier. * readpe: properly read section names. * fix binary garbage on stderr when open() fails. - Create subpackages for the libpe library - Specfile cleanup OBS-URL: https://build.opensuse.org/package/show/home:mnhauke/pev?expand=0&rev=3
114 lines
3.2 KiB
RPMSpec
114 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package pev
|
|
#
|
|
# Copyright (c) 2017-2021, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: pev
|
|
Version: 0.81
|
|
Release: 0
|
|
Summary: Text-based tool to analyze PE files
|
|
License: GPL-2.0-only
|
|
Group: Productivity/Security
|
|
URL: https://pev.sourceforge.io/
|
|
#Git-Clone: https://github.com/merces/pev.git
|
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: pcre-devel
|
|
|
|
%description
|
|
A tool to get information of PE32/PE32+ executables (EXE, DLL, OCX, ...)
|
|
like headers, sections, resources and more.
|
|
|
|
%package -n libpe1
|
|
Summary: Library for PE file parsing
|
|
URL: https://pev.sourceforge.io/
|
|
License: LGPL-3.0-or-later
|
|
#Git-Clone: https://github.com/merces/libpe
|
|
Group: System/Libraries
|
|
|
|
%description -n libpe1
|
|
The PE library used by pev - the PE file toolkit.
|
|
Features
|
|
* Support for both 32 and 64-bits PE files.
|
|
* ssdeep support (built-in libfuzzy).
|
|
* Disassemble support (built-in libudis86).
|
|
* Imphash support.
|
|
* Crypographic digests calculation (using OpenSSL).
|
|
|
|
This subpackage contains shared library part of libpe.
|
|
|
|
%package -n libpe-devel
|
|
Summary: Development files for libpe
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libpe1 = %{version}
|
|
|
|
%description -n libpe-devel
|
|
The PE library used by pev - the PE file toolkit.
|
|
Features
|
|
* Support for both 32 and 64-bits PE files.
|
|
* ssdeep support (built-in libfuzzy).
|
|
* Disassemble support (built-in libudis86).
|
|
* Imphash support.
|
|
* Crypographic digests calculation (using OpenSSL).
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
applications that want to make use of libpe.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%make_build CFLAGS="%{optflags}" prefix=%{_prefix} libdir=%{_libdir}
|
|
|
|
%install
|
|
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
|
|
|
%post -n libpe1 -p /sbin/ldconfig
|
|
%postun -n libpe1 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license LICENSE LICENSE.OpenSSL
|
|
%doc README.md
|
|
%{_bindir}/ofs2rva
|
|
%{_bindir}/pedis
|
|
%{_bindir}/pehash
|
|
%{_bindir}/peldd
|
|
%{_bindir}/pepack
|
|
%{_bindir}/peres
|
|
%{_bindir}/pescan
|
|
%{_bindir}/pesec
|
|
%{_bindir}/pestr
|
|
%{_bindir}/readpe
|
|
%{_bindir}/rva2ofs
|
|
%dir %{_libdir}/pev
|
|
%dir %{_libdir}/pev/plugins
|
|
%{_libdir}/pev/plugins/csv_plugin.so
|
|
%{_libdir}/pev/plugins/html_plugin.so
|
|
%{_libdir}/pev/plugins/json_plugin.so
|
|
%{_libdir}/pev/plugins/text_plugin.so
|
|
%{_libdir}/pev/plugins/xml_plugin.so
|
|
%dir %{_datadir}/pev
|
|
%{_datadir}/pev/userdb.txt
|
|
%{_mandir}/man1/*%{?ext_man}
|
|
|
|
%files -n libpe1
|
|
%{_libdir}/libpe.so.*
|
|
|
|
%files -n libpe-devel
|
|
%{_libdir}/libpe.so
|
|
|
|
%changelog
|