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/%_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
|
||||
rm -Rf "$b/usr/ccs" "$b/usr/xpg4" "$b/%_bindir/sccs"
|
||||
rm -f \
|
||||
@ -649,23 +652,23 @@ true
|
||||
true
|
||||
|
||||
%post mt
|
||||
%_sbindir/update-alternatives --force \
|
||||
--install %_bindir/mt mt %_bindir/smt 10 \
|
||||
--slave %_mandir/man1/mt.1%ext_man mt.1%ext_man %_mandir/man1/smt.1%ext_man
|
||||
"%_sbindir/update-alternatives" \
|
||||
--install "%_bindir/mt" mt "%_bindir/smt" 10 \
|
||||
--slave "%_mandir/man1/mt.1%ext_man" "mt.1%ext_man" "%_mandir/man1/smt.1%ext_man"
|
||||
|
||||
%postun mt
|
||||
if test ! -f %_bindir/srmt; then
|
||||
%_sbindir/update-alternatives --remove mt %_bindir/smt
|
||||
%preun mt
|
||||
if test "$1" = 0; then
|
||||
"%_sbindir/update-alternatives" --remove mt "%_bindir/smt"
|
||||
fi
|
||||
|
||||
%post rmt
|
||||
%_sbindir/update-alternatives --force \
|
||||
--install %_sbindir/rmt rmt %_sbindir/srmt 30 \
|
||||
--slave %_mandir/man1/rmt.1%ext_man rmt.1%ext_man %_mandir/man1/srmt.1%ext_man
|
||||
"%_sbindir/update-alternatives" \
|
||||
--install "%_sbindir/rmt" rmt "%_sbindir/srmt" 10 \
|
||||
--slave "%_mandir/man8/rmt.1%ext_man" "rmt.1%ext_man" "%_mandir/man8/srmt.1%ext_man"
|
||||
|
||||
%postun rmt
|
||||
if test ! -f %_sbindir/srmt; then
|
||||
%_sbindir/update-alternatives --remove rmt %_sbindir/srmt
|
||||
%preun rmt
|
||||
if test "$1" = 0; then
|
||||
"%_sbindir/update-alternatives" --remove rmt "%_sbindir/srmt"
|
||||
fi
|
||||
|
||||
%post -n libcdrdeflt1_0 -p /sbin/ldconfig
|
||||
|
Loading…
x
Reference in New Issue
Block a user