/usr/lib/printfilters/rpm-to-asc.fpi is in printfilters-ppd 2.13-11.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
#
# convert the rpm header to a nice ASCII format for printing
#
qf="Name : %-27{NAME} Distribution: %{DISTRIBUTION}
Version : %-27{VERSION} Vendor: %{VENDOR}
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}
Install date: %-27{INSTALLTIME:date} Build Host: %{BUILDHOST}
Group : %-27{GROUP} Source RPM: %{SOURCERPM}
Size : %{SIZE}
Summary : %{SUMMARY}
Description :\n%{DESCRIPTION}
Files:
[ %{FILENAMES}\n]\
Requires:
[ %{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]\
Provides:
[ %{PROVIDES}\n]"
rpm --qf "$qf" -qp -- -
|