aboutsummaryrefslogtreecommitdiffstats
path: root/nasm.spec.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-06 06:46:14 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-06 06:46:14 +0000
commit6eec6f4590c24c0f4eb0cd66db819873efc2aae6 (patch)
tree90e2c8446d2dec759dc06becc55d7ed58a25de26 /nasm.spec.in
parentd079d8962154e2e3c872229ef92451f611b755a5 (diff)
downloadnasm-daily-6eec6f4590c24c0f4eb0cd66db819873efc2aae6.tar.gz
nasm-daily-6eec6f4590c24c0f4eb0cd66db819873efc2aae6.tar.xz
nasm-daily-6eec6f4590c24c0f4eb0cd66db819873efc2aae6.zip
Build the nasm-doc RPM as a noarch RPM. Unfortunately that has to be
built using a separate invocation of rpm :(
Diffstat (limited to 'nasm.spec.in')
-rw-r--r--nasm.spec.in19
1 files changed, 15 insertions, 4 deletions
diff --git a/nasm.spec.in b/nasm.spec.in
index 2e7c6542..07750018 100644
--- a/nasm.spec.in
+++ b/nasm.spec.in
@@ -1,3 +1,8 @@
+#
+# This RPM file should be built twice: once normally, to build the
+# nasm and nasm-rdoff packages, and once with --target=noarch to build
+# the nasm-doc RPM.
+#
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
Name: nasm
Version: @@VERSION@@
@@ -68,16 +73,20 @@ if [ $1 = 0 ]; then
/sbin/install-info --delete "$RPM_INSTALL_PREFIX"/info/nasm.info.gz "$RPM_INSTALL_PREFIX"/info/dir
fi
+%ifarch noarch
+
+%files doc
+%attr(-,root,root) %doc /usr/info/nasm.info*.gz
+%attr(-,root,root) %doc /usr/doc/nasm-%{version}/*
+
+%else
+
%files
%attr(-,root,root) /usr/bin/nasm
%attr(-,root,root) /usr/bin/ndisasm
%attr(-,root,root) %doc /usr/man/man1/nasm.1*
%attr(-,root,root) %doc /usr/man/man1/ndisasm.1*
-%files doc
-%attr(-,root,root) %doc /usr/info/nasm.info*.gz
-%attr(-,root,root) %doc /usr/doc/nasm-%{version}/*
-
%files rdoff
%attr(-,root,root) /usr/bin/ldrdf
%attr(-,root,root) /usr/bin/rdf2bin
@@ -86,3 +95,5 @@ fi
%attr(-,root,root) /usr/bin/rdflib
%attr(-,root,root) /usr/bin/rdx
%attr(-,root,root) %doc /usr/doc/nasm-%{version}/rdoff/*
+
+%endif