summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS/rpm-query-in-scriptlet.spec
blob: bedd95bd24b2f647f5c3a793471ed52893090870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Summary: x
Name: rpm-query-in-scriptlet
Version: 1
Release: 1
License: x
Group: x
Url: x
BuildRoot: %{_tmppath}/%{name}

%description
x

%install
rm -rf %buildroot
echo > list
for i in sh rpm; do
   bin=`which $i`
   echo $bin >> list
   ldd $bin | sed -e 's/^[ \t]*//' -e 's/.* => //' -e 's/ .*//' >> list
done
grep '/' list | (cd / ; cpio -pumd --dereference %buildroot)

# prelinked libraries/binaries	 which
# cause rpm to abort installation on md5sum errors while package signature does
# be OK :-( :
if [ -x /usr/sbin/prelink ]; then
   for i in $(find %{buildroot}/ -type f);do /usr/sbin/prelink -u $i || : ;done
fi

find %buildroot

%post
echo "RPMLOCK_NOWAIT is '$RPMLOCK_NOWAIT'"
rpm -q foo
true

%files
/*