]> git.pld-linux.org Git - packages/yasm.git/blame - yasm.spec
- updated gettext BR
[packages/yasm.git] / yasm.spec
CommitLineData
40c83e87
ER
1#
2# Conditional build:
3%bcond_without python # without Python bindings
4
1d2d1208 5Summary: The YASM Modular Assembler
1e3f0ea0 6Summary(pl.UTF-8): Modularny assembler YASM
1d2d1208 7Name: yasm
30a9f06f 8Version: 1.3.0
cbe8ef75 9Release: 1
1d2d1208 10License: distributable (BSD, GPL, LGPL, Artistic; see COPYING)
11Group: Development/Tools
44c8c69f 12Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.gz
30a9f06f 13# Source0-md5: fc9e586751ff789b34b1f21d572d96af
51807c7a 14Patch0: %{name}-pythondir.patch
1d2d1208 15URL: http://www.tortall.net/projects/yasm/
57a9771d 16BuildRequires: autoconf >= 2.53
51807c7a 17BuildRequires: automake >= 1:1.9.6
523df359 18BuildRequires: gettext-tools
57a9771d 19BuildRequires: libtool
40c83e87 20%{?with_python:BuildRequires: python-Cython >= 0.11.3}
44c8c69f 21BuildRequires: xmlto
1e34605a 22Obsoletes: libyasm
1d2d1208 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Yasm is a complete rewrite of the NASM assembler under the "new"
27BSD License (some portions are under other licenses, see COPYING for
28details). It is designed from the ground up to allow for multiple
29assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in
4080892a
JB
30addition to multiple output object formats and even multiple
31instruction sets. Another primary module of the overall design is an
32optimizer module.
1d2d1208 33
24714651
JR
34%description -l pl.UTF-8
35Yasm to całkowite przepisanie asemblera NASM na "nowej" licencji BSD
36(niektóre fragmenty są na innych licencjach, szczegóły w pliku
37COPYING). Jest zaprojektowany od podstaw, aby umożliwić obsługę
38wielu składni asemblera (np. NASM, TASM, GAS itd.), a ponadto wiele
39formatów obiektów wyjściowych, a nawet wiele zestawów instrukcji.
40Kolejny główny moduł ogólnego projektu to moduł optymalizatora.
1d2d1208 41
44c8c69f 42%package -n libyasm-devel
1e34605a 43Summary: Header files and static libyasm library
1e3f0ea0 44Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libyasm
44c8c69f 45Group: Development/Libraries
1e34605a
JB
46License: BSD+Artistic or LGPL or GPL (see COPYING)
47Obsoletes: libyasm
48Obsoletes: libyasm-static
44c8c69f
JB
49
50%description -n libyasm-devel
1e34605a 51Header files and static libyasm library.
44c8c69f 52
24714651
JR
53%description -n libyasm-devel -l pl.UTF-8
54Pliki nagłówkowe i statyczna biblioteka libyasm.
44c8c69f 55
51807c7a
JB
56%package -n python-yasm
57Summary: Python interface for yasm library
58Summary(pl.UTF-8): Pythonowy interfejs do biblioteki yasm
59Group: Libraries/Python
60License: BSD+Artistic or LGPL or GPL (see COPYING)
61
62%description -n python-yasm
63Python interface for yasm library.
64
65%description -n python-yasm -l pl.UTF-8
66Pythonowy 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
85rm -rf $RPM_BUILD_ROOT
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
90%clean
91rm -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
This page took 0.071044 seconds and 4 git commands to generate.