From 51546a56c8ad495ec5edc14609a046efcdf21788a2a38ffc864c3111e0218433 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 Jan 2013 18:10:21 +0000 Subject: [PATCH 1/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=7 --- python-distorm3.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-distorm3.spec b/python-distorm3.spec index 7d30932..e107813 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -30,7 +30,6 @@ 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)")} -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %description @@ -45,7 +44,7 @@ CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%ifarch x86_64 ppc64 +%ifarch x86_64 ppc64 && 0%{?suse_version} && 0%{?suse_version} > 1110 install -d %{buildroot}%{python_sitearch} mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch} %endif From 71201626d103dbe55bf0175058d747ae74e42c59276df2a4215825c84bcb4139 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 Jan 2013 18:10:49 +0000 Subject: [PATCH 2/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=8 --- python-distorm3.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-distorm3.spec b/python-distorm3.spec index e107813..c464e00 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -44,7 +44,7 @@ CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%ifarch x86_64 ppc64 && 0%{?suse_version} && 0%{?suse_version} > 1110 +%ifarch x86_64 ppc64 && 0%{?suse_version} > 1110 install -d %{buildroot}%{python_sitearch} mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch} %endif From 2a784cd48be4e32bba4a999859759546da29d39bc013466054af87089b4184cb Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 Jan 2013 18:26:21 +0000 Subject: [PATCH 3/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=9 --- python-distorm3.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-distorm3.spec b/python-distorm3.spec index c464e00..2b15ee3 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -44,10 +44,12 @@ CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%ifarch x86_64 ppc64 && 0%{?suse_version} > 1110 +%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 %files %defattr(-,root,root) From 6947fcfa46176d0b93a972f5b7b124a3e68579a82413805d42ac1949d6d51452 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 Jan 2013 19:03:42 +0000 Subject: [PATCH 4/5] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=10 --- python-distorm3.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-distorm3.changes b/python-distorm3.changes index 001f866..2423804 100644 --- a/python-distorm3.changes +++ b/python-distorm3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 From 81f720c8273e0fc7ea5349cac865b287125ffec5065f5b49d7b7cb17d30e58b7 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 14 Jan 2013 10:35:43 +0000 Subject: [PATCH 5/5] Accepting request 148114 from home:posophe:branches:devel:languages:python update to 3.3 OBS-URL: https://build.opensuse.org/request/show/148114 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=11 --- distorm3-1.0.zip | 3 --- distorm3-3.3.zip | 3 +++ python-distorm3.changes | 27 +++++++++++++++++++++++++++ python-distorm3.spec | 10 ++++++---- 4 files changed, 36 insertions(+), 7 deletions(-) delete mode 100644 distorm3-1.0.zip create mode 100644 distorm3-3.3.zip diff --git a/distorm3-1.0.zip b/distorm3-1.0.zip deleted file mode 100644 index d622ad1..0000000 --- a/distorm3-1.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f381d0ddabed04ee9161633d3eb3c0bdb87100accd9b669385d4d72b36931f69 -size 137505 diff --git a/distorm3-3.3.zip b/distorm3-3.3.zip new file mode 100644 index 0000000..a289075 --- /dev/null +++ b/distorm3-3.3.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d311d232e108def8acac0d4f6514e7bc070e37d7aa123ab9a9a05b9322321582 +size 239738 diff --git a/python-distorm3.changes b/python-distorm3.changes index 2423804..59d1e92 100644 --- a/python-distorm3.changes +++ b/python-distorm3.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +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 diff --git a/python-distorm3.spec b/python-distorm3.spec index 2b15ee3..c8367e2 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -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,17 +16,18 @@ # 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)")} @@ -36,7 +37,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 @@ -50,6 +51,7 @@ install -d %{buildroot}%{python_sitearch} mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch} %endif %endif +%fdupes -s %{buildroot} %files %defattr(-,root,root)