Compare commits
10 Commits
7502eb7f0f
...
main
Author | SHA256 | Date | |
---|---|---|---|
3e480c7988 | |||
565e9253e4 | |||
d589e3d6f7 | |||
44613645f0 | |||
c08117951e | |||
d50435eb46 | |||
a961b368e3 | |||
fabc63933d | |||
7fe3370997 | |||
ce55bf203a |
118
python-cppheaderparser.spec
Normal file
118
python-cppheaderparser.spec
Normal 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
|
Reference in New Issue
Block a user