summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/data/SPECS/ordering-scriptlets/a_1.spec7
-rw-r--r--t/data/SPECS/rpm-query-in-scriptlet.spec7
2 files changed, 2 insertions, 12 deletions
diff --git a/t/data/SPECS/ordering-scriptlets/a_1.spec b/t/data/SPECS/ordering-scriptlets/a_1.spec
index fc34d27f..41776692 100644
--- a/t/data/SPECS/ordering-scriptlets/a_1.spec
+++ b/t/data/SPECS/ordering-scriptlets/a_1.spec
@@ -36,14 +36,9 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/bin/
cp a $RPM_BUILD_ROOT/bin/a
-%ifos linux
-%global cpio_opts --dereference
-%else
-%global cpio_opts %nil
-%endif
# Install the wanted libs if not static:
ldd a | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' > list
-grep '/' list | (cd / ; cpio -pumd %cpio_opts %buildroot)
+grep '/' list | (cd / ; cpio -pumdL %buildroot)
find %buildroot
%clean
diff --git a/t/data/SPECS/rpm-query-in-scriptlet.spec b/t/data/SPECS/rpm-query-in-scriptlet.spec
index 630d036d..0ed59ecd 100644
--- a/t/data/SPECS/rpm-query-in-scriptlet.spec
+++ b/t/data/SPECS/rpm-query-in-scriptlet.spec
@@ -24,13 +24,8 @@ for i in sh rpm; do
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 %cpio_opts %buildroot)
+grep '/' list | (cd / ; cpio -pumdL %buildroot)
# prelinked libraries/binaries cause rpm to abort installation on
# md5sum errors while package signature does be OK :-( :