diff options
-rw-r--r-- | t/data/SPECS/rpm-query-in-scriptlet.spec | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec index 2df8c227..d7c08f1a 100644 --- a/t/data/SPECS/rpm-query-in-scriptlet.spec +++ b/t/data/SPECS/rpm-query-in-scriptlet.spec @@ -23,8 +23,14 @@ for i in sh rpm; do echo $bin >> list ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list done + +%ifos linux +%global cpio_opts --dereference +%else +%global cpio_opts %nil +%endif # Install the wanted tools and their deps: -grep '/' list | (cd / ; cpio -pumd --dereference %buildroot) +grep '/' list | (cd / ; cpio -pumd %cpio_opts %buildroot) # prelinked libraries/binaries cause rpm to abort installation on # md5sum errors while package signature does be OK :-( : |