man: mention correct binary names
Resolves: rhbz#1294252 Version: 3.2.0-2
This commit is contained in:
parent
d2252e9354
commit
7827061904
@ -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 <praiskup@redhat.com> - 3.2.0-2
|
||||
- fix manual pages to mention correctly spelled binary names (rhbz#1294252)
|
||||
|
||||
* Tue May 03 2016 Pavel Raiskup <praiskup@redhat.com> - 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
|
||||
|
Loading…
Reference in New Issue
Block a user