3 %bcond_without python # without Python bindings
5 Summary: The YASM Modular Assembler
6 Summary(pl.UTF-8): Modularny assembler YASM
10 License: distributable (BSD, GPL, LGPL, Artistic; see COPYING)
11 Group: Development/Tools
12 Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.gz
13 # Source0-md5: fc9e586751ff789b34b1f21d572d96af
14 Patch0: %{name}-pythondir.patch
15 URL: http://www.tortall.net/projects/yasm/
16 BuildRequires: autoconf >= 2.53
17 BuildRequires: automake >= 1:1.9.6
18 BuildRequires: gettext-tools
19 BuildRequires: libtool
20 %{?with_python:BuildRequires: python-Cython >= 0.11.3}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Yasm is a complete rewrite of the NASM assembler under the "new"
27 BSD License (some portions are under other licenses, see COPYING for
28 details). It is designed from the ground up to allow for multiple
29 assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in
30 addition to multiple output object formats and even multiple
31 instruction sets. Another primary module of the overall design is an
34 %description -l pl.UTF-8
35 Yasm to całkowite przepisanie asemblera NASM na "nowej" licencji BSD
36 (niektóre fragmenty są na innych licencjach, szczegóły w pliku
37 COPYING). Jest zaprojektowany od podstaw, aby umożliwić obsługę
38 wielu składni asemblera (np. NASM, TASM, GAS itd.), a ponadto wiele
39 formatów obiektów wyjściowych, a nawet wiele zestawów instrukcji.
40 Kolejny główny moduł ogólnego projektu to moduł optymalizatora.
42 %package -n libyasm-devel
43 Summary: Header files and static libyasm library
44 Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libyasm
45 Group: Development/Libraries
46 License: BSD+Artistic or LGPL or GPL (see COPYING)
48 Obsoletes: libyasm-static
50 %description -n libyasm-devel
51 Header files and static libyasm library.
53 %description -n libyasm-devel -l pl.UTF-8
54 Pliki nagłówkowe i statyczna biblioteka libyasm.
56 %package -n python-yasm
57 Summary: Python interface for yasm library
58 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki yasm
59 Group: Libraries/Python
60 License: BSD+Artistic or LGPL or GPL (see COPYING)
62 %description -n python-yasm
63 Python interface for yasm library.
65 %description -n python-yasm -l pl.UTF-8
66 Pythonowy interfejs do biblioteki yasm.
79 %{?debug:--enable-debug} \
80 %{?with_python:--enable-python-bindings}
82 %{__make} -j1 all check
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
95 %doc AUTHORS BSD.txt COPYING
96 %attr(755,root,root) %{_bindir}/vsyasm
97 %attr(755,root,root) %{_bindir}/yasm
98 %attr(755,root,root) %{_bindir}/ytasm
99 %{_mandir}/man1/yasm.1*
100 %{_mandir}/man7/yasm*.7*
102 %files -n libyasm-devel
103 %defattr(644,root,root,755)
104 %doc AUTHORS BSD.txt COPYING
106 %{_includedir}/libyasm*.h
107 %{_includedir}/libyasm
110 %files -n python-yasm
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{py_sitedir}/yasm.so
113 %{py_sitedir}/yasm-0.0-py*.egg-info