|
|
|
@ -52,7 +52,11 @@ perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# Generate man page
|
|
|
|
|
cp %{name}.pl %{name}
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
help2man -N -o %{name}.1 ./%{name}
|
|
|
|
|
%else
|
|
|
|
|
help2man -N --no-discard-stderr -o %{name}.1 ./%{name}
|
|
|
|
|
%endif
|
|
|
|
|
sed -i 's/\(.\)/\n\1/' %{name}.1
|
|
|
|
|
sed -i 's/PACKAGE/PKGDIFF/g' %{name}.1
|
|
|
|
|
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|