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