2012-10-01 10:26:48 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pefile
|
|
|
|
#
|
2018-11-21 09:04:37 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-01 10:26:48 +02: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.
|
2015-08-15 13:34:27 +02:00
|
|
|
|
2012-10-01 10:26:48 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-08-15 13:34:27 +02:00
|
|
|
|
2017-11-06 19:24:13 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-10-01 10:26:48 +02:00
|
|
|
Name: python-pefile
|
2018-11-21 09:04:37 +01:00
|
|
|
Version: 2018.8.8
|
2012-10-01 10:26:48 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A python module to work with PE (pertable executable) files
|
2015-08-15 13:34:27 +02:00
|
|
|
License: BSD-3-Clause
|
2017-11-06 19:24:13 +01:00
|
|
|
Group: Development/Languages/Python
|
2015-08-15 13:34:27 +02:00
|
|
|
Url: https://github.com/erocarrera/pefile
|
2017-11-06 19:24:13 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pefile/pefile-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-future
|
2018-11-21 09:04:37 +01:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module future}
|
|
|
|
# /SECTION
|
2017-11-06 19:24:13 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
2012-10-01 10:26:48 +02:00
|
|
|
|
|
|
|
%description
|
2017-11-06 19:24:13 +01:00
|
|
|
Portable Executable reader module.
|
|
|
|
|
|
|
|
All the PE file basic structures are available with their default names as
|
|
|
|
attributes of the instance returned.
|
|
|
|
|
|
|
|
Processed elements such as the import table are made available with lowercase
|
|
|
|
names, to differentiate them from the upper case basic structure names.
|
|
|
|
|
|
|
|
pefile has been tested against many edge cases such as corrupted and malformed
|
|
|
|
PEs as well as malware, which often attempts to abuse the format way beyond its
|
|
|
|
standard use. To the best of my knowledge most of the abuse is handled
|
|
|
|
gracefully.
|
2012-10-01 10:26:48 +02:00
|
|
|
|
|
|
|
%prep
|
2017-11-06 19:24:13 +01:00
|
|
|
%setup -q -n pefile-%{version}
|
|
|
|
sed -i -e '/^#!\//, 1d' pefile.py
|
2012-10-01 10:26:48 +02:00
|
|
|
|
|
|
|
%build
|
2017-11-06 19:24:13 +01:00
|
|
|
%python_build
|
2012-10-01 10:26:48 +02:00
|
|
|
|
|
|
|
%install
|
2017-11-06 19:24:13 +01:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2018-11-21 09:04:37 +01:00
|
|
|
# Tests not in sdist
|
|
|
|
# %%check
|
|
|
|
# %%python_exec setup.py test
|
2012-10-01 10:26:48 +02:00
|
|
|
|
2017-11-06 19:24:13 +01:00
|
|
|
%files %{python_files}
|
2018-11-21 09:04:37 +01:00
|
|
|
%doc README
|
|
|
|
%license LICENSE
|
2012-11-20 20:24:35 +01:00
|
|
|
%{python_sitelib}/*
|
2012-10-01 10:26:48 +02:00
|
|
|
|
|
|
|
%changelog
|