File python-pygccxml.spec of Package python-pygccxml

#
# spec file for package python-pygccxml
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define packagename pygccxml
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pygccxml
Version:        2.0.1
Release:        0
Summary:        Python package for easy C++ declarations navigation
License:        BSL-1.0
URL:            https://github.com/CastXML/pygccxml
Source:         https://github.com/CastXML/pygccxml/archive/v%{version}.tar.gz#/%{packagename}-%{version}.tar.gz
BuildRequires:  %{pythons >= 3.5}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  CastXML-devel
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
%python_subpackages

%description
pygccxml is a specialized XML reader that reads the output from CastXML.
It provides a simple framework to navigate C++ declarations, using 
Python classes.

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

%build
%python_build

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

%check
# pygccxml configuration file need compiler_path
# %%pyunittest

%files %{python_files}
%doc README.rst
%license LICENSE.rst
%{python_sitelib}/*egg-info
%{python_sitelib}/%{packagename}

%changelog
openSUSE Build Service is sponsored by