nasm/nasm.spec

56 lines
1.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nasm
#
Accepting request 1165391 from home:jubalh:branches:devel:tools:compiler - Update to 2.16.02: * Fix building from the source distribution in a separate directory from the source. * Fix a number of issues when building from source, mostly involving configure or dependency generation. In particular, more aggressively avoid cross-compilation problems on Unix/Linux systems automatically invoking WINE. We could end up invoking WINE even when we didn't want to, making configure think it was running native when in fact cross-compiling. * Hopefully fix compiling with the latest versions of MSVC/nmake. * Windows host: add embedded manifest file. Without a manifest, Windows applications force a fixed PATH_MAX limit to any pathname; this is unnecessary. * Add support VEX-encoded SM4-NI instructions. * Add support for VEX-encoded SM3-NI instructions. * Add support for VEX-encoded SHA512-NI instructions. * PTWRITE opcode corrected (F3 prefix required.) * Disassembler: the SMAP instructions are NP; notably the prefixed versions of CLAC are ERETU/ERETS. * Add support for Flexible Return and Exception Delivery (FRED): the LKGS, ERETS and ERETU instructions. * Fix external references to segments in the obj (OMF) and possibly other output formats. * Always support up to 8 characters, i.e. 64 bits, in a string-to-numeric conversion. * Preprocessor: add %map() function to expand a macro from a list of arguments, see section 4.4.7. * Preprocessor: allow the user to specify the desired radix for an evaluated parameter. It doesn't make any direct difference, but can be nice for debugging or turning into strings. OBS-URL: https://build.opensuse.org/request/show/1165391 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/nasm?expand=0&rev=56
2024-04-05 10:20:40 +02:00
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: nasm
Accepting request 1165391 from home:jubalh:branches:devel:tools:compiler - Update to 2.16.02: * Fix building from the source distribution in a separate directory from the source. * Fix a number of issues when building from source, mostly involving configure or dependency generation. In particular, more aggressively avoid cross-compilation problems on Unix/Linux systems automatically invoking WINE. We could end up invoking WINE even when we didn't want to, making configure think it was running native when in fact cross-compiling. * Hopefully fix compiling with the latest versions of MSVC/nmake. * Windows host: add embedded manifest file. Without a manifest, Windows applications force a fixed PATH_MAX limit to any pathname; this is unnecessary. * Add support VEX-encoded SM4-NI instructions. * Add support for VEX-encoded SM3-NI instructions. * Add support for VEX-encoded SHA512-NI instructions. * PTWRITE opcode corrected (F3 prefix required.) * Disassembler: the SMAP instructions are NP; notably the prefixed versions of CLAC are ERETU/ERETS. * Add support for Flexible Return and Exception Delivery (FRED): the LKGS, ERETS and ERETU instructions. * Fix external references to segments in the obj (OMF) and possibly other output formats. * Always support up to 8 characters, i.e. 64 bits, in a string-to-numeric conversion. * Preprocessor: add %map() function to expand a macro from a list of arguments, see section 4.4.7. * Preprocessor: allow the user to specify the desired radix for an evaluated parameter. It doesn't make any direct difference, but can be nice for debugging or turning into strings. OBS-URL: https://build.opensuse.org/request/show/1165391 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/nasm?expand=0&rev=56
2024-04-05 10:20:40 +02:00
Version: 2.16.02
Release: 0
Summary: Netwide Assembler (An x86 Assembler)
License: BSD-2-Clause
Group: Development/Languages/Other
URL: https://www.nasm.us/
Source: https://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz
Patch0: reproducible.patch
BuildRequires: fdupes
%description
NASM is a prototype general-purpose x86 assembler. It can currently output
several binary formats, including ELF, a.out, Win32, and OS/2.
%prep
%autosetup -p0
%build
%configure \
--enable-lto
%make_build all
%install
- Update to 2.16: * Support for the rdf format has been discontinued and all the RDOFF utilities has been removed. * The --reproducible option now leaves the filename field in the COFF object format blank. This was always rather useless since it is only 18 characters long; as such debug formats have to carry their own filename information anyway. * Fix handling of MASM-syntax reserved memory (e.g. dw ?) when used in structure definitions. * The preprocessor now supports functions, which can be less verbose and more convenient than the equivalent code implemented using directives. See ppfunc. * Fix the handling of %00 in the preprocessor. * Fix incorrect handling of path names affecting error messages, dependency generation, and debug format output. * Support for the RDOFF output format and the RDOFF tools have been removed. The RDOFF tools had already been broken since at least NASM 2.14. For flat code the ELF output format recommended; for segmented code the obj (OMF) output format. * New facility: preprocessor functions. Preprocessor functions, which are expanded similarly to single-line macros, can greatly simplify code that in the past would have required a lengthy list of directives and intermediate macros. See ppfunc. * Single-line macros can now declare parameters (using a && prefix) that creates a quoted string, but does not requote an already quoted string. See define. * Instruction table updated per public information available as of November 2022. * All warnings in the preprocessor have now been assigned warning classes. See warnings. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/nasm?expand=0&rev=53
2022-12-21 09:36:36 +01:00
%make_install
%fdupes %{buildroot}%{_mandir}
%check
%make_build test
%files
%license LICENSE
%doc AUTHORS CHANGES ChangeLog README.md
%{_bindir}/*
%{_mandir}/man1/*.1%{?ext_man}
%changelog