]>
Commit | Line | Data |
---|---|---|
40c83e87 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without python # without Python bindings | |
4 | ||
1d2d1208 | 5 | Summary: The YASM Modular Assembler |
1e3f0ea0 | 6 | Summary(pl.UTF-8): Modularny assembler YASM |
1d2d1208 | 7 | Name: yasm |
30a9f06f | 8 | Version: 1.3.0 |
cbe8ef75 | 9 | Release: 1 |
1d2d1208 | 10 | License: distributable (BSD, GPL, LGPL, Artistic; see COPYING) |
11 | Group: Development/Tools | |
44c8c69f | 12 | Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.gz |
30a9f06f | 13 | # Source0-md5: fc9e586751ff789b34b1f21d572d96af |
51807c7a | 14 | Patch0: %{name}-pythondir.patch |
1d2d1208 | 15 | URL: http://www.tortall.net/projects/yasm/ |
57a9771d | 16 | BuildRequires: autoconf >= 2.53 |
51807c7a | 17 | BuildRequires: automake >= 1:1.9.6 |
523df359 | 18 | BuildRequires: gettext-tools |
57a9771d | 19 | BuildRequires: libtool |
40c83e87 | 20 | %{?with_python:BuildRequires: python-Cython >= 0.11.3} |
44c8c69f | 21 | BuildRequires: xmlto |
1e34605a | 22 | Obsoletes: libyasm |
1d2d1208 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
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 | |
4080892a JB |
30 | addition to multiple output object formats and even multiple |
31 | instruction sets. Another primary module of the overall design is an | |
32 | optimizer module. | |
1d2d1208 | 33 | |
24714651 JR |
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. | |
1d2d1208 | 41 | |
44c8c69f | 42 | %package -n libyasm-devel |
1e34605a | 43 | Summary: Header files and static libyasm library |
1e3f0ea0 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libyasm |
44c8c69f | 45 | Group: Development/Libraries |
1e34605a JB |
46 | License: BSD+Artistic or LGPL or GPL (see COPYING) |
47 | Obsoletes: libyasm | |
48 | Obsoletes: libyasm-static | |
44c8c69f JB |
49 | |
50 | %description -n libyasm-devel | |
1e34605a | 51 | Header files and static libyasm library. |
44c8c69f | 52 | |
24714651 JR |
53 | %description -n libyasm-devel -l pl.UTF-8 |
54 | Pliki nagłówkowe i statyczna biblioteka libyasm. | |
44c8c69f | 55 | |
51807c7a JB |
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) | |
61 | ||
62 | %description -n python-yasm | |
63 | Python interface for yasm library. | |
64 | ||
65 | %description -n python-yasm -l pl.UTF-8 | |
66 | Pythonowy interfejs do biblioteki yasm. | |
67 | ||
1d2d1208 | 68 | %prep |
69 | %setup -q | |
51807c7a | 70 | %patch0 -p1 |
1d2d1208 | 71 | |
72 | %build | |
57a9771d JB |
73 | %{__libtoolize} |
74 | %{__aclocal} -I m4 | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
1d2d1208 | 78 | %configure \ |
51807c7a | 79 | %{?debug:--enable-debug} \ |
40c83e87 | 80 | %{?with_python:--enable-python-bindings} |
9eb78971 | 81 | |
e1de58e0 | 82 | %{__make} -j1 all check |
1d2d1208 | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
1d2d1208 | 93 | %files |
94 | %defattr(644,root,root,755) | |
44c8c69f | 95 | %doc AUTHORS BSD.txt COPYING |
1c90a127 JB |
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* | |
1d2d1208 | 101 | |
44c8c69f JB |
102 | %files -n libyasm-devel |
103 | %defattr(644,root,root,755) | |
1e34605a JB |
104 | %doc AUTHORS BSD.txt COPYING |
105 | %{_libdir}/libyasm.a | |
57a9771d | 106 | %{_includedir}/libyasm*.h |
44c8c69f | 107 | %{_includedir}/libyasm |
51807c7a | 108 | |
40c83e87 | 109 | %if %{with python} |
51807c7a JB |
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 | |
40c83e87 | 114 | %endif |