strip unnecessary trailing semicolons; rework softlink creation
OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=112
This commit is contained in:
parent
0fde1c43f8
commit
3d3755762d
34
kmod.spec
34
kmod.spec
@ -119,40 +119,39 @@ export LDFLAGS="-Wl,-z,relro,-z,now"
|
|||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
b="%buildroot"
|
||||||
make install DESTDIR="$b";
|
%make_install
|
||||||
rm -f "$b/%_libdir"/*.la
|
rm -f "$b/%_libdir"/*.la
|
||||||
|
|
||||||
mkdir -p "$b/%_libexecdir/kmod" "$b/%_sbindir" "$b/sbin";
|
mkdir -p "$b/%_libexecdir/kmod" "$b/%_sbindir" "$b/sbin"
|
||||||
for i in depmod insmod lsmod modinfo modprobe rmmod; do
|
for i in depmod insmod lsmod modinfo modprobe rmmod; do
|
||||||
#
|
#
|
||||||
# kmod-compat and kmod-compat(usrmerge)
|
# kmod-compat and kmod-compat(usrmerge)
|
||||||
#
|
#
|
||||||
ln -s "%_bindir/kmod" "$b/%_sbindir/$i";
|
ln -s "%_bindir/kmod" "$b/%_sbindir/$i"
|
||||||
ln -s "%_bindir/kmod" "$b/sbin/$i";
|
ln -s "%_bindir/kmod" "$b/sbin/$i"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Make symlinks also available in normal fashion,
|
# Make symlinks also available in normal fashion,
|
||||||
# so one can actually run it.
|
# so one can actually run it.
|
||||||
#
|
#
|
||||||
ln -s "%_bindir/kmod" "$b/%_libexecdir/kmod/$i";
|
ln -s "%_bindir/kmod" "$b/%_libexecdir/kmod/$i"
|
||||||
done;
|
done
|
||||||
mkdir -p "$b/%_bindir" "$b/bin";
|
mkdir -p "$b/%_bindir" "$b/bin"
|
||||||
for i in lsmod; do
|
for i in lsmod; do
|
||||||
ln -s "%_bindir/kmod" "$b/%_bindir/$i";
|
ln -s "%_bindir/kmod" "$b/%_bindir/$i"
|
||||||
ln -s "%_bindir/kmod" "$b/bin/$i";
|
ln -s "%_bindir/kmod" "$b/bin/$i"
|
||||||
done;
|
done
|
||||||
|
|
||||||
#
|
#
|
||||||
# make mkinitrd happy
|
# make (all ancient versions of) mkinitrd happy which did not look in /usr
|
||||||
# (last time checked it does not look into /usr)
|
|
||||||
#
|
#
|
||||||
mkdir -p "$b"/{bin,sbin,%_lib};
|
mkdir -p "$b"/{bin,sbin,%_lib}
|
||||||
ln -s "%_bindir/kmod" "$b/bin/";
|
ln -s "%_bindir/kmod" "$b/bin/"
|
||||||
ls -l "$b/%_libdir/"
|
ls -l "$b/%_libdir/"
|
||||||
%if "%_libdir" != "/%_lib"
|
%if "%_libdir" != "/%_lib"
|
||||||
ln -s "%_libdir/libkmod.so.2" "$b/%_lib/";
|
ln -s "%_libdir/libkmod.so.2.3.1" "$b/%_lib/"
|
||||||
ln -s "%_libdir/libkmod.so.2.2.7" "$b/%_lib/";
|
cp -a "%_libdir/libkmod.so.2" "$b/%_lib/"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -162,7 +161,6 @@ ln -s "%_libdir/libkmod.so.2.2.7" "$b/%_lib/";
|
|||||||
%{?regenerate_initrd_posttrans}
|
%{?regenerate_initrd_posttrans}
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user