File python-pyvex.spec of Package python-pyvex

#
# spec file for package python-pyvex
#
# 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-pyvex
Version:        7.8.2.21
Release:        0
License:        BSD-2-Clause
Summary:        A Python interface to libVEX and VEX IR
Url:            https://github.com/angr/pyvex
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/5c/4e/04244be4d05806e7971919da2f86e0fb9211791a035c3bd5c4063f56775c/pyvex-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module archinfo >= 7.8.2.21}
BuildRequires:  %{python_module bitstring}
BuildRequires:  %{python_module cffi >= 1.0.3}
BuildRequires:  %{python_module pycparser}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-archinfo >= 7.8.2.21
Requires:       python-bitstring
Requires:       python-cffi >= 1.0.3
Requires:       python-pycparser
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# https://github.com/angr/vex/issues/14
ExclusiveArch:  %ix86 x86_64

%python_subpackages

%description
A Python interface to libVEX and VEX IR

%package devel
Summary:        A Python interface to libVEX and VEX IR -- development files
Requires:       python-pyvex = %{version}

%description devel
A Python interface to libVEX and VEX IR

This sub-package contains development files.

%prep
%setup -q -n pyvex-%{version}

%build
%python_build

%install
%python_install
%python_expand rm -f %{buildroot}%{$python_sitelib}/pyvex/lib/libpyvex.a
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%doc README.md
%{python_sitelib}/pyvex
%exclude %{python_sitelib}/pyvex/include/
%{python_sitelib}/pyvex-%{version}-py*.egg-info

%files %{python_files devel}
%defattr(-,root,root,-)
%{python_sitelib}/pyvex/include

%changelog
openSUSE Build Service is sponsored by