For Fedora >= 37, the posttrans scriptlet now distinguishes between package install ($1 == 1) and upgrade ($1 == 2).
rebased onto 49ff65e7e3cee5cdcf634b33345357b68a70b564
I assume that this was an rpm 4.18 change, and that it's what "Fix %posttrans argument on upgrade" in the 4.18 release notes is talking about.
Honestly I question the point of this whole section of the packaging guidelines, but it comes from the days when there wasn't a lot of RPM documentation and the guidelines sort of filled that role. But as long as it's there, it shouldn't be actively wrong.
rebased onto 045de17ed32544fa0e39b187ebdc0e6d4fc0307b
Pull-Request has been merged by tibbs
For Fedora >= 37, the posttrans scriptlet now distinguishes between package install ($1 == 1) and upgrade ($1 == 2).