1 |
Summary: Modular Assembler |
2 |
Name: yasm |
3 |
Version: 1.1.0 |
4 |
Release: %mkrel 4 |
5 |
License: BSD |
6 |
Group: Development/Other |
7 |
Url: http://www.tortall.net/projects/yasm/ |
8 |
Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.bz2 |
9 |
BuildRequires: xmlto |
10 |
BuildRequires: python-pyrex > 0.9.5.1 |
11 |
BuildRequires: python-cython |
12 |
BuildRequires: python-devel |
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
14 |
|
15 |
%description |
16 |
Yasm is a complete rewrite of the NASM assembler under the "new" BSD |
17 |
License (some portions are under other licenses, see COPYING for |
18 |
details). It is designed from the ground up to allow for multiple |
19 |
assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in |
20 |
addition to multiple output object formats and even multiple |
21 |
instruction sets. Another primary module of the overall design is an |
22 |
optimizer module. |
23 |
|
24 |
%package devel |
25 |
Summary: Development headers and files for %{name} |
26 |
Group: Development/C |
27 |
Obsoletes: %mklibname -d yasm 0 |
28 |
Requires: %{name} = %{version}-%{release} |
29 |
|
30 |
%description devel |
31 |
Development headers and files for %{name}. |
32 |
|
33 |
%package python |
34 |
Summary: Python bindings for %{name} |
35 |
Group: Development/Python |
36 |
Requires: %{name} = %{version}-%{release} |
37 |
|
38 |
%description python |
39 |
Python bindings for %{name}. |
40 |
|
41 |
%prep |
42 |
%setup -q -n %{name}-%{version} |
43 |
|
44 |
%build |
45 |
%ifnarch ix86 |
46 |
export CFLAGS="%{optflags} -fPIC" |
47 |
%endif |
48 |
|
49 |
%configure2_5x \ |
50 |
--disable-rpath \ |
51 |
--enable-python \ |
52 |
--enable-python-bindings |
53 |
|
54 |
%make |
55 |
|
56 |
%install |
57 |
rm -rf %{buildroot} |
58 |
|
59 |
%makeinstall_std |
60 |
|
61 |
rm -f %{buildroot}%{_libdir}/yasm/*.a |
62 |
|
63 |
%clean |
64 |
rm -rf %{buildroot} |
65 |
|
66 |
%files |
67 |
%defattr(-,root,root) |
68 |
%doc AUTHORS |
69 |
%{_bindir}/* |
70 |
%{_mandir}/man1/yasm.1* |
71 |
%{_mandir}/man7/yasm_arch.7* |
72 |
%{_mandir}/man7/yasm_dbgfmts.7.* |
73 |
%{_mandir}/man7/yasm_objfmts.7.* |
74 |
%{_mandir}/man7/yasm_parsers.7.* |
75 |
|
76 |
%files python |
77 |
%defattr(-,root,root) |
78 |
%{py_sitedir}/* |
79 |
|
80 |
%files devel |
81 |
%defattr(-,root,root) |
82 |
%{_libdir}/lib*.a |
83 |
%{_includedir}/libyasm |
84 |
%{_includedir}/libyasm.h |
85 |
%{_includedir}/libyasm-stdint.h |
86 |
|
87 |
|