Accepting request 205161 from home:gberh:branches:shells
pdksh has been removed from Factory and /etc/ksh.kshrc is now only delivered and used by ksh, thus take ownership /etc/ksh.kshrc OBS-URL: https://build.opensuse.org/request/show/205161 OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=187
This commit is contained in:
parent
ac71aa183f
commit
9a7a626fae
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 29 17:44:05 UTC 2013 - gber@opensuse.org
|
||||
|
||||
- deliver %{_sysconfdir}/ksh.kshrc as a packaged symlink on
|
||||
openSUSE >= 13.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 25 14:07:57 UTC 2013 - werner@suse.de
|
||||
|
||||
|
12
ksh.spec
12
ksh.spec
@ -670,6 +670,9 @@ fi
|
||||
ln -sf /%{_lib}/ast/$so %{buildroot}%{_libdir}/ast/${so%%%%.*}.so
|
||||
done
|
||||
rm -f %{buildroot}%{_libdir}/ast/*.so.*
|
||||
%if %suse_version >= 1320
|
||||
ln -s %{_sysconfdir}/bash.bashrc %{buildroot}%{_sysconfdir}/ksh.kshrc
|
||||
%endif
|
||||
sed -rn '/^\.de Af/,/^\.\./p;/^\.de aF/,/^\.\./p' man/man3/int.3 > af.man
|
||||
for man in $(grep -l '\.}S' man/man[138]/*.[138]); do
|
||||
sed -ri '1r af.man' $man
|
||||
@ -754,7 +757,9 @@ fi
|
||||
%endif
|
||||
|
||||
%post
|
||||
%if %suse_version < 1320
|
||||
test -e etc/bash.bashrc && ln -sf bash.bashrc etc/ksh.kshrc || true
|
||||
%endif
|
||||
%if %use_suid_exe
|
||||
%if %{defined set_permissions}
|
||||
%set_permissions /%{_lib}/ast/bin/suid_exec
|
||||
@ -802,6 +807,7 @@ fi
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if %suse_version < 1320
|
||||
if test $1 -eq 0 -a ! -x bin/ksh ; then
|
||||
if test ! -x bin/pdksh ; then
|
||||
rm -f etc/ksh.kshrc
|
||||
@ -810,11 +816,14 @@ if test $1 -eq 0 -a ! -x bin/ksh ; then
|
||||
rm -f bin/ksh %{_exec_prefix}/bin/ksh
|
||||
%endif
|
||||
fi
|
||||
%endif
|
||||
|
||||
%posttrans
|
||||
%if %suse_version < 1320
|
||||
if test -x bin/ksh -o -x bin/pdksh ; then
|
||||
test -e etc/bash.bashrc && ln -sf bash.bashrc etc/ksh.kshrc || true
|
||||
fi
|
||||
%endif
|
||||
|
||||
%files -f ksh.lang
|
||||
%defattr(-,root,root)
|
||||
@ -855,6 +864,9 @@ fi
|
||||
%dir %{_datadir}/ksh
|
||||
%dir %{_datadir}/ksh/fun
|
||||
%{_datadir}/ksh/fun/*
|
||||
%if %suse_version >= 1320
|
||||
%{_sysconfdir}/ksh.kshrc
|
||||
%endif
|
||||
|
||||
%files -n ksh-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user