update to 2020.0.0 [release 2020.0.0-1mamba;Sun Sep 06 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 02:55:10 +01:00
parent be90895332
commit f674401b62

View File

@ -1,6 +1,6 @@
%define pkg_version %(echo %version | tr . - ) %define pkg_version %(echo %version | tr . - )
Name: ksh Name: ksh
Version: 2011.02.08 Version: 2020.0.0
Release: 1mamba Release: 1mamba
Summary: The Original ATT Korn Shell Summary: The Original ATT Korn Shell
Group: Applications/Shells Group: Applications/Shells
@ -8,8 +8,9 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.kornshell.com/ URL: http://www.kornshell.com/
Source0: http://www2.research.att.com/~gsf/download/tgz/ast-ksh.%{pkg_version}.tgz Source: https://github.com/ksh2020/ksh.git/%{version}/ksh-%{version}.tar.bz2
Source1: http://www2.research.att.com/~gsf/download/tgz/INIT.%{pkg_version}.tgz #Source0: http://www2.research.att.com/~gsf/download/tgz/ast-ksh.%{pkg_version}.tgz
#Source1: http://www2.research.att.com/~gsf/download/tgz/INIT.%{pkg_version}.tgz
# from fedora # from fedora
Source2: dotkshrc Source2: dotkshrc
Source3: kshrc.mamba Source3: kshrc.mamba
@ -33,40 +34,37 @@ AT&T Bell Laboratories.
Korn Shell is a shell programming language, which is upward compatible Korn Shell is a shell programming language, which is upward compatible
with "sh" (the Bourne Shell). with "sh" (the Bourne Shell).
%debug_package
%prep %prep
%setup -q -c %{name}-%{version} %setup -q
%setup -q -T -D -a 1 #% setup -q -T -D -a 1
%patch0 -p1 #%patch0 -p1
%patch1 -p1 #%patch1 -p1
sed -i 's|ls /dev/fd|ls /proc/self/fd|' src/cmd/ksh93/features/options #sed -i 's|ls /dev/fd|ls /proc/self/fd|' src/cmd/ksh93/features/options
%build %build
./bin/package %meson
./bin/package make mamake ||:
./bin/package make mamake ||:
export CCFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CC=gcc
./bin/package "make"
cp lib/package/LICENSES/ast LICENSE %meson_build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
mkdir -p %{buildroot}{/bin,%{_bindir},%{_mandir}/man1}
install -c -m 755 arch/*/bin/ksh %{buildroot}/bin/ksh
install -c -m 755 arch/*/bin/shcomp %{buildroot}%{_bindir}/shcomp
install -c -m 644 arch/*/man/man1/sh.1 %{buildroot}%{_mandir}/man1/ksh.1
mkdir -p %{buildroot}%{_sysconfdir}/skel mkdir -p %{buildroot}%{_sysconfdir}/skel
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.kshrc install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.kshrc
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kshrc install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kshrc
install -d -m0755 %{buildroot}/bin
mv %{buildroot}%{_bindir}/ksh %{buildroot}/bin/ksh
%check %check
export SHELL=$(ls $(pwd)/arch/*/bin/ksh) export SHELL=$(ls $(pwd)/arch/*/bin/ksh)
cd src/cmd/ksh93/tests/ cd src/cmd/ksh93/tests/
ulimit -c unlimited #ulimit -c unlimited
if [ ! -e /dev/fd ] if [ ! -e /dev/fd ]
then then
echo "ERROR: /dev/fd does not exist, regression tests skipped" echo "ERROR: /dev/fd does not exist, regression tests skipped"
@ -105,9 +103,12 @@ fi
%config(noreplace) %{_sysconfdir}/kshrc %config(noreplace) %{_sysconfdir}/kshrc
/bin/ksh /bin/ksh
%{_bindir}/shcomp %{_bindir}/shcomp
%{_mandir}/man1/ksh.1.gz %{_mandir}/man1/ksh.1*
%doc LICENSE README %doc LICENSE
%changelog %changelog
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.0.0-1mamba
- update to 2020.0.0
* Sat Feb 12 2011 gil <puntogil@libero.it> 20110208-1mamba * Sat Feb 12 2011 gil <puntogil@libero.it> 20110208-1mamba
- package created by autospec - package created by autospec