File python-cle.spec of Package python-cle

#
# spec file for package python-cle
#
# 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
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-cle
Version:        7.8.2.21
Release:        0
Summary:        CLE Loads Everything (at least, many binary formats!)
License:        BSD-2-Clause
Group:          Development/Languages/Python
Url:            https://github.com/angr/cle
Source:         https://pypi.python.org/packages/42/c6/31cdaac4f1b54b98e78154eea97737b1aaf359c1db983dd2aab5cfe8178d/cle-%{version}.tar.gz
# https://github.com/angr/cle/issues/114
Source1:        https://github.com/angr/cle/raw/master/LICENSE
BuildRequires:  %{python_module archinfo >= 7.8.2.21}
BuildRequires:  %{python_module cffi}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module idalink}
BuildRequires:  %{python_module pefile}
BuildRequires:  %{python_module pyelftools >= 0.24}
BuildRequires:  %{python_module pyvex >= 7.8.2.21}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-archinfo >= 7.8.2.21
Requires:       python-cffi
Requires:       python-idalink
Requires:       python-pefile
Requires:       python-pyelftools >= 0.24
Requires:       python-pyvex >= 7.8.2.21
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
# Cf. python-pyvex
ExclusiveArch:  %ix86 x86_64

%python_subpackages

%description
CLE loads binaries and their associated libraries, resolves imports and
provides an abstraction of process memory the same way as if it was loader by
the OS's loader.

%prep
%setup -q -n cle-%{version}
[ -e LICENSE ] || cp %{SOURCE1} LICENSE

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by