2017-01-10 19:48:33 +00:00
|
|
|
#
|
|
|
|
# spec file for package pev
|
|
|
|
#
|
2021-01-31 15:20:27 +00:00
|
|
|
# Copyright (c) 2017-2021, Martin Hauke <mardnh@gmx.de>
|
2017-01-10 19:48:33 +00: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.
|
|
|
|
|
2021-01-31 15:20:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-01-10 19:48:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: pev
|
2021-01-31 15:20:27 +00:00
|
|
|
Version: 0.81
|
2017-01-10 19:48:33 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Text-based tool to analyze PE files
|
2021-01-31 15:20:27 +00:00
|
|
|
License: GPL-2.0-only
|
2017-01-10 19:48:33 +00:00
|
|
|
Group: Productivity/Security
|
2021-01-31 15:20:27 +00:00
|
|
|
URL: https://pev.sourceforge.io/
|
|
|
|
#Git-Clone: https://github.com/merces/pev.git
|
2017-01-10 19:48:33 +00:00
|
|
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
|
|
|
%description
|
2021-01-31 15:20:27 +00:00
|
|
|
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.
|
2017-01-10 19:48:33 +00:00
|
|
|
|
|
|
|
%prep
|
2021-01-31 15:20:27 +00:00
|
|
|
%setup -q
|
2017-01-10 19:48:33 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-31 15:20:27 +00:00
|
|
|
%make_build CFLAGS="%{optflags}" prefix=%{_prefix} libdir=%{_libdir}
|
2017-01-10 19:48:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
|
|
|
|
2021-01-31 15:20:27 +00:00
|
|
|
%post -n libpe1 -p /sbin/ldconfig
|
|
|
|
%postun -n libpe1 -p /sbin/ldconfig
|
2017-01-10 19:48:33 +00:00
|
|
|
|
|
|
|
%files
|
2021-01-31 15:20:27 +00:00
|
|
|
%license LICENSE LICENSE.OpenSSL
|
|
|
|
%doc README.md
|
2017-01-10 19:48:33 +00:00
|
|
|
%{_bindir}/ofs2rva
|
|
|
|
%{_bindir}/pedis
|
|
|
|
%{_bindir}/pehash
|
2021-01-31 15:20:27 +00:00
|
|
|
%{_bindir}/peldd
|
2017-01-10 19:48:33 +00:00
|
|
|
%{_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
|
2021-01-31 15:20:27 +00:00
|
|
|
%{_mandir}/man1/*%{?ext_man}
|
|
|
|
|
|
|
|
%files -n libpe1
|
|
|
|
%{_libdir}/libpe.so.*
|
|
|
|
|
|
|
|
%files -n libpe-devel
|
|
|
|
%{_libdir}/libpe.so
|
2017-01-10 19:48:33 +00:00
|
|
|
|
|
|
|
%changelog
|