[package] extra-files = [ "%{_mandir}/man1/oxipng.1*", ] [scripts.install] post = [ "mansrc='target/release/assets/oxipng.1'", "mandest='%{buildroot}%{_mandir}/man1'", "install -t \"${mandest}\" -D -p -m 0644 \"${mansrc}\"", ]