Hello community,

here is the log from the commit of package python-distorm3 for openSUSE:Factory 
checked in at 2018-06-29 22:31:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-distorm3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-distorm3.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-distorm3"

Fri Jun 29 22:31:47 2018 rev:10 rq:618311 version:3.3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-distorm3/python-distorm3.changes  
2017-08-04 11:59:56.198913972 +0200
+++ /work/SRC/openSUSE:Factory/.python-distorm3.new/python-distorm3.changes     
2018-06-29 22:32:07.426222454 +0200
@@ -1,0 +2,10 @@
+Thu Jun 21 12:40:12 UTC 2018 - [email protected]
+
+- Clean SPEC file
+
+-------------------------------------------------------------------
+Thu Aug 24 13:36:13 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+
+-------------------------------------------------------------------
@@ -64,0 +75 @@
+

Old:
----
  distorm3-3.3.zip

New:
----
  distorm3-3.3.4.zip

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

Other differences:
------------------
++++++ python-distorm3.spec ++++++
--- /var/tmp/diff_new_pack.bw2XZW/_old  2018-06-29 22:32:07.786222178 +0200
+++ /var/tmp/diff_new_pack.bw2XZW/_new  2018-06-29 22:32:07.790222175 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-distorm3
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,24 +16,27 @@
 #
 
 
-Name:           python-distorm3
-Version:        3.3
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define modname distorm3
+
+Name:           python-%{modname}
+Version:        3.3.4
 Release:        0
 Summary:        Powerful Disassembler Library For x86/AMD64
-License:        GPL-3.0
+# TODO Is it so?
+License:        GPL-3.0-only
 Group:          Development/Libraries/Python
-Url:            http://code.google.com/p/distorm/
-Source:         distorm3-%{version}.zip
+URL:            https://github.com/gdabah/distorm
+Source:         
https://files.pythonhosted.org/packages/source/d/%{modname}/%{modname}-%{version}.zip
+# Issue filed upstream https://github.com/gdabah/distorm/issues/123
 Patch0:         0001-don-t-stutter-static-on-BigEndian.patch
 # PATCH-FIX-UPSTREAM https://github.com/gdabah/distorm/pull/116
 Patch1:         reproducible.patch
+BuildRequires:  %{python_module devel}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
+BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%endif
+%python_subpackages
 
 %description
 No more parsing strings! - diStorm3 is really a decomposer, which means it
@@ -41,20 +44,26 @@
 than static text. 
 
 %prep
-%setup -q -n distorm3
+%setup -q -n %{modname}-%{version}
 %patch0 -p1
 %patch1 -p1
 
 %build
-CFLAGS="%{optflags}" python setup.py build
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
-python setup.py install --root=%{buildroot} --prefix=%{_prefix} 
--install-lib=%{python_sitearch}
-%fdupes -s %{buildroot}
+%python_install
+# setup.py install puts files into wrong directory
+# https://github.com/gdabah/distorm/issues/124
+%python_expand mkdir -p %{buildroot}%{$python_sitearch}
+%python_expand mv -v %{buildroot}%{$python_sitelib}/%{modname}* 
%{buildroot}%{$python_sitearch}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
+# tests are not packaged in the upstream tarball
 
-%files
-%defattr(-,root,root)
-%doc COPYING
+%files %{python_files}
+%license COPYING
 %{python_sitearch}/*
 
 %changelog

++++++ 0001-don-t-stutter-static-on-BigEndian.patch ++++++
--- /var/tmp/diff_new_pack.bw2XZW/_old  2018-06-29 22:32:07.802222166 +0200
+++ /var/tmp/diff_new_pack.bw2XZW/_new  2018-06-29 22:32:07.806222163 +0200
@@ -8,11 +8,9 @@
  src/prefix.c |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
 
-diff --git a/src/config.h b/src/config.h
-index 7727168..3184cd4 100644
 --- a/src/config.h
 +++ b/src/config.h
-@@ -58,7 +58,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>
+@@ -57,7 +57,7 @@ This library is licensed under the BSD l
  
  #define _DLLEXPORT_
  #define _FASTCALL_
@@ -21,11 +19,9 @@
  /* GCC ignores this directive... */
  /*#define _FASTCALL_ __attribute__((__fastcall__))*/
  
-diff --git a/src/prefix.c b/src/prefix.c
-index 12bfb11..fff5d76 100644
 --- a/src/prefix.c
 +++ b/src/prefix.c
-@@ -128,7 +128,7 @@ uint16_t prefixes_set_unused_mask(_PrefixState* ps)
+@@ -116,7 +116,7 @@ uint16_t prefixes_set_unused_mask(_Prefi
   * Mark a prefix as unused, and bookkeep where we last saw this same type,
   * because in the future we might want to disable it too.
   */
@@ -34,6 +30,3 @@
  {
        prefixes_ignore(ps, pi);
        /* Book-keep the current index for this type. */
--- 
-1.6.0.2
-


Reply via email to