File python-pygccxml.spec of Package python-pygccxml
#
# spec file for package python-pygccxml
#
# Copyright (c) 2022-2023 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 http://bugs.opensuse.org/
#
Name: python-pygccxml
Version: 2.3.0
Release: 1
Summary: Python package for easy C++ declarations navigation
License: BSL-1.0
Group: Development/Libraries/Python
URL: https://github.com/CastXML/pygccxml
Source: https://github.com/CastXML/pygccxml/archive/refs/tags/v%{version}.tar.gz#/pygccxml-%{version}.tar.gz
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: CastXML-devel
%python_subpackages
%description
"...The purpose of the GCC-XML extension is to generate an XML description of a
C++ program from GCC's internal representation. Since XML is easy to parse,
other development tools will be able to work with C++ programs without the
burden of a complicated C++ parser..."
-- Introduction to GCC-XML
The purpose of pygccxml is to read a GCC-XML generated file and provide simple
framework to navigate C++ declarations using python classes.
%prep
%setup -q -n pygccxml-%{version}
%build
%{python_build}
%install
%{python_install}
%fdupes %{buildroot}/%{python3_sitelib}/pygccxml
%files %{python_files}
%license LICENSE.rst
%doc CHANGELOG.md NOTICE README.rst
%{python_sitelib}/pygccxml
%{python_sitelib}/pygccxml-%{version}-py%{python_version}.egg-info
%changelog