From 7827061904e61aa50819ac5bd00182d5fc6554e0 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: May 12 2016 08:16:26 +0000 Subject: man: mention correct binary names Resolves: rhbz#1294252 Version: 3.2.0-2 --- diff --git a/libarchive.spec b/libarchive.spec index 418ddb0..f2428a2 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -1,6 +1,6 @@ Name: libarchive Version: 3.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for handling streaming archive formats License: BSD @@ -81,6 +81,34 @@ make %{?_smp_mflags} make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# rhbz#1294252 +replace () +{ + filename=$1 + file=`basename "$filename"` + binary=${file%%.*} + pattern=${binary##bsd} + + + awk " + # replace the first occurence of \"$pattern\" by \"$binary\" + !stop && /^.Nm $pattern/ { + print \".Nm $binary\" ; + stop = 1 ; + next; + } + # print remaining lines + 1; + " "$filename" > "$filename.new" + mv "$filename".new "$filename" +} + +for manpage in bsdtar.1 bsdcpio.1 +do + installed_manpage=`find "$RPM_BUILD_ROOT" -name "$manpage"` + replace "$installed_manpage" +done + %check run_testsuite() @@ -154,6 +182,9 @@ run_testsuite %changelog +* Thu May 12 2016 Pavel Raiskup - 3.2.0-2 +- fix manual pages to mention correctly spelled binary names (rhbz#1294252) + * Tue May 03 2016 Pavel Raiskup - 3.2.0-1 - new upstream release 3.2.0 (rhbz#1330345), per release notes: https://groups.google.com/d/msg/libarchive-discuss/qIzW7doKzxA/MVbUkjlNAAAJ