252e182ad1
- Build doc package as noarch - Use fdupes to remove duplicates - Update to 2.11.08 - Changes for 2.11.07 * Fix -MD option handling, which was rather broken in previous OBS-URL: https://build.opensuse.org/request/show/287481 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/nasm?expand=0&rev=22
97 lines
3.0 KiB
RPMSpec
97 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package nasm
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: nasm
|
|
Version: 2.11.08
|
|
Release: 0
|
|
Summary: Netwide Assembler (An x86 Assembler)
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Other
|
|
Url: http://www.nasm.us/
|
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
|
|
BuildRequires: fdupes
|
|
BuildRequires: makeinfo
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
NASM is a prototype general-purpose x86 assembler. It can currently
|
|
output several binary formats, including ELF, a.out, Win32, and OS/2.
|
|
|
|
Read the licence agreement in %{_docdir}/nasm/Licence.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%package doc
|
|
Summary: Documentation for Nasm
|
|
License: LGPL-2.1+
|
|
Group: Development/Languages/Other
|
|
Requires(post): info
|
|
Requires(preun): info
|
|
Provides: nasm:%{_docdir}/nasm/nasmdoc.pdf
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
This package contains the documentation for Nasm.
|
|
|
|
%build
|
|
touch -r ./ver.c ./ver.c.stamp
|
|
TS=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
sed -i "s/__DATE__/\"$TS\"/g" ver.c
|
|
touch -r ./ver.c.stamp ./ver.c
|
|
%configure
|
|
make %{?_smp_mflags} all
|
|
|
|
make -C doc %{?_smp_mflags} html info nasmdoc.ps nasmdoc.txt
|
|
|
|
%install
|
|
install -d -m 755 %{buildroot}%{_prefix}/bin
|
|
install -d -m 755 %{buildroot}/%{_mandir}/man1
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm/rdoff
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm/html
|
|
install -d -m 755 %{buildroot}/%{_infodir}
|
|
make INSTALLROOT=%{buildroot} install
|
|
make INSTALLROOT=%{buildroot} rdf_install
|
|
install -m 644 AUTHORS CHANGES ChangeLog LICENSE TODO README doc/*.txt \
|
|
%{buildroot}/%{_docdir}/nasm
|
|
install -m 644 rdoff/README rdoff/doc/* \
|
|
%{buildroot}/%{_docdir}/nasm/rdoff
|
|
install -m 644 doc/html/* %{buildroot}%{_docdir}/nasm/html
|
|
install -m 644 ndisasm.1 nasm.1 rdoff/*.1 %{buildroot}%{_mandir}/man1
|
|
install -m 644 doc/info/* %{buildroot}%{_infodir}
|
|
%fdupes -s %{buildroot}%/*
|
|
|
|
%post doc
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun doc
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%doc %{_mandir}/man1/*.1.gz
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc %{_docdir}/nasm
|
|
%doc %{_infodir}/nasm*
|
|
|
|
%changelog
|