On Tuesday, February 22, 2022 9:29:49 AM CET Ondrej Mosnacek wrote:
> What is currently missing in rpmspec is support to parse the
input form
> stdin
instead of a file [2]. But there is already a PR to support it
> [3].
`rpmspec -P /dev/stdin` seems to work already now. I use this "trick"
all the time with programs that don't support stdin/stdout natively.
(Sometimes even that doesn't work, e.g. if the program tries to seek
or mmap it, but often it does.)
I think it only works if a shell is involved. If I try it rpmspec reports:
error: Unable to open /dev/stdin: No such device or address
as lua does execv() on rpmspec.