/[packages]/cauldron/yasm/current/SPECS/yasm.spec
ViewVC logotype

Contents of /cauldron/yasm/current/SPECS/yasm.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30