2012-02-15 12:37:43 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-distorm3
|
|
|
|
|
#
|
2013-01-14 10:35:43 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-15 12:37:43 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2013-04-22 10:18:51 +00:00
|
|
|
|
2012-02-15 12:37:43 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2013-04-22 10:18:51 +00:00
|
|
|
|
2012-02-15 12:37:43 +00:00
|
|
|
Name: python-distorm3
|
2013-01-14 10:35:43 +00:00
|
|
|
Version: 3.3
|
2012-02-15 12:37:43 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Powerful Disassembler Library For x86/AMD64
|
2013-04-22 10:18:51 +00:00
|
|
|
License: GPL-3.0
|
2012-02-15 12:37:43 +00:00
|
|
|
Group: Development/Libraries/Python
|
2013-04-22 10:18:51 +00:00
|
|
|
Url: http://code.google.com/p/distorm/
|
2013-01-14 10:35:43 +00:00
|
|
|
Source: distorm3-%{version}.zip
|
2012-07-27 09:26:26 +00:00
|
|
|
Patch0: 0001-don-t-stutter-static-on-BigEndian.patch
|
2017-07-25 11:36:10 +00:00
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/gdabah/distorm/pull/116
|
|
|
|
|
Patch1: reproducible.patch
|
2013-01-14 10:35:43 +00:00
|
|
|
BuildRequires: fdupes
|
2013-04-22 10:18:51 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
|
BuildRequires: unzip
|
2012-02-15 12:37:43 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%description
|
2013-04-22 10:18:51 +00:00
|
|
|
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.
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%prep
|
2013-01-14 10:35:43 +00:00
|
|
|
%setup -q -n distorm3
|
2012-07-27 09:26:26 +00:00
|
|
|
%patch0 -p1
|
2017-07-25 11:36:10 +00:00
|
|
|
%patch1 -p1
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
2013-04-22 10:18:51 +00:00
|
|
|
python setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-lib=%{python_sitearch}
|
2013-01-14 10:35:43 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2012-02-15 12:37:43 +00:00
|
|
|
|
2012-02-27 08:35:54 +00:00
|
|
|
%files
|
2012-02-15 12:37:43 +00:00
|
|
|
%defattr(-,root,root)
|
2012-02-27 08:35:54 +00:00
|
|
|
%doc COPYING
|
|
|
|
|
%{python_sitearch}/*
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%changelog
|