Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
79f1757a96 |
@@ -7,25 +7,9 @@ Summary: Parse C++ header files and generate a data structure
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: http://senexcanis.com/open-source/cppheaderparser/
|
||||
%if 0%{?fedora}
|
||||
Source0: %{pypi_source CppHeaderParser}
|
||||
%else
|
||||
Source0: https://sourceforge.net/projects/cppheaderparser/files/cppheaderparser/CppheaderParser%%20%{version}/CppHeaderParser-%{version}.tar.gz
|
||||
%endif
|
||||
Patch0: 0001-cppheaderparser-silence-invalid-escape-sequence.patch
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
Requires: %{python_module ply}
|
||||
|
||||
%{python_subpackages}
|
||||
%else
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(setuptools)
|
||||
%endif
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -35,6 +19,8 @@ class.
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(setuptools)
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
@@ -48,34 +34,22 @@ rm -rf %{pypi_name}.egg-info
|
||||
rm -rf CppHeaderParser/{examples,docs}
|
||||
sed -i -e '/^#!\//, 1d' CppHeaderParser/CppHeaderParser.py
|
||||
|
||||
%if 0%{?fedora}
|
||||
%generate_buildrequires
|
||||
%{?pyproject_buildrequires}
|
||||
%endif
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%if 0%{?fedora}
|
||||
%{pyproject_save_files CppHeaderParser}
|
||||
%endif
|
||||
%pyproject_save_files CppHeaderParser
|
||||
|
||||
%if 0%{?fedora}
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%doc README.txt README.html
|
||||
%else
|
||||
%files %{python_files}
|
||||
%doc README.txt README.html
|
||||
%{python_sitelib}/CppHeaderParser/
|
||||
%{python_sitelib}/cppheaderparser-*.dist-info/
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Jul 26 2025 Egbert Eich <eich@suse.com> - 2.7.4-19
|
||||
Make package build on SUSE.
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Mon Jul 14 2025 Tom Rix <Tom.Rix@amd.com> - 2.7.4-18
|
||||
- Use pyproject macros
|
||||
|
Reference in New Issue
Block a user