aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)