SHA256
1
0
forked from pool/mawk

Accepting request 869480 from Base:System

OBS-URL: https://build.opensuse.org/request/show/869480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mawk?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2021-02-04 19:24:40 +00:00 committed by Git OBS Bridge
commit 1d9b899f4d
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 4 10:41:36 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- fix update-alternatives usage. Needs to be in %postun according to
https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines#update-alternatives_mechanism
-------------------------------------------------------------------
Wed Dec 16 08:19:25 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package mawk
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
@ -83,8 +83,8 @@ make %{?_smp_mflags} check
%endif
--slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} %{_mandir}/man1/mawk.1%{?ext_man}
%preun
if [ $1 -eq 0 ]; then
%postun
if [ ! -f %{_bindir}/mawk ]; then
%{_sbindir}/update-alternatives --remove awk %{_bindir}/mawk
fi