forked from pool/schily
remove testfiles; rework u-a scriptlets
OBS-URL: https://build.opensuse.org/package/show/utilities/schily?expand=0&rev=19
This commit is contained in:
parent
860beda65e
commit
51fe21929f
27
schily.spec
27
schily.spec
@ -471,6 +471,9 @@ mv "$b/%_mandir/man1/mt.1" "$b/%_mandir/man1/smt.1"
|
|||||||
mv "$b/%_sbindir/rmt" "$b/%_sbindir/srmt" # make room for u-a
|
mv "$b/%_sbindir/rmt" "$b/%_sbindir/srmt" # make room for u-a
|
||||||
mv "$b/%_mandir/man1/rmt.1" "$b/%_mandir/man1/srmt.1"
|
mv "$b/%_mandir/man1/rmt.1" "$b/%_mandir/man1/srmt.1"
|
||||||
|
|
||||||
|
# get rid of things that upset rpmlint
|
||||||
|
find "$b/usr/share/doc" -type f -name "*big*" -print -delete
|
||||||
|
|
||||||
# deal with this another time
|
# deal with this another time
|
||||||
rm -Rf "$b/usr/ccs" "$b/usr/xpg4" "$b/%_bindir/sccs"
|
rm -Rf "$b/usr/ccs" "$b/usr/xpg4" "$b/%_bindir/sccs"
|
||||||
rm -f \
|
rm -f \
|
||||||
@ -649,23 +652,23 @@ true
|
|||||||
true
|
true
|
||||||
|
|
||||||
%post mt
|
%post mt
|
||||||
%_sbindir/update-alternatives --force \
|
"%_sbindir/update-alternatives" \
|
||||||
--install %_bindir/mt mt %_bindir/smt 10 \
|
--install "%_bindir/mt" mt "%_bindir/smt" 10 \
|
||||||
--slave %_mandir/man1/mt.1%ext_man mt.1%ext_man %_mandir/man1/smt.1%ext_man
|
--slave "%_mandir/man1/mt.1%ext_man" "mt.1%ext_man" "%_mandir/man1/smt.1%ext_man"
|
||||||
|
|
||||||
%postun mt
|
%preun mt
|
||||||
if test ! -f %_bindir/srmt; then
|
if test "$1" = 0; then
|
||||||
%_sbindir/update-alternatives --remove mt %_bindir/smt
|
"%_sbindir/update-alternatives" --remove mt "%_bindir/smt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post rmt
|
%post rmt
|
||||||
%_sbindir/update-alternatives --force \
|
"%_sbindir/update-alternatives" \
|
||||||
--install %_sbindir/rmt rmt %_sbindir/srmt 30 \
|
--install "%_sbindir/rmt" rmt "%_sbindir/srmt" 10 \
|
||||||
--slave %_mandir/man1/rmt.1%ext_man rmt.1%ext_man %_mandir/man1/srmt.1%ext_man
|
--slave "%_mandir/man8/rmt.1%ext_man" "rmt.1%ext_man" "%_mandir/man8/srmt.1%ext_man"
|
||||||
|
|
||||||
%postun rmt
|
%preun rmt
|
||||||
if test ! -f %_sbindir/srmt; then
|
if test "$1" = 0; then
|
||||||
%_sbindir/update-alternatives --remove rmt %_sbindir/srmt
|
"%_sbindir/update-alternatives" --remove rmt "%_sbindir/srmt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n libcdrdeflt1_0 -p /sbin/ldconfig
|
%post -n libcdrdeflt1_0 -p /sbin/ldconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user