nasm.spec.in: drop nasmdoc.ps.gz, compress .txt and .pdf with xz

Drop nasmdoc.ps(.gz), being redundant and inferior to nasmdoc.pdf.

Tools now generally support xz compression out of the box so use xz
compression for these files.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-04-10 15:42:02 -07:00
parent e8a9041c58
commit c11e23004f

View file

@ -12,7 +12,7 @@ BuildRoot: /tmp/rpm-build-nasm
Prefix: %{_prefix}
BuildRequires: perl, asciidoc, xmlto, ghostscript, texinfo, perl-Font-TTF
BuildRequires: adobe-source-sans-pro-fonts, adobe-source-code-pro-fonts
BuildRequires: fontconfig
BuildRequires: fontconfig, xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%package doc
@ -55,8 +55,8 @@ mkdir -p "$RPM_BUILD_ROOT"/%{_infodir}
mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc
%makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc
cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \
$RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{ps,txt,pdf} .
gzip -9f nasmdoc.{ps,txt}
$RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{txt,pdf} .
xz -9ef nasmdoc.{pdf,txt}
# remove unpackaged files from the buildroot
rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc
@ -82,7 +82,7 @@ fi
%files doc
%defattr(-,root,root)
%doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz
%doc html nasmdoc.txt.xz nasmdoc.pdf.xz
%files rdoff
%defattr(-,root,root)