15
0

Accepting request 148395 from devel:languages:python

update to 3.3 (forwarded request 148114 from saschpe)

OBS-URL: https://build.opensuse.org/request/show/148395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distorm3?expand=0&rev=4
This commit is contained in:
Stephan Kulow
2013-01-14 13:07:55 +00:00
committed by Git OBS Bridge
4 changed files with 43 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f381d0ddabed04ee9161633d3eb3c0bdb87100accd9b669385d4d72b36931f69
size 137505

3
distorm3-3.3.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d311d232e108def8acac0d4f6514e7bc070e37d7aa123ab9a9a05b9322321582
size 239738

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Fri Jan 11 17:15:31 UTC 2013 - p.drouand@gmail.com
- Update to 3.3 version:
* The structure of a decoded instruction now contains new fields
that let one know how the instruction affected the CPU flags (modified,
tested, undefined). For more info see the last three fields of the
DInst structure inside DecomposeInterface.
* Compacted the DB of instructions much more, with another level of
shared data among similar instructions...
* The Python bindings now support the control flow features that
diStorm3 itself support, thanks to Vext01.
- Remove duplicate files with fdupes
-------------------------------------------------------------------
Fri Jan 11 17:14:12 UTC 2013 - p.drouand@gmail.com
- Update to 3.2 version:
* Fixed many instructions, either operand accuracy problems or typos
in mnemonics.
* Fixed a few bugs introduced in July 2011.
* Added new instructions such as: INVPCID, TZCNT, RDxSBASE, WRxSBASE,
CVTPS2PH, CVTPH2PS and more. Added a new compiler directive DISTORM_LIGHT
to compile only distorm_decompose (no text formatting) to make diStorm
smaller in size (should save around 20kb), thanks to Marius Negrutiu of BullGuard.
* Fixed the Java wrapper to support latest version.
-------------------------------------------------------------------
Thu Jan 3 19:03:02 UTC 2013 - toddrme2178@gmail.com
- Fix builds for SLES 11
-------------------------------------------------------------------
Fri Jul 27 08:40:20 UTC 2012 - dvaleev@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-distorm3
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products 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,28 +16,28 @@
#
Name: python-distorm3
Version: 1.0
Version: 3.3
Release: 0
License: GPL-3.0
Summary: Powerful Disassembler Library For x86/AMD64
Url: http://code.google.com/p/distorm/
Group: Development/Libraries/Python
Source: distorm3-1.0.zip
Source: distorm3-%{version}.zip
Patch0: 0001-don-t-stutter-static-on-BigEndian.patch
BuildRequires: pkg-config
BuildRequires: python-devel > 2.5
BuildRequires: unzip
BuildRequires: fdupes
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)")}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
%description
No more parsing strings! - diStorm3 is really a decomposer, which means it takes an instruction and returns a binary structure which describes it rather than static text.
%prep
%setup -q -n distorm3-1.0
%setup -q -n distorm3
%patch0 -p1
%build
@@ -46,9 +46,12 @@ CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%ifarch x86_64 ppc64
%if 0%{?suse_version} && 0%{?suse_version} > 1110
install -d %{buildroot}%{python_sitearch}
mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch}
%endif
%endif
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)