2012-02-15 12:37:43 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-distorm3
|
|
|
|
|
#
|
2020-01-26 17:06:51 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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
|
|
|
|
2018-11-09 12:22:48 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-15 12:37:43 +00:00
|
|
|
#
|
|
|
|
|
|
2013-04-22 10:18:51 +00:00
|
|
|
|
2018-06-21 12:41:25 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define modname distorm3
|
|
|
|
|
Name: python-%{modname}
|
2020-04-02 12:18:21 +00:00
|
|
|
Version: 3.4.2
|
2012-02-15 12:37:43 +00:00
|
|
|
Release: 0
|
2018-07-26 13:08:41 +00:00
|
|
|
Summary: Disassembler Library For x86/AMD64
|
2018-06-21 12:53:08 +00:00
|
|
|
License: BSD-3-Clause
|
2012-02-15 12:37:43 +00:00
|
|
|
Group: Development/Libraries/Python
|
2018-06-21 12:41:25 +00:00
|
|
|
URL: https://github.com/gdabah/distorm
|
2020-04-02 12:18:21 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/distorm3/%{modname}-%{version}.tar.gz
|
2018-06-21 12:41:25 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-07-23 10:25:19 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2013-01-14 10:35:43 +00:00
|
|
|
BuildRequires: fdupes
|
2018-06-21 12:41:25 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-04-22 10:18:51 +00:00
|
|
|
BuildRequires: unzip
|
2018-06-21 12:41:25 +00:00
|
|
|
%python_subpackages
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%description
|
2018-07-26 13:08:41 +00:00
|
|
|
diStorm3 is 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
|
2020-04-02 12:18:21 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%build
|
2018-06-21 12:41:25 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
%python_build
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-06-21 12:41:25 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
|
|
# tests are not packaged in the upstream tarball
|
2012-02-15 12:37:43 +00:00
|
|
|
|
2018-06-21 12:41:25 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license COPYING
|
2012-02-27 08:35:54 +00:00
|
|
|
%{python_sitearch}/*
|
2012-02-15 12:37:43 +00:00
|
|
|
|
|
|
|
|
%changelog
|