don't build documentation during modular build
This commit is contained in:
parent
fe644d5973
commit
a4e164839f
22
nasm.spec
22
nasm.spec
@ -1,7 +1,14 @@
|
||||
# Build without documentation per default if built as part of a module}
|
||||
%if ! 0%{?_module_build}
|
||||
%bcond_with documentation
|
||||
%else
|
||||
%bcond_without documentation
|
||||
%endif
|
||||
|
||||
Summary: A portable x86 assembler which uses Intel-like syntax
|
||||
Name: nasm
|
||||
Version: 2.13.01
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.nasm.us
|
||||
Source0: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.bz2
|
||||
@ -13,6 +20,7 @@ BuildRequires: xmlto
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
|
||||
%if %{with documentation}
|
||||
%package doc
|
||||
Summary: Documentation for NASM
|
||||
BuildRequires: perl(Font::TTF::Font)
|
||||
@ -23,6 +31,7 @@ BuildRequires: adobe-source-code-pro-fonts
|
||||
BuildArch: noarch
|
||||
# For arch to noarch conversion
|
||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
%endif
|
||||
|
||||
%package rdoff
|
||||
Summary: Tools for the RDOFF binary format, sometimes used with NASM
|
||||
@ -32,9 +41,11 @@ NASM is the Netwide Assembler, a free portable assembler for the Intel
|
||||
80x86 microprocessor series, using primarily the traditional Intel
|
||||
instruction mnemonics and syntax.
|
||||
|
||||
%if %{with documentation}
|
||||
%description doc
|
||||
This package contains documentation for the Netwide Assembler (NASM),
|
||||
in HTML, PDF, PostScript, and text formats.
|
||||
%endif
|
||||
|
||||
%description rdoff
|
||||
Tools for the operating-system independent RDOFF binary format, which
|
||||
@ -48,8 +59,12 @@ tar xjf %{SOURCE1} --strip-components 1
|
||||
%build
|
||||
autoreconf
|
||||
%configure
|
||||
%if %{with documentation}
|
||||
make everything %{?_smp_mflags}
|
||||
gzip -9f doc/nasmdoc.{ps,txt}
|
||||
%else
|
||||
make all %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
%install
|
||||
make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
|
||||
@ -61,8 +76,10 @@ make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
|
||||
%{_mandir}/man1/nasm*
|
||||
%{_mandir}/man1/ndisasm*
|
||||
|
||||
%if %{with documentation}
|
||||
%files doc
|
||||
%doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
|
||||
%endif
|
||||
|
||||
%files rdoff
|
||||
%{_bindir}/ldrdf
|
||||
@ -78,6 +95,9 @@ make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
|
||||
%{_mandir}/man1/ld*
|
||||
|
||||
%changelog
|
||||
* Tue Jul 04 2017 Nils Philippsen <nils@redhat.com> - 2.13.01-2
|
||||
- don't build documentation during modular build
|
||||
|
||||
* Mon May 22 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13.01-1
|
||||
- Update to upstream version 2.13.01
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user