diff --git a/ksh.changes b/ksh.changes index 4c28437..e1f934d 100644 --- a/ksh.changes +++ b/ksh.changes @@ -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 diff --git a/ksh.spec b/ksh.spec index 1e6f795..f7169ab 100644 --- a/ksh.spec +++ b/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)