forked from netwide-assembler/nasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnasm.spec.in
More file actions
87 lines (76 loc) · 2.28 KB
/
nasm.spec.in
File metadata and controls
87 lines (76 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 1996-2025 The NASM Authors - All Rights Reserved
%define nasm_version @@NASM_VER@@
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
Name: nasm
Version: @@NASM_MANGLED_VER@@
Release: 0%{?dist}
License: BSD-2-Clause
Source: https://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
URL: https://www.nasm.us/
BuildRoot: /tmp/rpm-build-nasm
Prefix: %{_prefix}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: perl
BuildRequires: gcc
BuildRequires: make
BuildRequires: gzip
BuildRequires: xz
BuildRequires: zlib-devel
BuildRequires: sed
BuildRequires: findutils
BuildRequires: coreutils
@@PERLBUILDREQS@@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: %{name}-rdoff < 2.16
%package doc
Summary: Detailed manual for the Netwide Assembler
BuildArch: noarch
BuildRequires: ghostscript
BuildRequires: fontconfig
BuildRequires: google-roboto-fonts
BuildRequires: google-roboto-mono-fonts
Requires: google-roboto-fonts
Requires: google-roboto-mono-fonts
Requires: %{name} = %{version}-%{release}
%define _pkgdatadir %{_datadir}/%{name}
%define pkgdatadir %{?buildroot:%{buildroot}}%{_datadir}/%{name}
%define _pkgdocdir %{_docdir}/%{name}
%description
NASM is the Netwide Assembler, a free portable assembler for the Intel
80x86 microprocessor series, using primarily the traditional Intel
instruction mnemonics and syntax.
%description doc
Extensive documentation for the Netwide Assembler (NASM) in HTML and
PDF formats.
%prep
%setup -q -n nasm-%{nasm_version}
%build
sh autogen.sh --clearenv
%configure --enable-gc $([ -z "%{_lto_cflags}" ] || echo --enable-lto)
make %{?_smp_mflags} everything
%install
rm -rf "%{buildroot}"
make DESTDIR="%{buildroot}" PDFZ=".xz" install_everything
gzip -9 "%{pkgdatadir}"/nasmtok.*
%files
%defattr(-,root,root)
%doc AUTHORS
%doc LICENSE
%{_bindir}/nasm
%{_bindir}/ndisasm
%{_mandir}/man1/nasm.1*
%{_mandir}/man1/ndisasm.1*
%dir %{_pkgdatadir}
%{_pkgdatadir}/nasmtok.*.gz
%files doc
%defattr(-,root,root)
%doc %{_pkgdocdir}/nasmdoc.pdf.xz
%dir %{_pkgdocdir}/html
%doc %{_pkgdocdir}/html/*
# This is the upstream spec file; the change log is in git
%changelog