Update license identifier to SPDX expression

This commit is contained in:
Robert Scheck 2022-09-18 00:21:52 +02:00
parent b51d153a72
commit fac5198967

View File

@ -2,8 +2,8 @@ Summary: MirBSD enhanced version of the Korn Shell
Name: mksh Name: mksh
Version: 59c Version: 59c
Release: 6%{?dist} Release: 6%{?dist}
# BSD (setmode.c), ISC (strlcpy.c), MirOS (the rest) # ISC (strlcpy.c) and MirOS (the rest)
License: MirOS and ISC and BSD License: MirOS AND ISC
URL: https://www.mirbsd.org/mksh.htm URL: https://www.mirbsd.org/mksh.htm
Source0: https://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.tgz Source0: https://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.tgz
Source1: dot-mkshrc Source1: dot-mkshrc
@ -12,7 +12,7 @@ Conflicts: filesystem < 3
Provides: /bin/ksh Provides: /bin/ksh
Provides: /bin/lksh Provides: /bin/lksh
Provides: /bin/mksh Provides: /bin/mksh
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
Provides: /bin/rksh Provides: /bin/rksh
%endif %endif
Provides: /bin/rlksh Provides: /bin/rlksh
@ -87,7 +87,7 @@ ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/rmksh
ln -s lksh $RPM_BUILD_ROOT%{_bindir}/rlksh ln -s lksh $RPM_BUILD_ROOT%{_bindir}/rlksh
ln -s %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/rmksh.1 ln -s %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/rmksh.1
ln -s lksh.1 $RPM_BUILD_ROOT%{_mandir}/man1/rlksh.1 ln -s lksh.1 $RPM_BUILD_ROOT%{_mandir}/man1/rlksh.1
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
touch $RPM_BUILD_ROOT{%{_bindir}/{ksh,rksh},%{_mandir}/man1/{ksh,rksh}.1} touch $RPM_BUILD_ROOT{%{_bindir}/{ksh,rksh},%{_mandir}/man1/{ksh,rksh}.1}
%else %else
touch $RPM_BUILD_ROOT{%{_bindir}/ksh,%{_mandir}/man1/ksh.1} touch $RPM_BUILD_ROOT{%{_bindir}/ksh,%{_mandir}/man1/ksh.1}
@ -116,7 +116,7 @@ done
%post %post
for d in /bin %{_bindir}; do for d in /bin %{_bindir}; do
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
for s in ksh %{name} rksh rmksh; do for s in ksh %{name} rksh rmksh; do
%else %else
for s in ksh %{name} rmksh; do for s in ksh %{name} rmksh; do
@ -126,11 +126,11 @@ for d in /bin %{_bindir}; do
done done
%{_sbindir}/alternatives --install %{_bindir}/ksh ksh %{_bindir}/%{name} 10 \ %{_sbindir}/alternatives --install %{_bindir}/ksh ksh %{_bindir}/%{name} 10 \
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
--slave %{_bindir}/rksh rksh %{_bindir}/%{name} \ --slave %{_bindir}/rksh rksh %{_bindir}/%{name} \
%endif %endif
--slave %{_mandir}/man1/ksh.1.gz ksh-man %{_mandir}/man1/%{name}.1.gz \ --slave %{_mandir}/man1/ksh.1.gz ksh-man %{_mandir}/man1/%{name}.1.gz \
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
--slave %{_mandir}/man1/rksh.1.gz rksh-man %{_mandir}/man1/%{name}.1.gz --slave %{_mandir}/man1/rksh.1.gz rksh-man %{_mandir}/man1/%{name}.1.gz
%endif %endif
@ -151,7 +151,7 @@ done
%ghost %{_bindir}/ksh %ghost %{_bindir}/ksh
%{_bindir}/lksh %{_bindir}/lksh
%{_bindir}/%{name} %{_bindir}/%{name}
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
%ghost %{_bindir}/rksh %ghost %{_bindir}/rksh
%endif %endif
%{_bindir}/rlksh %{_bindir}/rlksh
@ -161,7 +161,7 @@ done
%ghost %{_mandir}/man1/ksh.1* %ghost %{_mandir}/man1/ksh.1*
%{_mandir}/man1/lksh.1* %{_mandir}/man1/lksh.1*
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%if 0%{?fedora} > 33 || 0%{?rhel} > 8 %if 0%{?fedora} || 0%{?rhel} > 8
%ghost %{_mandir}/man1/rksh.1* %ghost %{_mandir}/man1/rksh.1*
%endif %endif
%{_mandir}/man1/rlksh.1* %{_mandir}/man1/rlksh.1*