update to 2020.0.0 [release 2020.0.0-1mamba;Sun Sep 06 2020]
This commit is contained in:
parent
be90895332
commit
f674401b62
45
ksh.spec
45
ksh.spec
@ -1,6 +1,6 @@
|
||||
%define pkg_version %(echo %version | tr . - )
|
||||
Name: ksh
|
||||
Version: 2011.02.08
|
||||
Version: 2020.0.0
|
||||
Release: 1mamba
|
||||
Summary: The Original ATT Korn Shell
|
||||
Group: Applications/Shells
|
||||
@ -8,8 +8,9 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.kornshell.com/
|
||||
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
|
||||
Source: https://github.com/ksh2020/ksh.git/%{version}/ksh-%{version}.tar.bz2
|
||||
#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
|
||||
Source2: dotkshrc
|
||||
Source3: kshrc.mamba
|
||||
@ -33,40 +34,37 @@ AT&T Bell Laboratories.
|
||||
Korn Shell is a shell programming language, which is upward compatible
|
||||
with "sh" (the Bourne Shell).
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -c %{name}-%{version}
|
||||
%setup -q -T -D -a 1
|
||||
%setup -q
|
||||
#% setup -q -T -D -a 1
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
#%patch0 -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
|
||||
./bin/package
|
||||
./bin/package make mamake ||:
|
||||
./bin/package make mamake ||:
|
||||
export CCFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
export CC=gcc
|
||||
./bin/package "make"
|
||||
%meson
|
||||
|
||||
cp lib/package/LICENSES/ast LICENSE
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
[ "%{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
|
||||
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.kshrc
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/kshrc
|
||||
|
||||
install -d -m0755 %{buildroot}/bin
|
||||
mv %{buildroot}%{_bindir}/ksh %{buildroot}/bin/ksh
|
||||
|
||||
%check
|
||||
export SHELL=$(ls $(pwd)/arch/*/bin/ksh)
|
||||
cd src/cmd/ksh93/tests/
|
||||
ulimit -c unlimited
|
||||
#ulimit -c unlimited
|
||||
if [ ! -e /dev/fd ]
|
||||
then
|
||||
echo "ERROR: /dev/fd does not exist, regression tests skipped"
|
||||
@ -105,9 +103,12 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/kshrc
|
||||
/bin/ksh
|
||||
%{_bindir}/shcomp
|
||||
%{_mandir}/man1/ksh.1.gz
|
||||
%doc LICENSE README
|
||||
%{_mandir}/man1/ksh.1*
|
||||
%doc LICENSE
|
||||
|
||||
%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
|
||||
- package created by autospec
|
||||
|
Loading…
Reference in New Issue
Block a user