Bug 2554737

Summary: Review Request: git-diff-html - Generate side-by-side HTML diff reports for Git repositories
Product: [Fedora] Fedora Reporter: luhaoran <37183985>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, package-review
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 177841    

Description luhaoran 2026-10-18 08:40:12 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/fedora-rawhide-x86_64/11164538-git-diff-html/git-diff-html.spec

SRPM URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/fedora-rawhide-x86_64/11164538-git-diff-html/git-diff-html-1.0-1.fc46.src.rpm

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.

Fedora Account System Username: luhaoran


Reproducible: Always

Comment 1 Artur Frenszek-Iwicki 2026-10-19 14:42:23 UTC
> Source0:        %{name}-%{version}.tar.gz
Ideally, this should be a downloadable URL.
Since you're hosting on GitHub, you should consider using git tags for marking new releases.
Then, you can use the forge macros to auto-generate the URLs.
https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

> 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
You should use `-p` here to preserve file timestamps.
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps

Comment 2 luhaoran 2026-10-19 17:07:03 UTC
Thanks for the review! Both points are fixed:

1. Source0 is now a downloadable GitHub archive URL using the v%{version} release tag (git tags now mark releases):
   https://github.com/LuHaoran1981/GitDiffLocal/archive/refs/tags/v%{version}.tar.gz

2. Added -p to the install commands to preserve file timestamps.

Updated:
Spec URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/srpm-builds/11173452/git-diff-html.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/luhaoran/git-diff-html/srpm-builds/11173452/git-diff-html-1.0-1.src.rpm

Copr build: https://copr.fedorainfracloud.org/coprs/luhaoran/git-diff-html/build/11173452/

Comment 3 Artur Frenszek-Iwicki 2026-11-06 09:58:51 UTC
Please upload the files to some persistent storage. COPR deletes the files after a couple of days; both the spec and srpm links are now 404.