Accepting request 541564 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/541564 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pefile?expand=0&rev=2
This commit is contained in:
commit
265225fac7
7331
UserDB.TXT
7331
UserDB.TXT
File diff suppressed because it is too large
Load Diff
@ -1,18 +0,0 @@
|
||||
# upstream depends on $LastChangedRevision$ being set.
|
||||
# This is apparently done by SVN on checkout, but it is not appropriate for
|
||||
# openSUSE packaging. This patch forces it to the correct revision, but
|
||||
# will need mahual editing with every update.
|
||||
|
||||
Index: pefile-pefile-1.2.10-139/pefile.py
|
||||
===================================================================
|
||||
--- pefile-pefile-1.2.10-139.orig/pefile.py
|
||||
+++ pefile-pefile-1.2.10-139/pefile.py
|
||||
@@ -22,7 +22,7 @@ the root of the distribution archive.
|
||||
|
||||
__revision__ = "$LastChangedRevision$"
|
||||
__author__ = 'Ero Carrera'
|
||||
-__version__ = '1.2.10-%d' % int( __revision__[21:-2] )
|
||||
+__version__ = '1.2.10-139'
|
||||
__contact__ = 'ero.carrera@gmail.com'
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3297cb72e6a51befefc3d9b27ec7690b743ee826538629ecf68f4eee64f331ab
|
||||
size 56819
|
3
pefile-2017.11.5.tar.gz
Normal file
3
pefile-2017.11.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:675c35ee0e1677db9e80d2f48d8a7ff2cf38e6207e8cd5e2a2c6d126db025854
|
||||
size 61774
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 19 00:59:49 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version
|
||||
- Update to version 2017.9.3
|
||||
* No changelog
|
||||
- Drop unneeded force_version.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 14 21:30:03 UTC 2015 - Greg.Freemyer@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pefile
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,44 +16,61 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-pefile
|
||||
Version: 1.2.10+139
|
||||
Version: 2017.11.5
|
||||
Release: 0
|
||||
Summary: A python module to work with PE (pertable executable) files
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/erocarrera/pefile
|
||||
Source0: https://github.com/erocarrera/pefile/archive/pefile-1.2.10-139.tar.gz
|
||||
Source1: http://reverse-engineering-scripts.googlecode.com/files/UserDB.TXT
|
||||
Patch1: force_version.patch
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
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
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module future}
|
||||
%endif
|
||||
Requires: python-future
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PEFILE is a python module that is often used in malware analysis. (Replace this with text from website.)
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n pefile-pefile-1.2.10-139
|
||||
%patch1 -p1
|
||||
cp %{SOURCE1} .
|
||||
sed -i "s|\r||" COPYING UserDB.TXT
|
||||
%setup -q -n pefile-%{version}
|
||||
sed -i -e '/^#!\//, 1d' pefile.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
install -D -m 644 UserDB.TXT %{buildroot}%{_datadir}/python-pefile/UserDB.TXT
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING README
|
||||
%{_datadir}/python-pefile/
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user