File python-idalink.spec of Package python-idalink

#
# spec file for package python-idalink
#
# 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-idalink
# 0.10 upstream https://github.com/zardus/idalink/issues/17
Version:        0.10
Release:        0
# BSD-2-Clause vs. GPL-3.0+ https://github.com/zardus/idalink/issues/7
License:        GPL-3.0+
Summary:        An interface to the insides of IDA!
Url:            https://github.com/zardus/idalink
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/db/31/1c26b8c2293ab16934821d36568b8cf855063f2c8bb22e38343745bd9f50/idalink-0.11.tar.gz
# previous GPLv3 license, cf. above
Source1:        https://github.com/zardus/idalink/raw/4d2f1d63a27f3a28ecda6231fb8807a3c50e92b6/LICENSE
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module rpyc}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-rpyc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%python_subpackages

%description
An interface to the insides of IDA!

%prep
%setup -q -n idalink-0.11
[ -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