1 |
Name: yasm |
2 |
Version: 1.3.0 |
3 |
Release: %mkrel 8 |
4 |
Summary: Modular Assembler |
5 |
License: BSD |
6 |
Group: Development/Other |
7 |
Url: https://yasm.tortall.net/ |
8 |
Source0: https://www.tortall.net/projects/%{name}/releases/%{name}-%{version}.tar.gz |
9 |
Patch0: yasm-CVE-2023-31975.patch |
10 |
|
11 |
BuildRequires: xmlto |
12 |
|
13 |
Obsoletes: yasm-python < 1.3.0-4 |
14 |
|
15 |
%description |
16 |
Yasm is a complete rewrite of the NASM assembler. |
17 |
It is designed from the ground up to allow for multiple |
18 |
assembler syntaxes to be supported (e.g., NASM, TASM, GAS, etc.) in |
19 |
addition to multiple output object formats and even multiple |
20 |
instruction sets. Another primary module of the overall design is an |
21 |
optimizer module. |
22 |
|
23 |
#------------------------------------------------------------------------------ |
24 |
|
25 |
%package devel |
26 |
Summary: Development headers and files for %{name} |
27 |
Group: Development/C |
28 |
Requires: %{name} = %{version}-%{release} |
29 |
|
30 |
%description devel |
31 |
Development headers and files for %{name}. |
32 |
|
33 |
#------------------------------------------------------------------------------ |
34 |
|
35 |
%prep |
36 |
%setup -q |
37 |
%patch0 -p1 |
38 |
|
39 |
%build |
40 |
%ifnarch %ix86 |
41 |
export CFLAGS="%{optflags} -fPIC" |
42 |
%endif |
43 |
|
44 |
%configure \ |
45 |
--disable-rpath \ |
46 |
--disable-python \ |
47 |
--disable-python-bindings |
48 |
%make_build |
49 |
|
50 |
%install |
51 |
%make_install |
52 |
|
53 |
%files |
54 |
%doc AUTHORS |
55 |
%{_bindir}/* |
56 |
%{_mandir}/man1/%{name}.1.* |
57 |
%{_mandir}/man7/%{name}_arch.7.* |
58 |
%{_mandir}/man7/%{name}_dbgfmts.7.* |
59 |
%{_mandir}/man7/%{name}_objfmts.7.* |
60 |
%{_mandir}/man7/%{name}_parsers.7.* |
61 |
|
62 |
%files devel |
63 |
%{_libdir}/lib%{name}.a |
64 |
%{_includedir}/libyasm/ |
65 |
%{_includedir}/libyasm.h |
66 |
%{_includedir}/libyasm-stdint.h |