%global pkgvers 0 %global scdate0 20250907 %global schash0 e50a4ae01985273a1b15efd1d4540f764c878976 %global branch0 develop %global source0 https://github.com/cpplint/cpplint.git %global sshort0 %{expand:%%{lua:print(('%{schash0}'):sub(1,8))}} Name: cpplint Version: %(curl -s "https://raw.githubusercontent.com/cpplint/cpplint/%{schash0}/cpplint.py" | grep __VERSION__ | head -1 | cut -d'-' -f1 | sed 's|[^[:digit:].]||g') Release: %{scdate0}.%{pkgvers}.git%{sshort0}%{?dist} Summary: Static code checker for C++ URL: https://github.com/%{name}/%{name} License: BSD-3-Clause BuildArch: noarch BuildRequires: python3-devel %{?python_enable_dependency_generator} %description Cpplint is a command-line tool to check C/C++ files for style issues following Google's C++ style guide. %py_provides python3-%{name} %prep %setup -T -c -n %{name} git clone --depth 1 -n -b %{branch0} %{source0} . git fetch --depth 1 origin %{schash0} git reset --hard %{schash0} git --no-pager log --format=fuller %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cpplint %files -f %{pyproject_files} %{_bindir}/%{name} %changelog * Sun Sep 7 2025 Balint Cristian - Intial git upstream packaging