From 0156da26b1097cb1d1c8c4a77e92ea10329696e5fc55ef057aceaffd34915e4b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 7 Aug 2025 12:03:37 +0000 Subject: [PATCH] Required for AMD ROCm for SLE 15 SP7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CppHeaderParser?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + CppHeaderParser-2.7.4.tar.gz | 3 ++ python-CppHeaderParser.changes | 4 +++ python-CppHeaderParser.rpmlintrc | 1 + python-CppHeaderParser.spec | 62 ++++++++++++++++++++++++++++++++ 6 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 CppHeaderParser-2.7.4.tar.gz create mode 100644 python-CppHeaderParser.changes create mode 100644 python-CppHeaderParser.rpmlintrc create mode 100644 python-CppHeaderParser.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/CppHeaderParser-2.7.4.tar.gz b/CppHeaderParser-2.7.4.tar.gz new file mode 100644 index 0000000..2616c4d --- /dev/null +++ b/CppHeaderParser-2.7.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:382b30416d95b0a5e8502b214810dcac2a56432917e2651447d3abe253e3cc42 +size 54445 diff --git a/python-CppHeaderParser.changes b/python-CppHeaderParser.changes new file mode 100644 index 0000000..1f4c64a --- /dev/null +++ b/python-CppHeaderParser.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Aug 6 18:01:18 UTC 2025 - Matej Cepl + +- Initial packaging effort for CppHeaderParser 2.7.4 diff --git a/python-CppHeaderParser.rpmlintrc b/python-CppHeaderParser.rpmlintrc new file mode 100644 index 0000000..931cb8d --- /dev/null +++ b/python-CppHeaderParser.rpmlintrc @@ -0,0 +1 @@ +addFilter("devel-file-in-non-devel-package.*/usr/lib/python3.*/site-packages/CppHeaderParser/examples/SampleClass.h") diff --git a/python-CppHeaderParser.spec b/python-CppHeaderParser.spec new file mode 100644 index 0000000..6b2a7d6 --- /dev/null +++ b/python-CppHeaderParser.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-CppHeaderParser +# +# Copyright (c) 2025 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/ +# + + +Name: python-CppHeaderParser +Version: 2.7.4 +Release: 0 +Summary: Parse C++ header files and generate a data structure representing the class +License: BSD-3-Clause +URL: https://github.com/senex/cppheaderparser +Source: https://files.pythonhosted.org/packages/source/C/CppHeaderParser/CppHeaderParser-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module ply} +# /SECTION +BuildRequires: fdupes +Requires: python-ply +BuildArch: noarch +%python_subpackages + +%description +Parse C++ header files and generate a data structure representing +the class + +%prep +%autosetup -p1 -n CppHeaderParser-%{version} + +sed -E -i "1{/^#!\/usr\/bin.*python/d}" CppHeaderParser/CppHeaderParser.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%{python_expand rm -r %{buildroot}%{$python_sitelib}/CppHeaderParser/doc +%fdupes %{buildroot}%{$python_sitelib} +} + +%files %{python_files} +%doc README.html README.txt +%doc CppHeaderParser/doc/CppHeaderParser.html +%{python_sitelib}/CppHeaderParser +%{python_sitelib}/cppheaderparser-%{version}*-info + +%changelog