From ce55bf203a03d9a0d4033f440a513b6dd1dd693d8511a9ea5a03e7bd1717e02a Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sun, 1 Dec 2024 13:22:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/home:trix/python-cppheaderparser?expand=0&rev=3 --- python-cppheaderparser.spec | 107 ++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 python-cppheaderparser.spec diff --git a/python-cppheaderparser.spec b/python-cppheaderparser.spec new file mode 100644 index 0000000..dbeed2c --- /dev/null +++ b/python-cppheaderparser.spec @@ -0,0 +1,107 @@ +%global pypi_name cppheaderparser + +Name: python-%{pypi_name} +Version: 2.7.4 +Release: 17%{?dist} +Summary: Parse C++ header files and generate a data structure + +License: BSD-3-Clause +URL: http://senexcanis.com/open-source/cppheaderparser/ +Source0: https://sourceforge.net/projects/cppheaderparser/files/cppheaderparser/CppheaderParser%202.7.4/CppHeaderParser-2.7.4.tar.gz +Patch0: 0001-cppheaderparser-silence-invalid-escape-sequence.patch + +BuildArch: noarch + +%description +Parse C++ header files and generate a data structure representing the +class. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +Provides: python-cppheaderparser +%{?python_provide:%python_provide python3-%{pypi_name}} + +%if 0%{?suse_version} +# TW +Requires: python311-ply +%else +Requires: python3dist(ply) +%endif + +%description -n python3-%{pypi_name} +Parse C++ header files and generate a data structure representing the +class. + +%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 + +%install +%py3_install + +%files -n python3-%{pypi_name} +%doc README.txt README.html +%{python3_sitelib}/CppHeaderParser/ +%{python3_sitelib}/CppHeaderParser-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Sat Nov 30 2024 Tom Rix - 2.7.4-17 +- Add requires ply + +* Thu Nov 28 2024 Tom Rix - 2.7.4-16 +- Build on TW + +* Fri Jul 19 2024 Fedora Release Engineering - 2.7.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.7.4-14 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.7.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.7.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 11 2024 Tom Rix - 2.7.4-11 +- Silence invalid escape sequence warnings +- Use spdx license + +* Fri Jul 21 2023 Fedora Release Engineering - 2.7.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 2.7.4-9 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.7.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.7.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.7.4-6 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.7.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.7.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.7.4-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Sep 17 2020 Fabian Affolter - 2.7.4-1 +- Initial package for Fedora