Compare commits

...

10 Commits

Author SHA256 Message Date
3e480c7988 OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=6 2025-02-25 15:21:04 +00:00
565e9253e4 OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=5 2025-02-13 17:07:08 +00:00
d589e3d6f7 OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=4 2025-02-13 17:03:54 +00:00
44613645f0 OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=3 2025-02-13 17:00:08 +00:00
c08117951e OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=2 2025-02-13 16:58:07 +00:00
d50435eb46 Accepting request 1243360 from home:trix
Needed to build roctracer

OBS-URL: https://build.opensuse.org/request/show/1243360
OBS-URL: https://build.opensuse.org/package/show/science:GPU:ROCm/python-cppheaderparser?expand=0&rev=1
2025-02-07 14:07:56 +00:00
a961b368e3 OBS-URL: https://build.opensuse.org/package/show/home:trix/python-cppheaderparser?expand=0&rev=6 2025-02-05 13:00:36 +00:00
fabc63933d OBS-URL: https://build.opensuse.org/package/show/home:trix/python-cppheaderparser?expand=0&rev=5 2025-02-05 12:33:11 +00:00
7fe3370997 OBS-URL: https://build.opensuse.org/package/show/home:trix/python-cppheaderparser?expand=0&rev=4 2024-12-01 13:38:41 +00:00
ce55bf203a OBS-URL: https://build.opensuse.org/package/show/home:trix/python-cppheaderparser?expand=0&rev=3 2024-12-01 13:22:52 +00:00

118
python-cppheaderparser.spec Normal file
View File

@@ -0,0 +1,118 @@
%if 0%{?suse_version}
%{?!python_module:%define python_module() python3-%{**}}
%else
%global python_files -n python3-cppheaderparser
%define python_sitelib %python3_sitelib
%define python_subpackages %nil
%endif
Name: python-cppheaderparser
Version: 2.7.4
Release: 18%{?dist}
Summary: Parse C++ header files and generate a data structure
License: BSD-3-Clause
URL: http://senexcanis.com/open-source/cppheaderparser/
Source0: CppHeaderParser-2.7.4.tar.gz
Patch0: 0001-cppheaderparser-silence-invalid-escape-sequence.patch
%if 0%{?suse_version}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
Requires: %{python_module ply}
%else
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
Requires: python3dist(ply)
%endif
BuildArch: noarch
%python_subpackages
%description
Parse C++ header files and generate a data structure representing the
class.
%if 0%{?fedora}
%package -n python3-cppheaderparser
Summary: %{summary}
%description -n python3-cppheaderparser
Parse C++ header files and generate a data structure representing the
class.
%endif
%prep
%autosetup -p1 -n CppHeaderParser-%{version}
rm -rf %{pypi_name}.egg-info
# Remove outdated parts (Python 2.x)
rm -rf CppHeaderParser/{examples,docs}
sed -i -e '/^#!\//, 1d' CppHeaderParser/CppHeaderParser.py
%build
%py3_build
%{?python_build: %python_build}
%install
%py3_install
%{?python_install: %python_install}
%files %{python_files}
%doc README.txt README.html
%{python_sitelib}/CppHeaderParser/
%{python_sitelib}/CppHeaderParser*.egg-info/
%changelog
* Thu Feb 13 2025 Tom Rix <Tom.Rix@amd.com> - 2.7.4-18
- Fix SLE 15.6
* Wed Feb 5 2025 Tom Rix <Tom.Rix@amd.com> - 2.7.4-17
- Fix TW build
* Mon Jan 20 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.7.4-14
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 11 2024 Tom Rix <trix@redhat.com> - 2.7.4-11
- Silence invalid escape sequence warnings
- Use spdx license
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.7.4-9
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.7.4-6
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.7.4-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Sep 17 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.7.4-1
- Initial package for Fedora