Name: git-diff-html Version: 1.0 Release: 1%{?dist} Summary: Generate side-by-side HTML diff reports for Git repositories License: GPL-3.0-or-later URL: https://github.com/LuHaoran1981/GitDiffLocal Source0: %{name}-%{version}.tar.gz BuildArch: noarch Requires: python3 Requires: git %description git-diff-html renders the differences in a Git repository as a Gerrit/BeyondCompare-style side-by-side HTML report. It supports comparing the working tree against HEAD or any commit, two commits against each other, and staged changes. Reports feature line-level and character-level diff highlighting, C/C++ syntax highlighting, a navigable file list, and an interactive two-pane viewer. The report is a single self-contained HTML file. %prep %autosetup # Use the system Python interpreter (Fedora convention). sed -i '1s|^#!/usr/bin/env python3|#!/usr/bin/python3|' git_diff_html.py %build # Pure Python script, nothing to compile. %install install -D -m 0755 git_diff_html.py %{buildroot}%{_bindir}/git-diff-html install -D -m 0644 git-diff-html.1 %{buildroot}%{_mandir}/man1/git-diff-html.1 %files %license LICENSE %doc README.md %{_bindir}/git-diff-html %{_mandir}/man1/git-diff-html.1* %changelog * Sat Oct 18 2026 Lu Haoran - 1.0-1 - Initial package