Hello community,

here is the log from the commit of package python-pefile for openSUSE:Factory 
checked in at 2017-11-14 13:04:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pefile (Old)
 and      /work/SRC/openSUSE:Factory/.python-pefile.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pefile"

Tue Nov 14 13:04:10 2017 rev:2 rq:541564 version:2017.11.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pefile/python-pefile.changes      
2015-08-19 09:29:43.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pefile.new/python-pefile.changes 
2017-11-14 13:04:24.623178544 +0100
@@ -1,0 +2,8 @@
+Thu Oct 19 00:59:49 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version
+- Update to version 2017.9.3
+  * No changelog
+- Drop unneeded force_version.patch
+
+-------------------------------------------------------------------

Old:
----
  UserDB.TXT
  force_version.patch
  pefile-1.2.10-139.tar.gz

New:
----
  pefile-2017.11.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pefile.spec ++++++
--- /var/tmp/diff_new_pack.WHBImq/_old  2017-11-14 13:04:25.711138763 +0100
+++ /var/tmp/diff_new_pack.WHBImq/_new  2017-11-14 13:04:25.715138616 +0100
@@ -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}
+
+%if %{with test}
+%check
+%python_exec setup.py test
+%endif
 
-%files
-%defattr(-,root,root)
-%doc COPYING README
-%{_datadir}/python-pefile/
+%files %{python_files}
+%defattr(-,root,root,-)
+%doc LICENSE README
 %{python_sitelib}/*
 
 %changelog

++++++ pefile-1.2.10-139.tar.gz -> pefile-2017.11.5.tar.gz ++++++
++++ 5375 lines of diff (skipped)


Reply via email to