aboutsummaryrefslogtreecommitdiffstats
path: root/nasm.spec.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-10 15:42:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-10 15:42:02 -0700
commitc11e23004f1be93779017ca71848ed0901486f82 (patch)
tree36878ea341251347dd3794772284bbb0ccae62d9 /nasm.spec.in
parente8a9041c58f7a684246e5c2121f95b59551597c1 (diff)
downloadnasm-daily-c11e23004f1be93779017ca71848ed0901486f82.tar.gz
nasm-daily-c11e23004f1be93779017ca71848ed0901486f82.tar.xz
nasm-daily-c11e23004f1be93779017ca71848ed0901486f82.zip
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>
Diffstat (limited to 'nasm.spec.in')
-rw-r--r--nasm.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/nasm.spec.in b/nasm.spec.in
index 2dc8b755..10d5a3f3 100644
--- a/nasm.spec.in
+++ b/nasm.spec.in
@@ -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)